Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresponsive UI during window resize!! #632

Open
zod24 opened this issue Jul 9, 2023 · 0 comments · May be fixed by #633
Open

Unresponsive UI during window resize!! #632

zod24 opened this issue Jul 9, 2023 · 0 comments · May be fixed by #633

Comments

@zod24
Copy link

zod24 commented Jul 9, 2023

Probelm

The hazelnut UI becomes unresponsive when we resize the window. The reason for that is that our Application run loop pauses as it is still resolving Win32 messages. This causes such behaviour:

image

  • When the scene is running and the window is resized, the scene pauses and when the window resize stops everything that happened in between is skipped.
  • The scripting engine also pauses, potentially causing unpredicted behavior (this is just a theory, since I haven't tested this much as I had already fixed this unresponsive UI problem on the engine that I am building alongside @TheCherno).
  • Since there is not a mininum size for the window, this is also possible.

image

Solution

Updating the window and layers in the OnWindowResize function in Application.

@zod24 zod24 linked a pull request Jul 9, 2023 that will close this issue
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 a pull request may close this issue.

1 participant