Re: [AD] Shawn's thoughts about new Allegro

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 13 Dec 2001 at 18:06, Bob wrote:
> I'd like to extend al_readkey() to support all KEY_*, not just a few of 
> them, and also add timestamps to them if possible. The current Allegro input 
> system is very prone to frme rate variations. A sudden drop in frame rate 
> could mean keys get dropped, controls don't respond as well, etc.

I'm not sure why this is really a problem for you.  I use the key array to 
do my input checks.  I would not consider using readkey() or keypressed() 
to to input because that is just a hard way of doing what the key array 
already does for me, plus I can read keystrokes without killing the buffer.

My game has a 100fps logic rate that runs independent of the graphics, 
drawing the graphics only when it has time too.  In slow situations it is 
still easy to control.  I played it in a very low fps situation on my 
friend's 300mhz iMac running MacOS 9 and VirtualPC getting 5-10fps in a 
networking multiplayer test.  No keys were ever dropped because even though 
the graphics were slow the 100fps logic was still there.  It was a bit 
harder to control because of the low framerate though, but ping was fine 
and the other systems saw him just fine ;).

Gillius



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/