RE: ExoticaX...
- Posted by bensler at mail.com Jan 21, 2002
- 403 views
First off, thanks for the excellent salutation :) Donuts is actually a DX demo, and was ported to euphoria by Todd for Exotica. I tried to maintain all his demos as accurately as possible, and the demo didn't originally have frame skipping. Donuts will run slower on old machines, and extremely fast on newer ones. I'm not sure why MS wouldn't have added frame skipping, it's not hard at all. Look at the FPS_rate.exw demo to see how to moderate the frame rate, so it will skip when the frame speed drops below the set FPS rate. You will have to add equations for frame skipping to all the places within the donuts demo where the position of a sprite is updated. (I don't think it's worth your time though ;P) My fps routines do work, but I'm not particularly satisfied with them. I haven't done any extensive testing, but when frame skipping is done, graphics seem to freeze for a moment, or speed up dramatically, when the FPS rate fluctuates too much. You could make your own frame skipping routines quite easily using win32 timers, and I think it would be more accurate than mine. Chris C. K. Lester wrote: > ...ROCKS! > > Hats off to Chris Bensler and Todd Riggins. > > I've got DirectX 8.1 loaded and only two or three of the demo programs > locks my machine. The Donuts game runs great. I just spin and spin while > > shooting... cheap, I know! > > How come Donuts is set for 60 fps but drops to 49 when I play it? > >