Smoothe animation - in BPlus

BlitzPlus Forums/BlitzPlus Programming/Smoothe animation - in BPlus

Hansie(Posted 2003) [#1]
Being new to Plus, I need to get to grips with smoothe scrolling in general.

On other platforms I programmed I used double-buffering and VBLANK to get optimal performace and pixel-perfect animation.

I know this is possible, and in your experience, what is the fastest possible way?


Ross C(Posted 2003) [#2]
Double buffering has to be used in blitz plus i'm sure. Basically draw your images, call flip, then clear screen and start again :)


darklordz(Posted 2003) [#3]
we have the ront buffer and back buffer.

example:

graphics 640,480,0,2
setbuffer backbuffer()

while not keyhit(1)
text 20,20,"lol"
flip ; Flip the gfx from backbuffer to frontbuffer!
wend


Eikon(Posted 2003) [#4]
AutoSuspend 1
CreateTimer(60)
Repeat
Select WaitEvent()
     Case $4001 ; Tick
     ; Do all your rendering here
     VWait 1: FlipCanvas Canvas, 1
End Select
Forever


This gives the smoothest scrolling I could come up with, and i've tried many methods.


Hansie(Posted 2004) [#5]
@Eikon

super tip. thanx