This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
jadelade's profile picture

[System_Stats] What Are The Computers Clocked At?

Started by jadelade, 08 August 2013 - 02:17 AM
jadelade #1
Posted 08 August 2013 - 04:17 AM
I have bean looking around for the clocking for the computers but i cant fined it! Could someone help?
GamerNebulae #2
Posted 08 August 2013 - 05:37 AM
I have bean looking around for the clocking for the computers but i cant fined it! Could someone help?

Do they even have clock speeds? xD
ben657 #3
Posted 08 August 2013 - 06:51 AM
I'm not completely certain, but I'm pretty sure they match the games tick speed. So assuming no server lag or anything, it'd be 20 ticks per second

EDIT: no actually that would be ridiculously slow… Ignore that, I have no idea :P/>
Robert00001 #4
Posted 08 August 2013 - 07:40 AM
The speed of the computer depends on the speed of the server (yes, even single player is a server internally).

And the minimum interval of a timer is one tick (1/20th of a second), but if you do
os.queueEvent("dummy") os.pullEvent("dummy")
it'll do it 20 times a tick on my computer
MudkipTheEpic #5
Posted 08 August 2013 - 10:16 AM
The speed of the computer depends on the speed of the server (yes, even single player is a server internally).

And the minimum interval of a timer is one tick (1/20th of a second), but if you do
os.queueEvent("dummy") os.pullEvent("dummy")
it'll do it 20 times a tick on my computer

This is just a guess, but wouldn't this be a little faster?

os.queueEvent"" coroutine.yield""

Also, try on a clean world with only 1 active computer. It is much faster then a world with lots of computers.
immibis #6
Posted 08 August 2013 - 06:21 PM
Computers don't have a clock speed, CC runs them as fast as it can except when they're waiting for an event (which should be most of the time if the program is well written)