mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-13 01:22: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);
|
mainLoop(in, out);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
int pMin = Thread.MIN_PRIORITY;
|
||||||
|
int pNorm = Thread.NORM_PRIORITY;
|
||||||
|
int prio = pMin + (pNorm - pMin) / 2;
|
||||||
|
engineThread.setPriority(prio);
|
||||||
engineThread.start();
|
engineThread.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user