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

Add start to frame rate #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JakeRoggenbuck
Copy link
Member

No description provided.

@@ -75,6 +76,8 @@ public static void mainloop() {
// While it's open, clear screen and check for events.
while ( !glfwWindowShouldClose(windowHandle) ) {

double beforeRender = glfwGetTime();
Copy link
Contributor

@Sophon96 Sophon96 Jun 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't reinitializing these variables be rather costly (in terms of performance, compared to initializing them before the loop and assigning them here)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants