mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
Allow changing the event loop tick rate
This also changes the refresh rate for most plugins. You can now lower this setting if your computer is struggling to keep up with rendering a certain heavy plugin.
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
// Generated inside of the build directory
|
||||
#include <src/common/config/config.h>
|
||||
#include <src/common/config/version.h>
|
||||
@@ -163,6 +165,12 @@ class PluginBridge {
|
||||
if (config.editor_xembed) {
|
||||
other_options.push_back("editor: XEmbed");
|
||||
}
|
||||
if (config.frame_rate) {
|
||||
std::ostringstream option;
|
||||
option << "frame rate: " << std::setprecision(2)
|
||||
<< *config.frame_rate << " fps";
|
||||
other_options.push_back(option.str());
|
||||
}
|
||||
if (!other_options.empty()) {
|
||||
init_msg << join_quoted_strings(other_options) << std::endl;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user