-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factorio: FPS drops massively when zooming out #4214
Comments
Reproduced the slowness. Got down to 12FPS when zooming out, looks fully CPU bounded on one thread.
Looks like this drawSprite function just gets absolutely hammered, taking up 53% of the CPU time on a single thread. |
so.. the hottest blocks here are tiny, and translated optimally for single block (the actual block cache overhead, for one. but for the generated instructions, we're dominated by flag calcs that would get eliminated with multiblock [with the existing global flag opt pass I did last summer])
multiblock would eliminate the move and the cfinv, and then we're optimal |
I tried enabling Multiblock in the config, but no luck, the issue remains the same. It would be interesting to see the arm code generated with multiblock. @alyssarosenzweig how did you get this dump of the hot spot? (I also see you added it to the test suite in #4226.) I tried enabling |
Looks like this is almost entirely TSO emulation bottlenecked. So once again a case of LRCPC not being good enough. Disabling TSO emulation gets me up to 60FPS on X1E. I bet Apple Silicon doesn't have any issue with this due to the hardware TSO support. |
Indeed setting |
Tangential to the original issue, but with this little script I wrote originally to scrape hot blocks out of bytemark given the RIP:
|
What Game
Factorio
2.0.23 (build 80769 expansion, linux64)
(Space Age mods disabled)https://store.steampowered.com/app/427520/Factorio/
Describe the bug
Massive FPS drop when zooming out.
To Reproduce
Steps to reproduce the behavior:
Note that some menu animations also drop to quite low FPS, I assume it's the same issue.
Expected behavior
The game runs smoothly.
Screenshots and Video
System information:
See this commit for the nix expressions for the bwrap based chroot: https://github.com/kuruczgy/nixos-aarch64-gaming/tree/6a8acdb69f2963a3f5f998f3a65c8520dfffa6b8
Additional context
The text was updated successfully, but these errors were encountered: