I have a application that I hard coded to use 4 threads/player.
However, (on a dedicated system) more threads would be more efficient depending on how many players are playing at the same time. (I would theoretically could go up to 30/player.)
Is there a way to measure the maximum number of threads I could use at startup of the calculation?
I guess by having a big calculation and add threads until they start interrupting each other, but I wouldn't know how to check this...