www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/29/13:37:07

Message-ID: <000401bda384$61be1660$364e08c3@arthur>
From: "Arthur" <arfa AT clara DOT net>
To: "DJGPP Mailing List" <djgpp AT delorie DOT com>
Subject: Re: Using timer to control sprite movement
Date: Mon, 29 Jun 1998 14:11:49 +0100
MIME-Version: 1.0

> I'm new to programming in DJGPP and Allegro. I used to program C/C++ in
> TurboC, real mode. My problem is that I used to put a lot of funtions
which
> control the movement of sprites in an interrupt-handler, but Allegro says
> you should lock the functions and variables before using them in an
> protected-mode interrupt-handler. How do I go about that with all the
> functions I use?!? The reason I used this method was to let the sprites
> always move 25 or 50 times a second even on computers which do not get a
> framerate of 25/50, but what other way is there to achieve this?


You could always disable protected mode, and use your own sprite routines. I
know I'll get a lot of flak from other members of this group for this, but I
know for a fact that it is the preferred method in game and demo coding
circles.


James Arthur
jaa AT arfa DOT clara DOT net

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019