bump glutin sync channel size
This is a workaround; need to remove the sync restriction when queuing up work from the gui thread as I occasionally deadlock myself.
This commit is contained in:
1 parent
29c7610ead
commit
93020c7553
1 file changed
+1
-1
@@ -40,7 +40,7 @@ fn channel<T: Send>(proxy: EventsLoopProxy) -> (GuiSender<T>, Receiver<T>) {
|
||||
// Set an upper bound on the number of items in the queue, so that
|
||||
// we don't swamp the gui loop; this puts back pressure on the
|
||||
// producer side so that we have a chance for eg: processing CTRL-C
|
||||
let (tx, rx) = mpsc::sync_channel(12);
|
||||
let (tx, rx) = mpsc::sync_channel(64);
|
||||
(GuiSender { tx, proxy }, rx)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user