improve performance
This commit is contained in:
parent
620321b5da
commit
e3bdc1a564
@ -85,6 +85,8 @@ class fenrir():
|
|||||||
self.wasCommand = command != ''
|
self.wasCommand = command != ''
|
||||||
|
|
||||||
def handleCommands(self):
|
def handleCommands(self):
|
||||||
|
if time.time() - self.environment['commandInfo']['lastCommandExecutionTime'] < 0.2:
|
||||||
|
return
|
||||||
if not self.environment['runtime']['commandManager'].isCommandQueued():
|
if not self.environment['runtime']['commandManager'].isCommandQueued():
|
||||||
return
|
return
|
||||||
self.environment['runtime']['commandManager'].executeCommand( self.environment['commandInfo']['currCommand'], 'commands')
|
self.environment['runtime']['commandManager'].executeCommand( self.environment['commandInfo']['currCommand'], 'commands')
|
||||||
|
Loading…
Reference in New Issue
Block a user