Sfoglia il codice sorgente

Reduce CPU usage in testgamecontroller

Sam Lantinga 4 anni fa
parent
commit
0687128c96
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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__