In the latest nightly (see https://www.openttd.org/downloads/opent ... atest.html ), you will notice a huge difference in how mouse, window, scrolling, etc behaves .. if you are in those kind of things. Well, I am pretty sure 90% of the people will notice, even more if you compare it side by side.
Buttttttt
The GUI of OpenTTD is finally running at 60fps by default! And you can change it to any value you like .. so if you have 144Hz screens like me, set it to refresh_rate to 144, and enjoy silky smooth map movement. One note .. it will cost you more CPU time, so Fast-Forward will be slower.
Talking about Fast-Forward ... check out how LIGHTNING fast it is now. And more improvements on the horizon .. owh, such good days.
How fast, you say?
Well, at 60fps, I can hit a simulation rate of 9999.99 frames/sec (on an empty map, I know, cheating). It turns out, I found the upper-limit of the Framerate Window ...
So how did we get here? What happened? Well, funny story ...
-----
While working on the SDL video driver, something was bugging me. I noticed that the drawing was tightly coupled to how fast we run the game .. meaning that on Fast-Forward it would be drawing the screen like a crazy person. I was like .. that sounds like a waste of good CPU time. Can't we split those two completely different tasks, and run them independent of each other? Turns out, yes, yes we can.
So, that solved a huge issue for me: I could now run the drawing on a normal 33.33fps, as the game did in 1.10, and have a Fast-Forward lightning-fast. That was what I set out to do, and it was awesome.
But a realization struck me .. if I can draw independent of the game-loop ... can I also not just render the game on a more normal 30fps? Yup. And owh, can I do it at 60fps? YES! OMG! THIS LOOKS SO MUCH BETTER AND SMOOTH AND OMG OMG!
So I was all happy ... turned out I could port this to all our video drivers ... and here we are: we can now all enjoy 60 fps UI, while the game still runs at a normal 33.33 fps. Sweet
Does it end here? Of course not! We already have in the works a window where you can control the Fast-Forward speed .. as it turns out that if 1 real-world second becomes 1 game-month, the current Fast-Foward button becomes .. less .. useful. So we will fix that soon too \o/
And what else? Well, michi_cc has made HUGE improvements to the OSX video driver .. and soon we hope to add OpenGL support for SDL (Linux) and Windows .. which is another huge improvements in drawing speed.
So what do I care?
Well, if you are like me, you are going to love the smoothness of 60fps.
But also, spending less time on drawing means your computer can handle bigger games easier.
And that is something we can all enjoy!
More trains more trains more trains .. and more NewGRFs of course
Why am I telling you this story? Well, sometimes you work on something else, and you find out that you can improve how the game plays for everyone everywhere .. just completely by accident. How insanely cool is that? I just had to share the happiness.
Owh, and andythenorth was forcing me to write this post. That also might have something to do with it. Make sure to give him a hug when you see him





