chip8

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.vgx.fr/chip8
Log | Files | Refs

commit e9d61759016eaeb42814ece7ad79f83dd7aafe65
parent c72df3113aa2215431d448b335ad8befca4d4383
Author: Léo Villeveygoux <l@vgx.fr>
Date:   Sun, 26 May 2019 22:00:00 +0200

Enforce frequency via vsync

This assumes send_draw() ensures it's not called at more than 60Hz.
It works in the current SDL media implementation thanks to vsync and
60Hz display.

Diffstat:
Mchip8.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/chip8.c b/chip8.c @@ -418,9 +418,6 @@ int main(int argc, char **argv){ step(); - nanosleep(&(struct timespec){0,(1000000000/FREQ)},NULL); - //wait_tick(); - if(!(i%(FREQ/60))){ send_draw(); if(DT)