Page 1 of 1

[2.0.17] Mining through remote view is usually slower than using character

Posted: Wed Nov 13, 2024 9:20 pm
by Stringweasel
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:
  • Mining by hand takes 7 ticks
  • Marking for decon takes 16 ticks
What did you expect to happen
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)

Re: [2.0.17] Mining through remote view is usually slower than using character

Posted: Wed Nov 13, 2024 9:30 pm
by computeraddict
Stringweasel wrote: Wed Nov 13, 2024 9:20 pm 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.
I hadn't actually noticed this since my reflex after getting bots is to always just deconstruction planner everything, and I've mostly been appreciating the remote view mining time as a "accidentally right clicking on a ghost doesn't force a ctrl z" feature.

But yeah it's kind of weird to have the same button take different times for an equivalent action.

Re: [2.0.17] Mining through remote view is usually slower than using character

Posted: Wed Nov 13, 2024 11:36 pm
by Neutronium
In case you don't know, holding the right mouse button once you get past that decon timer allows you to decon multiple items at a time. Just be sure to have good mouse control. ;)

Re: [2.0.17] Mining through remote view is usually slower than using character

Posted: Thu Nov 14, 2024 12:54 am
by Rseding91
Thanks for the report however none of this is a bug. All of these things were specifically programmed to work how they're working.