Skip to content

Commit 1fdf944

Browse files
committed
Force vsync because release build runs too fast
1 parent 948a42b commit 1fdf944

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ int main(int argc, char **argv) {
2020
break;
2121
}
2222
frameTimeStart = std::chrono::high_resolution_clock::now();
23+
vsync();
2324
g_GUIEditor.DrawEditor();
2425
EditorApp::s_FrameTime = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolution_clock::now() - frameTimeStart).count();
2526
}

0 commit comments

Comments
 (0)