Skip to content

Commit

Permalink
Give repeat thread max prio
Browse files Browse the repository at this point in the history
  • Loading branch information
Feodor0090 committed Sep 4, 2023
1 parent 706a526 commit 83947c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mahomaps/screens/MapCanvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ private final void tryStartRepeatThread() {
synchronized (repeatAction) {
if (keysState != 0 && repeatThread == null) {
Thread t = new Thread(repeatAction, "Key repeat");
t.setPriority(Thread.MAX_PRIORITY);
repeatCount = 0;
t.start();
repeatThread = t;
Expand Down

0 comments on commit 83947c2

Please sign in to comment.