![]() |
![]() |
#1 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,357
|
Screen Swap and Screen Offset stuttering
I was trying to make a simple scrolling routine today, employing double buffering to make the routine as simple as possible. The code basically looks like this:
Code:
BLOCKSIZE = 32 Screen Open 0,320,256+BLOCKSIZE,16,Lowres (draw initial screen) ROWOFFSET = SCREENHEIGHT_IN_BLOCKS - 1 VPOS = BLOCKSIZE Double Buffer AutoBack 0 Do Wait Vbl Dec VPOS If ROWOFFSET >= 0 ROW=ROWOFFSET*BLOCKSIZE ' Copy stripes of screen to backbuffer, one row down Screen Copy Physic,0,ROW,320,ROW+BLOCKSIZE To Logic,0,ROW+BLOCKSIZE Dec ROWOFFSET EndIf If ROWOFFSET < 0 (fill in top row) EndIf If VPOS < 0 VPOS = BLOCKSIZE Screen Swap EndIf Screen Offset 0,0,VPOS Loop |
![]() |
![]() |
#2 |
Registered User
Join Date: Feb 2017
Location: Oslo
Posts: 90
|
Ha! I know this one
![]() It's Auto View's fault; you'll have to turn it off with Auto View Off and add a View right after Screen Offset. The command View reveals the effect of Screen Open, Screen To Front, Screen Display, Screen Offset and Rainbow. |
![]() |
![]() |
#3 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,357
|
That was indeed it! It's smooth like butter now. Tusen takk, Adrazar!
|
![]() |
![]() |
#4 |
Registered User
Join Date: Feb 2017
Location: Oslo
Posts: 90
|
You're welcome
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Smooth H-scrolling platform game in AMOS, screen copy vs screen offset? | Damiga | Coders. AMOS | 32 | 24 October 2023 19:00 |
fast mouse move loose offset values in P96 full HD screen | bernd roesch | support.WinUAE | 2 | 24 April 2018 13:20 |
Agony - screen stuttering problem ! | amilo3438 | support.WinUAE | 4 | 12 September 2017 23:54 |
[2.1.19dev] Stuttering screen and/or mouse cursor with this version | nexusle | support.FS-UAE | 2 | 21 January 2013 23:11 |
WHDLoad - NTSC and screen offset | Anubis | project.WHDLoad | 4 | 27 January 2010 21:20 |
|
|