JvisualVM shows this for CPU time:

Am I right in attributing the lua_yield() to CC?
Is there a best practice to lower the usage?(we have been going around and adding (longer)sleeps to certain programs like clocks)
Thank you for your time.
Posted 08 May 2015 - 06:51 PM

Posted 08 May 2015 - 08:39 PM
Posted 09 May 2015 - 07:42 AM
derphorse, on 08 May 2015 - 06:51 PM, said:
while true do
sleep(1)
if rs.getInput("right") then
print("Redstone on!")
end
end
while true do
os.pullEvent("redstone")
if rs.getInput("right") then
print("Redstone on!")
end
end
0 members, 1 guests, 0 anonymous users