Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!bellcore!tness7!tness1!sugar!peter
From: peter@sugar.uu.net (Peter da Silva)
Newsgroups: comp.sys.atari.st
Subject: Re: Animation Topics
Message-ID: <2650@sugar.uu.net>
Date: 18 Sep 88 14:42:35 GMT
References: <8809100453.AA01878@TIS.COM>
Organization: Sugar Land Unix - Houston, TX
Lines: 17

In article <8809100453.AA01878@TIS.COM>, dmb@TIS.COM (David M. Baggett) writes:
> 	Setscreen((char *) -1L, (char *) new_phys_base, -1);
> 	Vsync();

I'm not particularly familiar with the ST, but since SetScreen is asynchronous,
the following code (based on Amiga code) should work better:

	Generate animation in newscreen;
	Vsync();	/* wait for previous SetScreen (of oldscreen) to work */
	SetScreen(newscreen);
	Go back to generate next screen.

This way you get to do computations while waiting for SetScreen, and there's
always a screen out there waiting to show up.
-- 
		Peter da Silva  `-_-'  peter@sugar.uu.net
		 Have you hugged  U  your wolf today?