pool: process all events as soon as possible
before we were only processing one event per frame. This ensured that not too much time is spent processing events in a single frame. Unfortunately since we don't have persistent frame rendering, this is not reliable. We can look into limiting the number of events processed per frame if message processing gets heavy.
This commit is contained in:
1 parent
09cd8ff379
commit
17ec0c0a99
1 file changed
+1
-1
+1
-1
@@ -119,7 +119,7 @@ fn try_process_event(damus: &mut Damus, ctx: &egui::Context) {
|
||||
damus.pool.keepalive_ping();
|
||||
|
||||
// pool stuff
|
||||
if let Some(ev) = damus.pool.try_recv() {
|
||||
while let Some(ev) = damus.pool.try_recv() {
|
||||
let relay = ev.relay.to_owned();
|
||||
|
||||
match ev.event {
|
||||
|
||||
Reference in new issue
Block a user