Set all queue maxsizes to 2

Seems to fix the freezing issue????
This commit is contained in:
Rames The Generic committed 2024-01-05 15:39:50 -05:00
1 parent 6fd9cbc0d3
commit 2002c70e01
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ class AlgoSettingsWidget:
self.cancellation_event = Event() # Set the event until start is called, otherwise we can block if shutdown is called.
self.cancellation_event.set()
self.image_queue = Queue(maxsize=1)
self.image_queue = Queue(maxsize=2)
def started(self):
+1 -1
View File
@@ -95,7 +95,7 @@ def main():
# Check to see if we have an ROI. If not, bring up ROI finder GUI.
# Spawn worker threads
osc_queue: queue.Queue[tuple[bool, int, int]] = queue.Queue(maxsize=5)
osc_queue: queue.Queue[tuple[bool, int, int]] = queue.Queue(maxsize=2)
osc = VRChatOSC(cancellation_event, osc_queue, config)
osc_thread = threading.Thread(target=osc.run)
# start worker threads
+4 -4
View File
@@ -51,10 +51,10 @@ class CameraWidget:
# Set the event until start is called, otherwise we can block if shutdown is called.
self.cancellation_event.set()
self.capture_event = Event()
self.capture_queue = Queue(maxsize=1)
self.roi_queue = Queue(maxsize=1)
self.capture_queue = Queue(maxsize=2)
self.roi_queue = Queue(maxsize=2)
self.image_queue = Queue(maxsize=1)
self.image_queue = Queue(maxsize=2)
self.ransac = BabbleProcessor(
self.config,
@@ -67,7 +67,7 @@ class CameraWidget:
self.cam_id,
)
self.camera_status_queue = Queue(maxsize=1)
self.camera_status_queue = Queue(maxsize=2)
self.camera = Camera(
self.config,
0,
+1 -1
View File
@@ -155,7 +155,7 @@ class SettingsWidget:
self.cancellation_event = Event() # Set the event until start is called, otherwise we can block if shutdown is called.
self.cancellation_event.set()
self.image_queue = Queue(maxsize=1)
self.image_queue = Queue(maxsize=2)
def started(self):