chip-8

chip-8 emulator

chore: bump delay

Arjun Choudhary contact@arjunchoudhary.com

commit: bb45fa4 parent: 0fd4a9b

1 files changed, 3 insertions(+), 4 deletions(-)
MODmain.c+3-4
MOD · main.c +3 -4
--- a/main.c
+++ b/main.c
@@ -572,9 +572,8 @@ int main(int argc, char* argv[])
 
         if (draw_flag == 1) {
             chip8_draw(gfx);
-            // Delay to slow down the clock
-            /*             usleep(45000); */
-            sleep(1);
+            	// Delay to slow down the clock
+        	usleep(45000);
         }
         while (SDL_PollEvent(&event) != 0) {
             switch (event.type) {
@@ -594,4 +593,4 @@ int main(int argc, char* argv[])
             }
         }
     }
-}>
\ No newline at end of file
+}