Browse Source

Reduce CPU usage in testgamecontroller

Sam Lantinga 3 years ago
parent
commit
0687128c96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testgamecontroller.c

+ 1 - 1
test/testgamecontroller.c

@@ -508,7 +508,7 @@ loop(void *arg)
             }
         }
     }
-
+    SDL_Delay(16);
     SDL_RenderPresent(screen);
 
 #ifdef __EMSCRIPTEN__