15 March 2016, 10:25 | #1 |
Registered User
Join Date: Feb 2016
Location: Czech Republic
Posts: 26
|
how to display bob correctly with double buffering
Hello, i have scrolling playfield, and some bobs... and they flicker lot when screen is scrolling...
Its supposed to be, because according to AMOS manuals, if double buffering is used, to avoid bob flickering, there must be "genuine connection" and "sensible progress" between screen 0 and screen 1... ok, what it means?? now i have something like this: autoback 0 double buffer rem mainloop do bob clear ...here is joystick check, changing bob & screen coordinates ... Screen copy physic to logic screen swap : wait vbl bob draw loop I tried play with bob update, pastebob etc. but it usually make flickering worse, or make some strange effect like double bob into two images which moves separatelly |
15 March 2016, 18:34 | #2 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
|
The Wait Vbl goes before the screen swap.
|
15 March 2016, 22:10 | #3 |
Registered User
Join Date: Feb 2016
Location: Czech Republic
Posts: 26
|
Thank you, problem solved. Still there is some minor flickering of few colours, probably because screen copy is faster than blitter (if I put somethink like wait 16 into main loop, it stop, but then scrolling is unusable slow...)
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
skweek doesn't display the screen correctly | ldaneels | support.WinUAE | 5 | 04 April 2014 20:10 |
How to get T2: Arcade Game loading screen to display correctly? | MethodGit | Coders. General | 15 | 30 July 2012 17:37 |
No-buffering display mode with zero screen tearing, the next step? | Dr.Venom | support.WinUAE | 87 | 22 January 2012 18:08 |
flawless double buffering | dalton | Coders. General | 2 | 17 May 2011 07:09 |
AGA double buffering using ChangeScreenBuffer() | NovaCoder | Coders. General | 1 | 03 November 2010 00:34 |
|
|