mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-12 09:02:41 +01:00
DroidFish: Run the cuckoochess engine with reduced thread priority.
This commit is contained in:
@@ -80,6 +80,10 @@ public class CuckooChessEngine extends UCIEngineBase {
|
||||
mainLoop(in, out);
|
||||
}
|
||||
});
|
||||
int pMin = Thread.MIN_PRIORITY;
|
||||
int pNorm = Thread.NORM_PRIORITY;
|
||||
int prio = pMin + (pNorm - pMin) / 2;
|
||||
engineThread.setPriority(prio);
|
||||
engineThread.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user