Article View: comp.sys.atari.st
Article #32140Re: fast scrolling
From: Smee
Date: Mon, 25 Apr 1988 09:30
Date: Mon, 25 Apr 1988 09:30
12 lines
993 bytes
993 bytes
Matt's is a special case of the general principle, don't work in smaller chunks than you have to. For example, if you are moving a sprite around the screen at high speed, don't move it a pixel at a time. Rather, work out how far it will go in one complete screen frame (1/70 sec mono, 1/50 or 1/60 second in colour) and then move it that many pixels in one jump, synchronized with the VSYNC. You can get a lot of speedup that way in many cases. Of course, you have to work out whether you are talking to a mono or colour monitor, and if colour, at what frequency, but you can get the OS to tell you all that.
Technical Details
Message-ID:
<2468@bath63.ux63.bath.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!mcvax!ukc!dcl-cs!bath63!pesReferences:
<8804202024.AA18481@cory.Berkeley.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!mcvax!ukc!dcl-cs!bath63!pes From: pes@ux63.bath.ac.uk (Smee) Newsgroups: comp.sys.atari.st Subject: Re: fast scrolling Message-ID: <2468@bath63.ux63.bath.ac.uk> Date: 25 Apr 88 09:30:43 GMT References: <8804202024.AA18481@cory.Berkeley.EDU> Reply-To: pes@ux63.bath.ac.uk (Smee) Organization: AUCC c/o University of Bath Lines: 12