110 posts
Posted 07 February 2014 - 12:22 PM
I can't find this information, though I recall running into it a year ago.
How fast does a turtle move in blocks/second?
Also,
How long does it take to turn?
How long does it take to mine a block?
Is there a table of other timings?
I could spend time and come up with a rough estimate but it'd be nice to have some authoritative numbers.
I ask because I'd like to design farms that are sized and positioned to remove bottlenecks in related systems. I'd like to be able to compute how long a task will take before I write the program. Similar to estimating fuel usage before running a task.
Thanks.
34 posts
Posted 07 February 2014 - 02:52 PM
i think it takes 1 or 2 ticks to Turn and move forward up and so.
and for mining i dont know just the same time as you do with a diamond pickaxe
91 posts
Posted 07 February 2014 - 05:22 PM
i think it takes 1 or 2 ticks to Turn and move forward up and so.
and for mining i dont know just the same time as you do with a diamond pickaxe
I'm not sure how accurate this test is, but I set a turtle to move and print(os.clock()) between each move command to see the time between them and it came to .4seconds (8ticks). The results were the same for turning. If someone knows for sure, I'd like to know if this is an accurate test.
7083 posts
Location
Tasmania (AU)
Posted 07 February 2014 - 06:23 PM
Nothing wrong with it, but you'd want to repeat it a few times to make sure fluctuations in the server tick rate aren't affecting matters.
My rule of thumb when timing small events is to queue a bunch of them, time how long it takes to complete the lot, divide down for the average and then round to taste. For example, I found that a full stack in a pulveriser takes about 256 seconds, which divides down to a neat four seconds an item.
91 posts
Posted 07 February 2014 - 06:39 PM
I did it in single player on pretty much a blank world and had it repeat 10 times per test(as well as doing the test itself multiple times). Is there anything else I should take into account?
7083 posts
Location
Tasmania (AU)
Posted 07 February 2014 - 06:58 PM
Nothing comes to mind, I'd say your results are about right.
If memory serves, falling sand/gravel takes 0.8s.
110 posts
Posted 10 February 2014 - 10:12 AM
So, nothing official? I could have sworn I ran across something like that.
I'll run some tests and average the results, then. Thanks.
If memory serves, falling sand/gravel takes 0.8s.
That long? I throw a 0.2 second delay in my fwd() function that digs out obstacles, maybe I should increase it….
i think it takes 1 or 2 ticks to Turn and move forward up and so.2 ticks = 0.10 seconds. Turtles do not move 10 blocks per second! and for mining i dont know just the same time as you do with a diamond pickaxe
Well, turtles break blocks instantly but there's a cooldown (yield) time that I'd like to find out. It takes 9.37 seconds to mine obsidian with an unenchanted diamond pickaxe, according to the wiki. A turtle mines obsidian much faster.
Edited on 10 February 2014 - 09:13 AM
7508 posts
Location
Australia
Posted 10 February 2014 - 10:16 AM
Well, turtles break blocks instantly but there's a cooldown (yield) time that I'd like to find out. It takes 9.37 seconds to mine obsidian with an unenchanted diamond pickaxe, according to the wiki. A turtle mines obsidian much faster.
The "cool down" is the time it takes the pick to move back from digging, which is half an animation — at some point, can't remember when, it was decided amongst the community that all animations and movements are 0.8 seconds — meaning the fastest you could mine blocks is every 0.4 seconds.
Edited on 10 February 2014 - 09:17 AM