-
Notifications
You must be signed in to change notification settings - Fork 97
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
Artifacts on fullscreen toggle #282
Comments
It's a known issue, I haven't fixed it yet just because it's pretty minor and "harmless". It happens because we render the background frame once the pause menu is entered and simply store it in a texture without updating it. The texture is automatically resized (re-created actually) when the window is resized, and its contents remain undefined until we render the game scene again. So what you see there is whatever garbage ends up in that uninitialized region of GPU memory. Possible solutions are to detect the resize and re-render the game scene into the new texture when it happens, or to stop automatically resizing the texture (just create a new one every time we pause, and destroy it when we unpause). The later case is a bit simpler, but it implies a small and temporary image quality loss after resizing the window, since the texture will be rendered with a scaling factor. The whole thing is blurred anyway though, so it probably won't be noticeable at all. |
What should I do if I want to contribute to fixing this issue? |
You have to fork the repository first, if you haven't already. Create a new branch based on If you need any help with navigating and/or hacking on the codebase, join our discord and feel free to ask us anything. |
Start the game and pause
Press F11 (enter fullscreen)
Press F11 (exit fullscreen)
Press F11 (enter fullscreen again, if the issue did not reproduce, press F11 some more)
More artifacts:
The text was updated successfully, but these errors were encountered: