From 3a2566647e7864d20aec193f65ef739be370a4c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20St=C3=BCcker?= <131346899+pstuecker@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:47:23 +0100 Subject: [PATCH] Run message loop more often (#147) --- .../src/org/eclipse/set/browser/cef/MessageLoop.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/org.eclipse.set.browser/src/org/eclipse/set/browser/cef/MessageLoop.java b/java/org.eclipse.set.browser/src/org/eclipse/set/browser/cef/MessageLoop.java index 200ade5..b5dd0e2 100644 --- a/java/org.eclipse.set.browser/src/org/eclipse/set/browser/cef/MessageLoop.java +++ b/java/org.eclipse.set.browser/src/org/eclipse/set/browser/cef/MessageLoop.java @@ -22,7 +22,7 @@ * @author Stuecker */ public class MessageLoop { - private static final int LOOP = 75; + private static final int LOOP = 5; private boolean loopDisable; @@ -119,7 +119,7 @@ public void start() { loopWork = () -> { if (!loopShutdown && !Display.getDefault().isDisposed()) { loop_work(); - Display.getDefault().timerExec(LOOP * 2, loopWork); + Display.getDefault().timerExec(LOOP, loopWork); } }; Display.getDefault().timerExec(LOOP, loopWork);