仍然闪烁

This commit is contained in:
2026-08-02 18:58:35 +08:00
parent 30882726be
commit e0e495f1ba
2 changed files with 40 additions and 12 deletions
+2 -4
View File
@@ -17,7 +17,7 @@ static renderive::Range frequent_range = {-12000, 12000};
static bool radio_mock_perf_mode() {
bool ok = false;
int value = qEnvironmentVariableIntValue("RADIO_MOCK_PERF_MODE", &ok);
return ok ? value != 0 : true;
return ok ? value != 0 : false;
}
static bool radio_show_performance_overlay() {
bool ok = false;
@@ -25,9 +25,7 @@ static bool radio_show_performance_overlay() {
return ok ? value != 0 : false;
}
static void configure_radio_plot_perf(renderive::Latency_Eager_Plot* plot) {
if (!radio_mock_perf_mode())
return;
plot->set_max_render_fps(1000);
plot->set_max_render_fps(radio_mock_perf_mode() ? 1000 : 60);
}
static renderive::Performance_Overlay_Options radio_performance_options() {
renderive::Performance_Overlay_Options options;