-
Notifications
You must be signed in to change notification settings - Fork 13
Add better frame rate handling than busy-waiting for an assumed 60 FPS #128
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestsubject: APIRelated to the API exposed to the userRelated to the API exposed to the usersubject: AwerereRelated to the physics engineRelated to the physics enginesubject: Guerrilla RendererRelated to the main rendering engineRelated to the main rendering engine
Description
Master HEAD: v2
This:
| if(glfwGetTime() - lastFrameEndTime >= 1.0f / 60.0f) |
...is assuming 60 FPS as the base FPS and attempts to busy-wait if the game exceeds 60 FPS.
Add a way to lower this limit in case the frame rate is set to something lower, or the FPS is not really being met to 60 FPS
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestsubject: APIRelated to the API exposed to the userRelated to the API exposed to the usersubject: AwerereRelated to the physics engineRelated to the physics enginesubject: Guerrilla RendererRelated to the main rendering engineRelated to the main rendering engine