OSDN Git Service

Slightly tweak algorithm to automatically set the number of instances: Instead of...
authorlordmulder <mulder2@gmx.de>
Wed, 16 Nov 2011 21:53:18 +0000 (22:53 +0100)
committerlordmulder <mulder2@gmx.de>
Wed, 16 Nov 2011 21:53:18 +0000 (22:53 +0100)
commita2cae5c288724124f78853ceb7ce732105543a90
tree7883211da05d88b0eadc6f189acc1c001f1cfd47
parent61e5ab9f6aec0f9b39b3a37f90f108fb8981b2b2
Slightly tweak algorithm to automatically set the number of instances: Instead of restricting the number of instances to 4, we now use '(cpu_cores / 2) + 2' instances for more than 4 CPU cores. For at most 4 CPU cores, we still use 'cpu_cores' instances. This way we can use more than 4 instances on CPU's with more than 4 cores, but the number of instances won't grow linearly with the number of CPU cores - should help a bit to avoid HDD thrashing.
src/Dialog_Processing.cpp
src/Global.cpp