Efficient Implementation #5
Unanswered
christian-heise
asked this question in
Q&A
Replies: 1 comment
-
|
The number of threads is limited by the CPU cores on the system the engine is running on. It's up to you how many threads to use depending on your needs. More threads achieves higher search depth faster but at the cost of more processing power, battery life, etc. Another option, especially on a device like a phone, is to limit the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I implemented the chesskit-engine into my in-production app and it works great. However the workload for the iPhone gets really high and it therefor gets hot.
Is there maybe a way to implement the engine more efficiently? My implementation is the following:
The
self.engine.send(command: .stop)gets called before the function is called. The function is called every time the user makes a move.Or maybe it's possible to throttle the performance of the engine? Limit the threads or something.
Edit: I actually found out how to limit the threads. However, are there recommendations on how many to use?
Thanks for the great package!
Beta Was this translation helpful? Give feedback.
All reactions