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

[NFC] Simplify window size handling #438

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

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)

src/ppx/application.cpp Outdated Show resolved Hide resolved
src/ppx/application.cpp Outdated Show resolved Hide resolved
src/ppx/application.cpp Outdated Show resolved Hide resolved
src/ppx/window_glfw.cpp Show resolved Hide resolved
include/ppx/application.h Show resolved Hide resolved
include/ppx/knob.h Outdated Show resolved Hide resolved
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