Better systrace logging and small improvements to JobSystem

Tweak how we signal/wakeup threads so we get better parallelism 
on Android.
This commit is contained in:
Mathias Agopian
2021-06-01 23:09:10 -07:00
committed by Mathias Agopian
parent 9a24c4001f
commit 4d73583f86
5 changed files with 14 additions and 1 deletions

View File

@@ -470,6 +470,7 @@ struct ParallelForJobData {
}
void parallelWithJobs(JobSystem& js, JobSystem::Job* parent) noexcept {
assert(parent);
// We first split about the number of threads we have, and only then we split the rest
// in a single thread (but execute the final cut in new jobs, see parallel() below),