Page 1 of 1

[boskid][1.1.65] Lag spike when using copy/upgrade/destruction planner from far away when in map view

Posted: Sat Aug 13, 2022 11:22 pm
by Gorfiend7
Problem: Copying something far away when in map view causes a temporary freeze.

Expected: No freeze when copying.


Here's a screenshot just after copying a rail - note the max frame/Update times (>1000):
slow.jpg
slow.jpg (360.04 KiB) Viewed 2227 times

It only happens in map view - zooming in to normal view and doing the same thing has no issue:
zoomed in.jpg
zoomed in.jpg (626.45 KiB) Viewed 2227 times

It also depends where on the map the action is performed. Here's the result of doing the same thing in a different location - notice max frame/Update times around 80:
alternate.jpg
alternate.jpg (382.55 KiB) Viewed 2227 times

For reference, here's an overview image:
overview.jpg
overview.jpg (700.88 KiB) Viewed 2227 times

The first two screenshots are from the bottom-right corner of the solar field, the third from the bottom-left.

Some testing looks like the lag spike is based on distance to the player, and possibly the number of entities in between having some influence. How much is copied doesn't matter - it can even be empty and cause the same lag spike. Copy/blueprint/upgrade/destruction planners all behave the same. Tested with a couple other large maps on a different computer with similar results.

Re: [boskid][1.1.65] Lag spike when using copy/upgrade/destruction planner from far away when in map view

Posted: Sun Aug 14, 2022 7:00 am
by boskid
Thanks for the report. Issue is now fixed for 1.1.66.