Page 1 of 1
Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Thu Oct 31, 2024 4:26 am
by eternialogic
When you blow up asteroids, they become several chunks, this slows the game down to 47 fps for good computers and servers down to a solid 30 UPS.
Many players are unable to connect and several seem to run 5 ups/fps even in Nauvis when we started this trip.
Server UPS measured using the assembler time recipe method is 33 UPS.
A possible fix is to combine asteroid chunks into stacks like in minecraft, auto-stack items together.
Logs and save file attached
Save file:
https://drive.google.com/file/d/1_JN-KC ... sp=sharing
- 10-31-2024, 00-19-53.png (3.67 MiB) Viewed 3219 times
- 10-31-2024, 00-41-46.png (3.69 MiB) Viewed 3218 times
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Thu Oct 31, 2024 7:02 am
by computeraddict
...are those emergency land mines on your space ship?!
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Thu Oct 31, 2024 7:15 am
by eternialogic
they are a cheap way to get rid of small and medium asteroids. Useless against huge asteroids.
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Thu Oct 31, 2024 12:38 pm
by Rseding91
Thanks for the report however this is not a bug. Nothing here is crashing, erroring, or not working how it's supposed to. While yes, the platform is taking a decent amount of update time - it's entirely pointless to fly head-first towards the shattered planet and ignore 99.99% of the chunks along the way. The platform could have turned back long ago given it's not doing anything useful.
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Thu Oct 31, 2024 1:52 pm
by Rseding91
As a side note, I did find a slight improvement for asteroid chunk performance. For the next release they're roughly 29% faster.
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Wed Nov 27, 2024 12:27 pm
by gujarat6
Rseding91 wrote: ↑Thu Oct 31, 2024 12:38 pm
Thanks for the report however this is not a bug. Nothing here is crashing, erroring, or not working how it's supposed to. While yes, the platform is taking a decent amount of update time - it's entirely pointless to fly head-first towards the shattered planet and ignore 99.99% of the chunks along the way. The platform could have turned back long ago given it's not doing anything useful.
This is a problem a lot sooner than you think. There are many more chunks apart from the Promethium and the game just starts lagging. Funny you say that a part of the game which makes the game much less playable is not a bug. I know it's not a bug, this is by design, but if it makes the game unplayable then it should be changed/optimized.
I attach a lot smaller setup than the authors of this post, which is also dropping below 60 UPS on dedicated server.
- chunks.png (4.26 MiB) Viewed 782 times
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Wed Nov 27, 2024 12:29 pm
by gujarat6
Someone even created a mod, released 4 hours ago, for this exact problem. Just a confirmation this issue is still relevant.
https://mods.factorio.com/mod/UPS_Frien ... rom=search
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Wed Nov 27, 2024 12:33 pm
by Rseding91
There’s nothing else to do here. There have already been several rounds of optimizations for asteroids, asteroid chunk, and overall platform performance. When an opportunity shows up to improve on we do and already did.
No matter how much we optimize things you can just copy paste and build twice as much in an instant - you will always hit the limit of what hardware can do.
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Wed Nov 27, 2024 12:35 pm
by Rseding91
This mod makes no sense as it shows projectile performance when asteroid chunks do not interact with projectiles in any way. Also it’s showing the explosion entity as taking any amount of time which indicates to me the mod developer has a very low end PC.
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Wed Nov 27, 2024 3:13 pm
by Genhis
I managed to further improve asteroid chunk update performance of the attached save file by 35% (0.8 ms overall on my machine).
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Wed Nov 27, 2024 3:47 pm
by Rseding91
I also found an optimization related to asteroid chunk creation where asteroid collectors were doing several O(N) checks which got simplified to near O(1). It reduced projectile impact cost from 3.5~ MS/tick to 0.4 MS/tick in the example save I was testing with.
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Tue Dec 03, 2024 10:57 pm
by gujarat6
When running like a bigger ship to shattered and a couple of smaller ones I'm seeing asteroid collectors going up to 5 entity update on a 5950X. Seems a bit much, but only you can tell me if it's possible to do anything about that.
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Wed Dec 04, 2024 9:18 am
by Genhis
gujarat6 wrote: ↑Tue Dec 03, 2024 10:57 pm
When running like a bigger ship to shattered and a couple of smaller ones I'm seeing asteroid collectors going up to 5 entity update on a 5950X. Seems a bit much, but only you can tell me if it's possible to do anything about that.
It's always useful to share such save files even if we couldn't do anything about it.
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Wed Dec 04, 2024 10:33 am
by gujarat6
Genhis wrote: ↑Wed Dec 04, 2024 9:18 am
gujarat6 wrote: ↑Tue Dec 03, 2024 10:57 pm
When running like a bigger ship to shattered and a couple of smaller ones I'm seeing asteroid collectors going up to 5 entity update on a 5950X. Seems a bit much, but only you can tell me if it's possible to do anything about that.
It's always useful to share such save files even if we couldn't do anything about it.
Here you go:
https://drive.google.com/file/d/1_TBFFl ... sp=sharing
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Wed Dec 04, 2024 2:48 pm
by gujarat6
When the ship is on route to the shattered planet, asteroid collectors take up like 40% of the whole game update.
Re: Endgame trip to Shattered Planet is incredibly laggy [Spoiler]
Posted: Wed Dec 04, 2024 4:16 pm
by Rseding91
Looking at that save, the time spent seems to be linear with the number of asteroid chunks passing a given collectors path.