Closed FreezyLemon closed 7 months ago
Sounds good, could you please open an issue so we can investigate if we can improve rayon later?
@lu-zero Can you explain what you mean? The rayon feature in ssimulacra2 isn't bad or anything, but we have a better threading mechanism in this crate
Ideally we can make so the rayon in the crate library cooperates better with downstream crates from what you found out :)
I see. I opened rust-av/ssimulacra2#18
Closes #21.
We have our own threading mechanism, adding rayon on top of that is unnecessary and less efficient[^1].
This also makes the CPU usage a lot more predictable. Using
-f 8
on a machine with 16 logical cores will show close to 50% CPU usage. With rayon, this was always more than expected (~70% in this example).[^1]: On my two machines, normalizing for CPU usage will always result in higher FPS without rayon.