Page 1 of 1

[0.13.1] Multiplayer slows down a lot when using blueprints

Posted: Fri Jul 01, 2016 7:47 am
by Killkrog
Heho!

Multiplayer, 2 Clients on a Linux Headless.
Ping between clients aprox 35ms, Ping between clients and server 25ms and 45ms.
During normal play FPS/UPS 60/60.
Taking a big blueprint (3.5 belts + 1k other items) into hand so that placement preview appears -> 60/60
Actually placing the blueprint so that now the ghosts are on the ground AND i still have the blueprint in my hand -> FPS/UPS 15/0.2 (for both clients obviously)
Other client leaves the sever -> 60/60
I put the blueprint back into my inventory. the ghosts are still on the ground. client reconnects -> 60/60

htop says resources are fine on server during the whole process.

Whats happening there? :D

Re: [0.13.1] Multiplayer slows down a lot when using blueprints

Posted: Fri Jul 01, 2016 8:05 am
by Rseding91
Enable the debug option time statistics and please take a screenshot of it when it's running slow.

Re: [0.13.1] Multiplayer slows down a lot when using blueprints

Posted: Fri Jul 01, 2016 11:33 am
by Killkrog
You guys are awesome. Really...

Here is the requested data. The four chunks from left to right describe following situations:

1. I just placed the blueprint (my FPS/UPS 0.8/0.8)
2. My friend left the game (my FPS/UPS 35/60)
3. I put the blueprint pack into the inventory, my cursor is empty now (my FPS/UPS 60/60)
4. My friend rejoined, the blueprint ghosts are still present (my FPS/UPS 60/60)

Probably important fact: During situation 1, my friend's game is completely frozen. And I mean frozen. No update at all, it still shows 60/60 for him and he can only interact with the game by killing it via task manager.

If I can help you with any more information, please let me know =)

Re: [0.13.1] Multiplayer slows down a lot when using blueprints

Posted: Fri Jul 01, 2016 11:53 am
by Rseding91
Can you please upload the save game so I can test it?

It's saying the time is spent in the latency update which might be expected as it's simulating the building of that blueprint.

Re: [0.13.1] Multiplayer slows down a lot when using blueprints

Posted: Fri Jul 01, 2016 2:39 pm
by Killkrog
Here you go, have fun :D

Re: [0.13.1] Multiplayer slows down a lot when using blueprints

Posted: Sat Jul 02, 2016 9:46 pm
by Rseding91
I "fixed" it for 0.13.4 by turning off the latency state blueprint building if building with a blueprint that contains > 300 entities + tiles until we can do some performance improvements to the latency state logic.