仍然闪烁
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user