Skip to content

Unresponsive UI during window resize!! #632

@zod24

Description

@zod24

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions