remove redundant os.sleep in mainloop
This commit is contained in:
3
main.lua
3
main.lua
@@ -831,9 +831,6 @@ function Main()
|
|||||||
PollSensors()
|
PollSensors()
|
||||||
UpdateGlobalThrust()
|
UpdateGlobalThrust()
|
||||||
UpdateStabilization()
|
UpdateStabilization()
|
||||||
|
|
||||||
-- Add a small delay to avoid overloading the system
|
|
||||||
os.sleep(0.1)
|
|
||||||
|
|
||||||
local function getTerminateEvent()
|
local function getTerminateEvent()
|
||||||
local event, key, is_held = os.pullEventRaw("key")
|
local event, key, is_held = os.pullEventRaw("key")
|
||||||
|
|||||||
Reference in New Issue
Block a user