remove redundant os.sleep in mainloop
This commit is contained in:
3
main.lua
3
main.lua
@@ -832,9 +832,6 @@ function Main()
|
|||||||
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")
|
||||||
if keys.getName(key) == "q" then
|
if keys.getName(key) == "q" then
|
||||||
|
|||||||
Reference in New Issue
Block a user