ecode icon indicating copy to clipboard operation
ecode copied to clipboard

Window resizing causes a lot of lag, like extreme amount of lag.

Open Volcanify opened this issue 1 year ago • 6 comments

Please see this video where I dragged the end of the window to resize it. I released the cursor much earlier, but it was still bugging. I tried minimizing it using keyboard shortcuts (Win + Down Arrow. Win + M, Win + D). This also happens while making the windows smaller. This happens when I am not screen recording as well.

https://github.com/user-attachments/assets/ed4ec8f5-ff2a-4ad7-8d08-7f4ba7dcf24d

System: Windows 11 24H2 Ecode version: 0.7.0

Volcanify avatar Apr 10 '25 13:04 Volcanify

Wow, that's ridiculous, it only happens when you drag the window borders? This only happens to ecode? I'm really unsure if I can do something myself, this looks an OS level issue. I'll install Windows 11 and try to reproduce it. In Windows 10 this is not happening.

SpartanJ avatar Apr 10 '25 13:04 SpartanJ

It only happens when I drag the window borders and corners and it only happens to ecode. The stranger thing is I can't reproduce this issue now. I had this issue like 5 or 6 times before on separate days. So, sometimes this issue was present, sometimes not. I also never saw this in any other app, not even the nightly version of ecode.

Volcanify avatar Apr 10 '25 14:04 Volcanify

I cannot reproduce this on Windows 11 either. I don't think this is an ecode bug to be honest. Because I have no control of any of that. My recommendation is to try to disable any kind of animation on windows resizing, although Windows 10 and 11 do not animate while resizing, they only resize the window rendered frame buffer.

Here's a summary on how to disable it (AI Assisted 😆 ):

  1. Open Performance Options:

    • Press the Windows key + R to open the Run dialog.
    • Type sysdm.cpl and press Enter. This opens the System Properties window.
    • Alternatively, you can search for "Adjust the appearance and performance of Windows" in the Windows search bar and select it.
  2. Navigate to Visual Effects Settings:

    • In the System Properties window, go to the Advanced tab.
    • Under the Performance section, click the Settings... button. This will open the Performance Options window, likely already on the Visual Effects tab.
  3. Enable the Setting:

    • Look through the list of visual effects for the option named: "Show window contents while dragging".
    • Check the box next to this option.
  4. Apply Changes:

    • Click Apply at the bottom right of the Performance Options window.
    • Click OK to close the Performance Options window.
    • Click OK again to close the System Properties window (if you opened it via sysdm.cpl).

SpartanJ avatar Apr 10 '25 14:04 SpartanJ

@SpartanJ thanks for looking into it and I think you're right that it's not an ecode issue. Thanks for suggesting fixes as well.

Volcanify avatar Apr 10 '25 17:04 Volcanify

If you don't mind I'll close the issue for now. If further investigation is needed from the ecode side we can reopen later. Thanks

SpartanJ avatar Apr 10 '25 21:04 SpartanJ

I think it's better to close the issue as it doesn't seem like real issue.

Volcanify avatar Apr 13 '25 08:04 Volcanify