From 4a8b02adbc01bad1a20bcdc16b858d879cf47e11 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 20 May 2010 20:18:04 +0200 Subject: Enabled vsync. --- application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application.cpp b/application.cpp index c2f5f71..38448ec 100644 --- a/application.cpp +++ b/application.cpp @@ -105,6 +105,8 @@ Application::Application() { SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); + SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); + // Get our surface surface = SDL_SetVideoMode(Config::window_w, Config::window_h, 32, flags); if(!surface) { @@ -178,7 +180,7 @@ void Application::run() { main_loop(tick, step); - SDL_Delay(10); + //SDL_Delay(10); } } -- cgit v1.2.3