a multiplayer game of parenting and civilization building
You are not logged in.
.
Last edited by jcwilk (2026-11-21 05:30:16)
Offline
Yeah... this is pretty normal!
The problem is that various graphics cards and monitors have different refresh rates in modern times. They're not all running at 60fps anymore (well, actually back in the CRT days, none of them were at 60fps anyway). We've now got 120 and 144 to deal with.
So, the game tries to figure out what kind of situation it's in at startup. If you mess with this process, it gets a bad measurement. I think the game was probably running at 30fps or even slower when minimized.
This isn't a bug, exactly.
If you have any thoughts about how to work around this, or how the game should behave if this happens (maybe some kind of warning page if it see you running at under 60fps)...
Offline
Fixed frame rate helps solve tons of problems, and it also produces a more consistent play experience on slower computers (computers that lag when lots of trees are on the screen, etc.... it feels better if those parts just slow down instead of jumping to a lower framerate and back up again later).
But the question is, what to set that fixed framerate at?
Also, vsync is REALLY important for visual quality, especially on a game that pans a lot like this. If vsync is off, people are going to see ugly tearing across the middle of their screen. This is not so important on an FPS. Most people run with vsync off, in general.
So, I need some way to measure this, to fix the frame rate, and also to warn people when vsync seems to be off (which can only be fixed by them turning it on in their graphics card control panel).
That said, I do think that I can detect alt-tab, and I should probably abort the measurement if they do that, and resume once they tab back in.
But the problem is, that's only one of many things that might result in a bad measurement.
As far as what other games do.... many of them just run at max FPS, even if the monitor can't even draw the frames that fast, which is a total waste of computational resources. Or they fix a framerate to 60fps all the time, which sucks on modern 144 fps graphics card AND sucks on older, slower computers.
Anyway, I'm trying to do something a bit smarter here.... but the result is pretty fragile.
The other thing I could do is measure it once at first startup and save it into a file. I could also put a one-time message up saying, "I just measured your fps to be 60.04, and vsync seems to be off. Is this correct? Should I save this for future sessions?" Or maybe let people type in their own desired FPS one time.
But I think a lot of people don't even know their own FPS.
Like, what is your normal FPS?
The game ships with these possible options:
30
60
120
144
So, during your alt-tab thing, it must have picked 30.
But if you're running at 60 normally, that would only make the game twice as fast. Not ridiculously fast.
So maybe your normal is 120? Which would make it 4x fast, which would be unplayable.
Offline
Yeah, if you're running 2x as fast, you will arrive places way early, and the server won't let you do anything there until it thinks you've actually reached your destination.
Anyway, I think this is pretty exploit-proof, because everything is happening server-side, including move speed and timing. The client just displays it to you (in this case, displaying the moves faster and shorter than they actually are).
As far as enforcing the frame rate via sleeping goes, if vblank is really on, we DO NOT want to do that, as it introduces tearing. But here it is way off from what we think it is, so vblank at 30fps is clearly not working.
The other option is to measure again, on the menu screen.... or wait until then to measure in the first place. But it does require a few seconds for a proper measurement.
Maybe first-startup needs to be more interactive about measurement. It should say, "Are you ready for me to measure your framerate?" and then wait for you. After that, it should say, "I measured 60fps and vsync seems to be on, should I save this for future runs?"
So then later, it won't measure anymore, so minimizing and such won't matter.
But sheesh.... people will be annoyed by any of this stuff, because no other games are doing it.
I really think that other games are pretty much phoning it in, though...
I think that part of the problem stems from my game recording system, which depends on fixed-length timesteps.
Probably most other games use variable timesteps, and are just constantly measuring the latest frame time every frame. But when frame times slow down (like during busy scenes), I find this to be aesthetically jarring, because it results in big jumps in movement. I think slowdown is better than bigger, stuttery jumps.
Offline
That's a good point about multiplayer vs single player.... hmmm....
I do really hope that it will run at a solid 60fps on almost everyone's machines. It does so on these very old laptops that I have here at home....
Offline