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

Fit screen full screen fix #111

Merged
merged 2 commits into from
May 26, 2024
Merged

Fit screen full screen fix #111

merged 2 commits into from
May 26, 2024

Conversation

Absulit
Copy link
Owner

@Absulit Absulit commented May 26, 2024

solves #110 and other minor changes related

Absulit added 2 commits May 25, 2024 16:44
- The `swapChainTexture` is too big to copy to `texture2d.texture` when the screen size changes, that be fit window or full screen, so the texture size is updated just on those instances of a resize call instead of updating it on every frame on `update` that caused the app to slow down if I had taken that route.
- The fitWindow call is not consistent when you switch a demo, this because the size is set as the current canvas, then it makes no sense to remove the fitWindow if the canvas size is now a new one, so restoring the value to 800x800 default size enforces that.
- Then we don't save the boolean in localstorage and we force its value to false in datgui for the check to go back to unchecked state.
@Absulit Absulit merged commit 0f09dac into dev May 26, 2024
@Absulit Absulit deleted the fit_screen_full_screen_fix branch May 26, 2024 02:00
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.

1 participant