[2.0.17] Mining through remote view is usually slower than using character
Posted: Wed Nov 13, 2024 9:20 pm
What happened
Mining most entities entity while in remote view is slower than while mining normally. Mining in remote view meaning marking something for deconstruction. For example, with Steel Axe researched and mining a medium electric pole:
I also expected the mining time to be consistent between character and remote-view. Or at least marking-for-decon through remote view to be at least as fast as mining by hand.
Thoughts
It seems like marking-for-decon doesn't follow the prototype's mining time, and it hardcoded to 16 ticks (according to my little script).
You spend a lot of time in remote view now, and your muscle memory of fast building entities is slightly of the whole time which can get really frustrating. Especially since it's not clear why it's slightly off, and that I would expect marking it for decon should be the same, or at the very least faster.
And 9 ticks difference doesn't seem like much, but it's 150 ms! This becomes very noticable when you've mined thousands of entities.
Reproduction
Use this script and mine something manually, and then the same thing through remote view. Of course after researching Steel Axe.
Mining most entities entity while in remote view is slower than while mining normally. Mining in remote view meaning marking something for deconstruction. For example, with Steel Axe researched and mining a medium electric pole:
- Mining by hand takes 7 ticks
- Marking for decon takes 16 ticks
I also expected the mining time to be consistent between character and remote-view. Or at least marking-for-decon through remote view to be at least as fast as mining by hand.
Thoughts
It seems like marking-for-decon doesn't follow the prototype's mining time, and it hardcoded to 16 ticks (according to my little script).
You spend a lot of time in remote view now, and your muscle memory of fast building entities is slightly of the whole time which can get really frustrating. Especially since it's not clear why it's slightly off, and that I would expect marking it for decon should be the same, or at the very least faster.
And 9 ticks difference doesn't seem like much, but it's 150 ms! This becomes very noticable when you've mined thousands of entities.
Reproduction
Use this script and mine something manually, and then the same thing through remote view. Of course after researching Steel Axe.
Code: Select all
/c
local player = game.player
local mining = false
local start
script.on_event(defines.events.on_tick, function(e)
if not mining and player.mining_state.mining then
mining = true
start = e.tick
elseif mining and not player.mining_state.mining then
mining = false
game.print("Mining took "..(e.tick - start).." ticks")
end
end)