-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[job] job workers now become inactive depending on the aggression. by…
… default, the aggression is 0.0f, meaning only one worker is enabled. if the application is going to need more firepower, it should set the aggression via tz::job_system().set_aggression(a) where a is between 0.0 and 1.0. 0.0 means very little jobs flying around (low throughput, low cpu usage), and 1.0 means send everything (maximum throughput, 100% cpu utilisation). it is now upto the user to tune the aggression based on their load. in addition, the value returned by tz::job_system().worker_count() now may be smaller than the true hardware thread count, depending on aggression. with 1.0 aggression though, its all the threads.
- Loading branch information
Showing
3 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters