Fix GPU time display in lobby

This commit is contained in:
Patrick Nicolas
2024-03-30 13:37:08 +01:00
parent 1aa49bb44f
commit cf054dda64
6 changed files with 39 additions and 16 deletions
+1 -1
View File
@@ -419,7 +419,7 @@ void scenes::lobby::gui_settings()
cpu_time[offset] = application::get_cpu_time().count() * 1.0e-6;
gpu_time[offset] = application::get_gpu_time().count() * 1.0e-6;
gpu_time[offset] = renderer->get_gpu_time() * 1'000;
offset = (offset + 1) % cpu_time.size();
ImPlot::PushStyleColor(ImPlotCol_PlotBg, IM_COL32(32, 32, 32, 64));