Skip to content

Commit

Permalink
Run message loop more often (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
pstuecker authored Nov 26, 2024
1 parent 73d39e6 commit 3a25666
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @author Stuecker
*/
public class MessageLoop {
private static final int LOOP = 75;
private static final int LOOP = 5;

private boolean loopDisable;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3a25666

Please sign in to comment.