🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #34135

Re: Animation Topics

#34135
From: Peter da Silva
Date: Sun, 18 Sep 1988 14:42
17 lines
1032 bytes
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?
Technical Details
Message-ID: <2650@sugar.uu.net>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!bellcore!tness7!tness1!sugar!peter
References: <8809100453.AA01878@TIS.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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