Resizing is slow
See original GitHub issueFor whatever reason, the components in the main window are terribly slow at redrawing/painting so that when resizing the main window the entire window can freeze for short periods.
To mitigate this, I suggest adding something like this:
this.ResizeBegin += (s, ee) => { this.SuspendLayout(); };
this.ResizeEnd += (s, ee) => { this.ResumeLayout(true); };
somewhere into the main form (maybe EDDiscoveryForm_Load? ) so the window can be resized without having pauses.
That should suspend paints while resizing, then as soon as the resizing is stopped, the form will refresh based on the final size.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Window Resize Extremely Slow
The simple fix is to click the "home" tab, then select "Starred" instead of "recent". When I did this, then clicked back to...
Read more >Resizing windows in Windows 11 is excruciatingly slow.
Resizing the task manager window is similarly slow as in your video. Ryzen 3600 and RTX 3060 here. Most other windows are buttery...
Read more >Window resizing in Windows 10 very slow - Linus Tech Tips
Everytime i want to resize any window it lags and i cant figure it out why. And it also feels choppy and slow...
Read more >Slow window resizing performance · Issue #169142
Type: Bug whenever i resize my vscode, instead of the window instantly resizing its transitioning into the resized space.
Read more >Slow Browsers Resizing
On Windows 10 Dell PC, all Browsers (Edge, IE11, Firefox, Chrome, Opera) appear to lag in rendering when resize window.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did check it out and apply my code because I hated the slow resizing and it seems to work OK here.
I don’t have any experience in this codebase, so I wasn’t sure if I had to do a pull request first, then issue, or issue then pull request, or just do a plain pull request, or how patches are handled in general. (On a related note, a “contributing” guideline would be useful)
And since this was just two lines, I went with issue, that way any developer with commit access could add it easily enough wherever they felt it could go (if they even decided it was worthwhile).
Closing - this is not a widely reported issue.