diff options
Diffstat (limited to 'render_sdl.c')
-rw-r--r-- | render_sdl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/render_sdl.c b/render_sdl.c index 499b16a..a884fe4 100644 --- a/render_sdl.c +++ b/render_sdl.c @@ -366,7 +366,7 @@ int wait_render_frame(vdp_context * context) } } //TODO: Adjust frame delay so we actually get 60 FPS rather than 62.5 FPS - uint32_t current = SDL_GetTicks(); + /*uint32_t current = SDL_GetTicks(); uint32_t desired = last_frame + FRAME_DELAY; if (current < desired) { uint32_t delay = last_frame + FRAME_DELAY - current; @@ -376,14 +376,14 @@ int wait_render_frame(vdp_context * context) } while ((desired) >= SDL_GetTicks()) { } - } + }*/ render_context(context); - /* + //TODO: Figure out why this causes segfaults - frame_counter++; + /*frame_counter++; if ((last_frame - start) > 1000) { - if (start) { + if (start && (last_frame-start)) { printf("\r%f fps", ((float)frame_counter) / (((float)(last_frame-start)) / 1000.0)); fflush(stdout); } |