aboutsummaryrefslogtreecommitdiff
path: root/graftest
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-09-21 04:41:53 -0400
committerB. Watson <yalhcru@gmail.com>2016-09-21 04:41:53 -0400
commit105ddd8c6b16b9dc0d1eb7ddb97dc429d24242b4 (patch)
treee05c99ec4f20a49f427a01ccda643e628a7ca164 /graftest
parente7705e66b7b5dd34f20508427b3c50cc0568349a (diff)
downloadjumpmanjr-105ddd8c6b16b9dc0d1eb7ddb97dc429d24242b4.tar.gz
render at 60fps, not 6. my forehead is bruised.HEADmaster
Diffstat (limited to 'graftest')
-rw-r--r--graftest/graftest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/graftest/graftest.c b/graftest/graftest.c
index 81997f2..5dbfcfc 100644
--- a/graftest/graftest.c
+++ b/graftest/graftest.c
@@ -211,7 +211,7 @@ int main(int argc, char **argv) {
render_level(lev);
while(!done) {
start = SDL_GetTicks();
- end = start + 167; // NTSC timing
+ end = start + 16; // NTSC timing
while(SDL_PollEvent(&event)) {
if(event.type == SDL_QUIT) {
@@ -259,7 +259,7 @@ int main(int argc, char **argv) {
SDL_Delay(end - now);
// fprintf(stderr, "frame took %d ms\n", now - start);
} else {
- // fprintf(stderr, "!! frame took too long, %d ms\n", now - end);
+ fprintf(stderr, "!! frame took too long by %d ms\n", now - end);
}
}