Page 1 of 1

[0.15.33] Diagnose performance issue

Posted: Fri Aug 25, 2017 3:54 am
by mmootygam
I play together with another player, and we have a fairly large factory going (according to our standards, anyway). When he's the host and I'm the client, I lag very badly. When I host and he is the client, I'm fine but he lags about 1/3 the time. I recently created a headless server, and he was able to connect just fine, but I still lagged very badly.

I would like to know what the performance bottleneck is for my computer--CPU, GPU, network, or disk. Attached is my F5 report.

Is there anything I can do? I can't even catch up anymore.

Re: [0.15.33] Diagnose performance issue

Posted: Fri Aug 25, 2017 5:48 am
by d3x0r
the multiplayer stats (upper right) you lag when the numbers are above zero.

Re: [0.15.33] Diagnose performance issue

Posted: Fri Aug 25, 2017 6:11 am
by Koub
That's the consequence, what you already have guessed by experiencing lag.
For the cause, it's on the left, the Update section is what interests us.
Whenever you're above 16.xxx, you'll have more computation power needed than you can handle in 16.000 (the 16.000 is 16ms, 1/60th second). At higher update times, you won't be able to fit 60 of them in a second, and your UPS (updates per second will start to decrease, making your game stutter.

In your case, entity update uses up to 25ms of the 16 ms the game needs to achieve 60UPS. You need :
- either faster CPU or faster RAM (depending on which is the bottleneck
- or less CPU hungry organisation of your base (replace very long belts by trains, beaconize heavily to reduce number of entities, ...)

Re: [0.15.33] Diagnose performance issue

Posted: Mon Aug 28, 2017 3:19 pm
by mmootygam
Thanks guys, that helped a lot. I'm going to get a new CPU and RAM, since they're 5 years old anyway. I'll also start using more beacons. Already using trains.

Thanks!

Re: [0.15.33] Diagnose performance issue

Posted: Mon Aug 28, 2017 9:15 pm
by Jap2.0
mmootygam wrote:Thanks guys, that helped a lot. I'm going to get a new CPU and RAM, since they're 5 years old anyway. I'll also start using more beacons. Already using trains.

Thanks!
0.16 will also help a lot, as they have belt optimizations planned, as well as some other various ones.