From: sparky4 Date: Thu, 16 Jun 2016 16:31:51 +0000 (-0500) Subject: optimize for XT i did ww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=a7b881d2705e2fcc7a309c222521d6cfd06377b0;p=16.git optimize for XT i did ww --- diff --git a/src/lib/.scroll16.c.kate-swp b/src/lib/.scroll16.c.kate-swp deleted file mode 100755 index 15778a1f..00000000 Binary files a/src/lib/.scroll16.c.kate-swp and /dev/null differ diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index c36c5f3f..711d4bc0 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -802,19 +802,6 @@ void shinku(global_game_variables_t *gv) }else //copy dat sheet gv->kurokku.tiku++; - switch(gv->kurokku.fpscap) - { - case 0: - modexprint(&(gv->video.page[shinku_fps_indicator_page]), x, y+8, type, col, bgcol, "sanic!"); - gv->kurokku.frames_per_second=1; - break; - case 1: - //turn this off if XT - //modexWaitBorder(); - vga_wait_for_vsync(); - gv->kurokku.frames_per_second=60; - break; - } if(pageflipflop){ if(gv->video.r){ /* block copy pattern to where we will draw the sprite */ diff --git a/src/scroll.c b/src/scroll.c index 3a7d694d..18c53111 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -288,6 +288,19 @@ void main(int argc, char *argv[]) if(IN_KeyDown(68)) //f10 { gvar.kurokku.fpscap=!gvar.kurokku.fpscap; + switch(gvar.kurokku.fpscap) + { + case 0: + //modexprint(&(gv->video.page[shinku_fps_indicator_page]), x, y+8, type, col, bgcol, "sanic!"); + gvar.kurokku.frames_per_second=1; + break; + case 1: + //turn this off if XT + //modexWaitBorder(); + vga_wait_for_vsync(); + gvar.kurokku.frames_per_second=60; + break; + } IN_UserInput(1,1); } if(IN_KeyDown(67)) //f9