English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. AMOS

 
 
Thread Tools
Old 15 March 2016, 10:25   #1
Blackgoat
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
Blackgoat is offline  
Old 15 March 2016, 18:34   #2
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
The Wait Vbl goes before the screen swap.
Samurai_Crow is offline  
Old 15 March 2016, 22:10   #3
Blackgoat
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...)
Blackgoat is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:51.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07957 seconds with 13 queries