From: sparky4 Date: Sat, 18 Jun 2016 19:55:36 +0000 (-0500) Subject: optimized scrolling ww to extreame levels X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=727432db5e5ca875950f81a2cae01b60fce90c99;p=16.git optimized scrolling ww to extreame levels --- diff --git a/src/lib/modex16.c b/src/lib/modex16.c index eeba90fc..c9930e4a 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -314,7 +314,7 @@ modexShowPage(page_t *page) { outp(CRTC_DATA, crtcOffset); /* wait for one retrace */ - //while (!(inp(INPUT_STATUS_1) & VRETRACE)); + while (!(inp(INPUT_STATUS_1) & VRETRACE)); /* do PEL panning here */ outp(AC_INDEX, 0x33); diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index fd75f5c4..79ba8bd9 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -44,9 +44,9 @@ void walk(map_view_t *pip, player_t *player, word pn) { INC_PER_FRAME; animatePlayer(pip, player, pn, 1); - ScrollRight(pip, player, 3, pn); + if(!pageploop){ ScrollRight(pip, player, 3, pn); ScrollRight(pip, player, 2, pn); - if(!pageploop) mapScrollRight(pip, player, !(pip[0].video->p), pn); + mapScrollRight(pip, player, !(pip[0].video->p), pn); } mapScrollRight(pip, player, (pip[0].video->p), pn); if(!pageflipflop) modexShowPage(pip[1].page); player[pn].q++; @@ -88,9 +88,9 @@ void walk(map_view_t *pip, player_t *player, word pn) { INC_PER_FRAME; animatePlayer(pip, player, pn, 1); - ScrollLeft(pip, player, 3, pn); + if(!pageploop){ ScrollLeft(pip, player, 3, pn); ScrollLeft(pip, player, 2, pn); - if(!pageploop) mapScrollLeft(pip, player, !(pip[0].video->p), pn); + mapScrollLeft(pip, player, !(pip[0].video->p), pn); } mapScrollLeft(pip, player, (pip[0].video->p), pn); if(!pageflipflop) modexShowPage(pip[1].page); player[pn].q++; @@ -132,9 +132,9 @@ void walk(map_view_t *pip, player_t *player, word pn) { INC_PER_FRAME; animatePlayer(pip, player, pn, 1); - ScrollDown(pip, player, 3, pn); + if(!pageploop){ ScrollDown(pip, player, 3, pn); ScrollDown(pip, player, 2, pn); - if(!pageploop) mapScrollDown(pip, player, !(pip[0].video->p), pn); + mapScrollDown(pip, player, !(pip[0].video->p), pn); } mapScrollDown(pip, player, (pip[0].video->p), pn); if(!pageflipflop) modexShowPage(pip[1].page); player[pn].q++; @@ -176,9 +176,9 @@ void walk(map_view_t *pip, player_t *player, word pn) { INC_PER_FRAME; animatePlayer(pip, player, pn, 1); - ScrollUp(pip, player, 3, pn); + if(!pageploop){ ScrollUp(pip, player, 3, pn); ScrollUp(pip, player, 2, pn); - if(!pageploop) mapScrollUp(pip, player, !(pip[0].video->p), pn); + mapScrollUp(pip, player, !(pip[0].video->p), pn); } mapScrollUp(pip, player, (pip[0].video->p), pn); if(!pageflipflop) modexShowPage(pip[1].page); player[pn].q++;