Shortened size of cached events.

This commit is contained in:
Storm Dragon 2024-03-13 19:26:29 -04:00
parent 6644634d98
commit c9924f66da

View File

@ -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