diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-05-02 22:26:47 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-05-02 22:26:47 -0700 |
commit | fbf09acd0f2985d26300dd6e173a3c81901cc854 (patch) | |
tree | 6a4dbd6e98a9c664a9948917eb55d7b346339fac /render_sdl.c | |
parent | 12e49666b04b43ed77106e05b0f2565f137bda98 (diff) |
Implement LDI
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); } |