Skip to content

Add better frame rate handling than busy-waiting for an assumed 60 FPS #128

@twaritwaikar

Description

@twaritwaikar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions