Flare - 60fps

Flare - 60fps

manwesulimo2004's picture

I love playing games with high frame rates. :) When I played Flare it bugged me that raising the frames_per_second in the config file caused everything to run faster. I thought it would be cool to have the game run at the same speed regardless of FPS so I started writing a patch for it. Unfortunately I had to make a lot of changes in order for things to work properly. So much of the game was entirely dependent on a fixed frame rate.

Anyway, as I was working on this I was practically forced to add some new features to make the system robust enough. So I added some new concepts such as Triggers. Triggers are a combination of Conditions and Actions. When all the Trigger's Conditions are met the Trigger's Actions are executed.

I might have missed some stuff but I think all of the events in the game should "scale with the frame rate" now. This results in worse overall performance (i.e. more CPU consumption) even though the game feels like it's running better if your computer can handle it and you are playing at more than 30fps. I have lots of ideas and plans on how to reduce the performance impact considerably though.

I also want to make the code more generic. Currently I have a few abstract classes and lots of derived classed but I think many of the derived classes could be eliminated somehow. I'll look into it.

All changes are based on version 0.13 of the game. The patch file is attached.

Let me know if it works for you and just ask if you have any questions.