aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 1ff97ca..f9282c4 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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;
/*