Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#1065, needs Try/Tempest#145.
The game update runs only inside
render, andrenderwaits for the next swapchain image without a bound. A window that gets no image updates at the compositor's pace, about once a second when covered or minimized on X11, and a window that gets norenderat all, minimized on Windows, does not update.rendernow waits for an image withSwapchain::tryAcquireonly until the next update is due, 33 ms after the last one: about 30 updates a second, undertick's 50 ms step. A drawn frame still follows an update in the same pass, so there are updates without a frame and no frame without an update.MainWindow::setRunInBackground(bool)starts a 33 ms timer that runs the update when norenderran it since the timer's last firing. It is off by default and nothing calls it here. It is the engine-level switch for a multiplayer client.The bounded wait also applies with the setter off. A covered or minimized game on X11 then runs at full speed where it ran at a twentieth, and is drawn whenever the compositor hands out an image, as in GNOME's overview. On a display slower than 30 Hz there are two updates per frame.
Run on Linux under GNOME (Xwayland) and on Windows. Covered and minimized on X11 it updates 31 times a second and presents once a second. Minimized on Windows it updates 30 times a second with the setter on and not at all with it off