mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +02:00
Bump the event loop handling rate up to 60 Hz
This will also cause plugins to update their editors at 60 FPS. This was kept at a lower value for performance reasons, but since the message loop now no longer blocks event handling we can safely increase this. This will double the amount of resources spent on drawing, but since audio processing in a real world scenario almost never utilizes all cores anyways this should not be an issue.
This commit is contained in:
@@ -32,11 +32,12 @@
|
||||
#include <function2/function2.hpp>
|
||||
|
||||
/**
|
||||
* The delay between calls to the event loop at an even more than cinematic 30
|
||||
* fps.
|
||||
* The delay between calls to the event loop so we can keep a nice 60 fps. We
|
||||
* could bump this up to the monitor's refresh rate, but I'm afraid that it will
|
||||
* start to noticeably take up resources in plugin groups.
|
||||
*/
|
||||
constexpr std::chrono::duration event_loop_interval =
|
||||
std::chrono::milliseconds(1000) / 30;
|
||||
std::chrono::milliseconds(1000) / 60;
|
||||
|
||||
/**
|
||||
* A wrapper around `boost::asio::io_context()` to serve as the application's
|
||||
|
||||
Reference in New Issue
Block a user