From: | Tim Hanson |
Date: | 22 May 2000 at 23:05:50 |
Subject: | Double buffer flicker. |
Hi All,
I`m having real problems getting rid of screen flicker from double buffering
in my game "Space". When I had a better monitor I didn`t get any flicker, now
it`s quite bad and I`ve been told about it by others.
What is the correct way to do screen swapping with ScrollViewPort()?
I`m doing this:
WaitTOF();
ScrollViewPort(viewport);
Should I use WaitBOVP() instead? It doesn`t seem to make any difference but
I`ve been told that WaitTOF() is broken under CGFX. I also have a function
called limit25FPS() which uses timer.device to stop the frame rate getting
above 25 fps when nothing much is happening. Where should I put this in the
loop. ATM the loops looks like this in pseudo c:
while(levelnotfinished)
{
levelnotfinished=processNewShips();
doControls();
limit25FPS();
swapDisplay();
levelnotfinished |= drawAll();
}
Is there a better order to do this in?
Thanks in advance.
Tim Hanson,
by the River,Canterbury, Kent.
Amiga A1200T,`040/25,603e/160,32MB Fast,BVisionPPC,
8.4GB IDE HD,ZIP SCSI,RENO x2CD SCSI,Pace 56K
Don`t waste your time by visiting
http://www.sinister67.freeserve.co.uk