Me and my friends have been placing lots of blueprints (for fun), and then deconstructing them, over and over. Rails and chests mainly.
After a while, the (headless) server started hogging huge amounts of CPU, and our clients also lagged quite a bit.
Logs don't show anything, but usage statistics show that 'CRC' is eating about 12ms of the frame time client-side on a Ryzen 2600, and more for my friends.
https://imgur.com/Dg2cs4f
[0.17.4] Blueprints/decons lag multiplayer game
[0.17.4] Blueprints/decons lag multiplayer game
- Attachments
-
- bug report.zip
- (13.12 MiB) Downloaded 127 times
-
- factorio-current - Copy.log
- (10.95 KiB) Downloaded 122 times
Re: [0.17.4] Blueprints/decons lag multiplayer game
After a bit of research, it looks like it is only lagging whenever I am logged in onto the server.
From another's player POV:
https://imgur.com/a/ZVB1lN1
It doesn't lag if I'm not logged in, and it doesn't lag when any of us plays the map in singleplayer.
From another's player POV:
https://imgur.com/a/ZVB1lN1
It doesn't lag if I'm not logged in, and it doesn't lag when any of us plays the map in singleplayer.
Re: [0.17.4] Blueprints/decons lag multiplayer game
After a bit more research, it looks like it's directly related to undo history size.
Reproduction steps:
Undo seems to clear the lag somewhat, but I still have no real way to 'clear' it, since I've built quite a few objects while lagging horribly.
A possible solution would be an option to clear the Undo history, assuming that's the problem.
Until then, I have a save that I can only play locally, or under a different username.
Reproduction steps:
- Start or join a multiplayer server. (Headless and local both work.)
- Start placing lots of rail ghosts on top of each other, easiest to do by shift-clicking rails on roughly the same spot. (Belt or wall ghosts also work.)
- Deconstruct all of them at once.
- Notice how the CRC jumps by 0.1-1.5 ms depending on the blueprint density.
- Rinse and repeat until you cannot play anymore.
Undo seems to clear the lag somewhat, but I still have no real way to 'clear' it, since I've built quite a few objects while lagging horribly.
A possible solution would be an option to clear the Undo history, assuming that's the problem.
Until then, I have a save that I can only play locally, or under a different username.
Re: [0.17.4] Blueprints/decons lag multiplayer game
Thanks for the report. It's now fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.