Skip to content

Conversation

@Keenuts
Copy link
Member

@Keenuts Keenuts commented Feb 26, 2024

This change is the first requirement for cleaning up knobs initialization:
BigWheels has settings, which are used to initialize default
values, which in turn are used to initialize knobs. But then those
settings becomes RW values used at runtime (like window.width,
window.height).

The ultimate goal is to sanitize this whole initialization step, and
only rely on knobs.

This first commit removes window.width and window.height from the settings, and rely on the Window class to store its size. This should be a NFC.

Tested on linux, android and Windows. The swapchain is only resized once on window size change (checked on windows, setting the window to fullscreen etc)

Keenuts added 4 commits April 18, 2024 18:31
This change is the first requirement for cleaning up knobs
initialization:
  BigWheels has settings, which are used to initialize default
  values, which in turn are used to initialize knobs. But then those
  settings becomes RW values used at runtime (like window.width,
  window.height).

  The ultimate goal is to sanitize this whole initialization step, and
  only rely on knobs.

This first commit removes `window.width` and `window.height` from the
settings, and rely on the `Window` class to store its size.
This should be a NFC.
@Keenuts
Copy link
Member Author

Keenuts commented Apr 18, 2024

Rebased on main to fix the conflicts

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.

2 participants