diff options
| author | 2020-08-05 16:41:22 -0400 | |
|---|---|---|
| committer | 2020-08-16 12:02:22 -0400 | |
| commit | f49ffdd6488e74591ed66d911c13c3684762d425 (patch) | |
| tree | 6794e47e6914dd0e06fed3262e8bda1f14b64d8c /src | |
| parent | move thread 1/4 count computation into allocate workers method (diff) | |
| download | yuzu-f49ffdd6488e74591ed66d911c13c3684762d425.tar.gz yuzu-f49ffdd6488e74591ed66d911c13c3684762d425.tar.xz yuzu-f49ffdd6488e74591ed66d911c13c3684762d425.zip | |
Morph: Update worker allocation comment
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/async_shaders.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/async_shaders.cpp b/src/video_core/shader/async_shaders.cpp index 6a1b8999c..91d1b6bbd 100644 --- a/src/video_core/shader/async_shaders.cpp +++ b/src/video_core/shader/async_shaders.cpp | |||
| @@ -29,7 +29,7 @@ void AsyncShaders::AllocateWorkers() { | |||
| 29 | // Don't use more than MAX_THREADS | 29 | // Don't use more than MAX_THREADS |
| 30 | const auto num_workers = std::min(max_worker_count, MAX_THREADS); | 30 | const auto num_workers = std::min(max_worker_count, MAX_THREADS); |
| 31 | 31 | ||
| 32 | // If we're already have workers queued or don't want to queue workers, ignore | 32 | // If we already have workers queued, ignore |
| 33 | if (num_workers == worker_threads.size()) { | 33 | if (num_workers == worker_threads.size()) { |
| 34 | return; | 34 | return; |
| 35 | } | 35 | } |