diff --git a/WindowManager.cpp b/WindowManager.cpp index 2e7189b50ab6368fa181bb399175b80b2fa2bf6a..a02d89295bf8ccddae5de52237d296cd3c2969b6 100644 --- a/WindowManager.cpp +++ b/WindowManager.cpp @@ -156,8 +156,9 @@ void WindowManager::eventLoop() if (event.type == SDL_USEREVENT && event.user.code == RenderEvent) { - static int i = 0; #ifdef DEBUG_VALGRIND + // stop after i iterations when running valgrinded + static int i = 0; if(i < 500) { i++; #endif