Posted 02 June 2012 - 02:11 AM
I'm just wondering how much cpu performance a simple while loop or a running terminal in general will take,
and if it will affect the general MC performance if i have some cc terminals running something like this:
Because now i make every program so it will shut the terminal down completely, if that is an option considering its task ofc^^
Would be cool if i could leave them on without having performance issues in the future because of them, when i have more then 3 in my world :)/>/>
I have many mods, and don't realy know which ones are responsible for lagspikes etc.
That's why i asking instead of just testing it for myself, but after getting so many mods to finaly run alongside each other, i don't want to mess with that anymore :)/>/>
and if it will affect the general MC performance if i have some cc terminals running something like this:
timer = os.startTimer(2)
while true do
counter=counter+1
evt, p1, p2 = os.pullEvent()
if evt == "redstone" then
if rs.testBundledInput("left",1) == true then
mapi.writePos(sidem,"open",2,3)
o1()
elseif rs.testBundledInput("left",2) == true then
mapi.writePos(sidem,"close",2,3)
c1()
elseif rs.testBundledInput("left",0) == true then
mapi.writePos(sidem,"null",2,3)
else
mapi.writePos(sidem,"wtff",2,3)
end
elseif evt == "timer" then
if p1 == timer then
mapi.writePos(sidem,counter,2,2)
print("timer")
timer = os.startTimer(2)
end
end
end
Because now i make every program so it will shut the terminal down completely, if that is an option considering its task ofc^^
Would be cool if i could leave them on without having performance issues in the future because of them, when i have more then 3 in my world :)/>/>
I have many mods, and don't realy know which ones are responsible for lagspikes etc.
That's why i asking instead of just testing it for myself, but after getting so many mods to finaly run alongside each other, i don't want to mess with that anymore :)/>/>