View Single Post
Old 17 January 2016, 19:25   #9
aszu
Registered User
 
aszu's Avatar
 
Join Date: Mar 2014
Location: Leeds
Posts: 141
Quote:
Originally Posted by Mrs Beanbag View Post
yes, never use two wait vbls or you'll just slow things down, but that's not what i said.

Double buffering creates two screen buffers, the bobs are drawn to the invisible buffer, and then the buffers are swapped, so you never see the screen half-way through the drawing. It prevents flickering of bobs and other animation.

If you are using "screen copy" to scroll the screen around, the bob drawing routine might get confused, because the stored background behind the bobs will be wrong, so you will need to turn "bob update off" and "autoback 0" and do manual "bob clear"/"bob draw" operations to make it work. Clear the bobs, then scroll, then draw the bobs. Then "screen swap" and "wait vbl".
i know u did not but what i meant was it gets choppy with the second wait vbl command, otherwise everything is smooth.i use double buffering and switch the screens after drawing the background, then draw bobs. turned "bob update off" and draw them after the scroll. everything is perfect as long as i use amal. actually i just got an idea. eureka! i ll try it when i have a chance!
aszu is offline  
 
Page generated in 0.04532 seconds with 11 queries