16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 14:39:18 +02:00

skydome optimization, vsync .ini setting

This commit is contained in:
tmj-fstate
2017-03-02 17:16:29 +01:00
parent 146d6b036d
commit ab9a8835d6
4 changed files with 60 additions and 83 deletions

View File

@@ -281,7 +281,7 @@ int main( int argc, char *argv[] ) {
return -1;
}
glfwMakeContextCurrent( window );
glfwSwapInterval( 0 ); //vsync // NOTE: disabled, as slight drop below refresh rate seems to cause drastic drop in framerate
glfwSwapInterval( (Global::VSync ? 1 : 0) ); //vsync
glfwSetInputMode( window, GLFW_CURSOR, GLFW_CURSOR_DISABLED ); //capture cursor
glfwSetCursorPos( window, 0.0, 0.0 );
glfwSetFramebufferSizeCallback( window, window_resize_callback );