Original Post
First, I wanna say hello..I''m a newbie to the game programming world...quite excited.
Ok...here''s my question...I''ve written my first particle engine and was curious to know the FPS I was generating...so I set up a simple timer to trigger a call to some function every second that displays the FPS...when I let the code loose..meaning smack everything into a while loop...I get 45-50 FPS...this is using double buffering..blitting a background RGB BMP onto a buffer then using sprite blitting routines to whack the snowflakes as per the particle engine....res of buffer is 640x480x24...finally, I blit the buffer onto the screen...then instead of clearing the buffer....I leave it and next time round the background blit will reset it to the background saving a step.....is this FPS correct?
3D games at higher res gets more...Do they just use seriously complex optimisations and stuff, I''m a bit confused.
One more thing....allegro has a rest function...so if I set up the "main loop" to occur as a timer trigger(say trigger 40 times a second) and rest...I get a higher framerate than if I replace the rest by a while 1 loop. Seems the while slows me down.
Sorry, one more....There''s allegro, what other kits are there...SDL seems more multi-purpose whereas allegro is for games....I might be wrong..is allegro any good?