42 posts
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?
215 posts
Location
Netherlands
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
49 posts
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/>
11 posts
Location
I am in your room, disguised as an object :)
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
892 posts
Location
Where you'd least expect it.
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.
997 posts
Location
Wellington, New Zealand
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)