mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-02-23 04:27:50 +01:00
DroidFish: Run the cuckoochess engine with reduced thread priority.
This commit is contained in:
parent
6cd29a0353
commit
7e133f2f15
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user