Set realtime priorities if available

This significantly reduces the latency with no real drawbacks from what
I've noticed. Wineserver is still run using the normal scheduling
policies because from my testing running that with realtime priority
that can actually increase latencies, although doing so will greatly
reduce the variance in processing time.
This commit is contained in:
Robbert van der Helm
2020-07-23 19:55:22 +02:00
parent 9d33b9989e
commit 6f5dae90a6
9 changed files with 83 additions and 4 deletions
+8
View File
@@ -17,6 +17,14 @@ Versioning](https://semver.org/spec/v2.0.0.html).
[readme](https://github.com/robbert-vdh/yabridge#editor-hosting-modes) for
more details.
### Changed
- Both parts of yabridge will now run with realtime priority if available. This
can significantly reduce overall latency and spikes. Wine itself will still
run with a normal scheduling policy by default, since running wineserver with
realtime priority can increase the audio processing latency although it does
greatly reduce the amount of latency spikes even further.
### Fixed
- Fixed rare plugin location detection issue related to the plugin and host