summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--application.cpp4
1 files changed, 3 insertions, 1 deletions
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);
}
}