summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-05-23 23:55:42 -0700
committerMike Pavone <pavone@retrodev.com>2013-05-23 23:55:42 -0700
commitc4311b6471fa5d884eafb4adb835e4e0516c7c96 (patch)
tree54c665a662e94d559d14c2adbfcdb050a8e6e534
parent1628fcfc93742b30ff200a9a2f9454fb6d597c2e (diff)
Get rid of debug puts and limit based on audio rather than frame rate by default.
-rw-r--r--blastem.c4
-rw-r--r--render_sdl.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/blastem.c b/blastem.c
index 9f81b13..97c2ada 100644
--- a/blastem.c
+++ b/blastem.c
@@ -31,7 +31,7 @@ io_port gamepad_2;
int headless = 0;
int z80_enabled = 1;
-int frame_limit = 1;
+int frame_limit = 0;
#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
@@ -1416,7 +1416,7 @@ int main(int argc, char ** argv)
debug = 1;
break;
case 'f':
- frame_limit = 0;
+ frame_limit = 1;
break;
case 'l':
address_log = fopen("address.log", "w");
diff --git a/render_sdl.c b/render_sdl.c
index 3742be4..fddce0b 100644
--- a/render_sdl.c
+++ b/render_sdl.c
@@ -419,7 +419,6 @@ int wait_render_frame(vdp_context * context, int frame_limit)
ret = handle_event(&event);
}
if (frame_limit) {
- puts("evil frame limit");
//TODO: Adjust frame delay so we actually get 60 FPS rather than 62.5 FPS
uint32_t current = SDL_GetTicks();
uint32_t desired = last_frame + frame_delay;