bestCorePoolSize

Get the best corePoolSize for the constructor of Threads. and it is equal to your cpu's logic core amount.

The logic and render calculation both are computationally intensive tasks, so for better multicore and multi-thread performance, the maximum number of threads should be consistent with the number of your CPU logical cores.

Return

the best corePoolSize