DroidFish: Run the cuckoochess engine with reduced thread priority.

This commit is contained in:
Peter Osterlund 2011-12-31 11:27:06 +00:00
parent 6cd29a0353
commit 7e133f2f15

View File

@ -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();
}