chip-8
chip-8 emulatorchore: bump delay
| 1 files changed, 3 insertions(+), 4 deletions(-) | |||
|---|---|---|---|
| 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
+}