Started to notice lagging of the game (UPS) while placing/removing belts by hand on my save.
Fresh map with scenario does not generate such lag.
---Most of time comes from "Game update > Entity update" (idle 0.2ms, placing belts 1.0ms, removing belts 0.5ms) and "Script update > level" (idle 0.03ms to 0.1ms, placing belts 0.9ms, removing belts 0.5ms) entries.--- "GUI update" during building process jumps from 0.1ms to 18ms.
I've about 5.8k belts for the coin generator and about 9k belts total.
UPD: Lag also present in the editor.
UPD2: On new map with scenario (after cleaning up space around spawn using editor) time increases also observable, but not to this degree ("entity update" from 0.03 to 0.05ms, "level" from 0.1 to 0.3ms). In sandbox "level" is below 0.01ms.
UPD3: removing processing of on_built_entity
, on_player_mined_entity
, on_robot_built_entity
and on_robot_mined_entity
fixes the issue. Also, it's not "Update" times that caused issues, but "GUI update".