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:
2
EU07.cpp
2
EU07.cpp
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user