Commit 0687128c965a07bc554ac0fb77d0330120f40792

Sam Lantinga 2022-04-29T20:57:00

Reduce CPU usage in testgamecontroller

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c
index 3355d7d..af8bfec 100644
--- a/test/testgamecontroller.c
+++ b/test/testgamecontroller.c
@@ -508,7 +508,7 @@ loop(void *arg)
             }
         }
     }
-
+    SDL_Delay(16);
     SDL_RenderPresent(screen);
 
 #ifdef __EMSCRIPTEN__