Shortened size of cached events.
This commit is contained in:
parent
6644634d98
commit
c9924f66da
@ -89,8 +89,8 @@ class eventManager():
|
|||||||
return False
|
return False
|
||||||
if event == fenrirEventType.Ignore:
|
if event == fenrirEventType.Ignore:
|
||||||
return False
|
return False
|
||||||
if self.getEventQueueSize() > 40:
|
if self.getEventQueueSize() > 50:
|
||||||
if not event in [fenrirEventType.ScreenUpdate, fenrirEventType.HeartBeat]:
|
if not event in [fenrirEventType.ScreenUpdate, fenrirEventType.HeartBeat]:
|
||||||
self.cleanEventQueue()
|
self.cleanEventQueue()
|
||||||
self._eventQueue.put({"Type":event,"Data":data})
|
self._eventQueue.put({"Type":event,"Data":data})
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user