Path: chuka.playstation.co.uk!news From: sceetech Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Controlling Sprites Date: Tue, 15 Apr 1997 20:12:29 +0100 Organization: SCEE Lines: 14 Message-ID: <3353D31D.1E52@interactive.sony.com> References: <3353BA17.39DC@mbox.ulisse.it> Reply-To: ps_yaroze@interactive.sony.com NNTP-Posting-Host: 194.203.13.10 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) Giulio o Riccardo wrote: > > Hi, > I have studied some demos and I have noticed that there is a common "if > Pad..." to check the state of the controller. > While the program is running I think it's a waste in CPU time. > I wonder if it's possible to use interrupts instead. > Anyone has an idea? The pads are read by a Vsync routine every frame, and the results are returned in a memory buffer. The 'if pad' stuff is just how the demos access the buffers, and doesn't really take a lot of CPU time. Colin.