Browse Source

tiny perf counter change

opengl-renderer-broken
Martin Dørum 4 years ago
parent
commit
ab8b5fb9f1
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      libswan/src/PerfCounter.cc

+ 2
- 4
libswan/src/PerfCounter.cc View File

@@ -17,9 +17,7 @@ void PerfCounter::render() {

conf.values = { .ys = buf.data(), .count = 64 };
conf.scale = { 0, 1 / 60.0 };
conf.scale.min = 0;
conf.scale.max = 1 / 60.0;
conf.frame_size = { ImGui::GetWindowContentRegionWidth(), 20 },
conf.frame_size = { ImGui::GetWindowContentRegionWidth(), 30 },

total_time_.fill(buf);
ImGui::Text("Total Time");
@@ -46,7 +44,7 @@ void PerfCounter::render() {
ImGui::Plot("Game Tick", conf);

game_updates_per_frame_.fill(buf);
conf.scale = { 0, 5 };
conf.scale = { 0, 3 };
ImGui::Text("Game Updates Per Frame");
ImGui::Plot("Game Updates Per Frame", conf);
}

Loading…
Cancel
Save