diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -323,6 +323,7 @@ int main(int argc, char *argv[]){ */ SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + //SDL_GL_SetSwapInterval(0); glViewport(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); @@ -409,6 +410,8 @@ int main(int argc, char *argv[]){ **** GAMELOOP **** **************************/ + std::cout << "Num threads: " << std::thread::hardware_concurrency() << std::endl; + //currentWorld->mob.back()->followee = player; gameRunning = true; @@ -466,6 +469,7 @@ void mainLoop(void){ currentTime = millis(); deltaTime = currentTime - prevTime; + if(currentMenu)goto MENU; /* |