Skip to content

Conversation

@zod24
Copy link

@zod24 zod24 commented Jul 9, 2023

Issue

fixes #632.

Proposed fix

This issue can be resolved by updating our Window and Layers during window resize event.

@MirrasHue
Copy link

MirrasHue commented Apr 27, 2025

Hey Zod, this still has the problem of no updates happening when you just hold the border of the window with the mouse left button. This also causes huge delta times depending on how long you hold the border.

I was able to get around this by updating and rendering in a separate thread, and synchronizing the window resizes using two std::atomic's (it has to be done in the main thread). The only thing that doesn't work with this approach is imgui's viewports (floating windows), which is fine for me given all the other benefits.

https://github.com/MirrasHue/MirrasENGINE/blob/main/MirrasENGINE/src/Core/Application.cpp#L120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unresponsive UI during window resize!!

2 participants