aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-03-29 22:30:19 +0200
committerladevieq <ladevie.quentin@gmail.com>2021-03-29 22:30:19 +0200
commit0d84a8e2c8b683803072f76fde8824ce194c80bc (patch)
treecfb319e68ff75ff2c12bbc19d39d3f4eab6d1682 /src/main.cpp
parentbe5f1133bff5d4c551e2702211acb155d8819fd0 (diff)
FPS counter
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 553191a..968027a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -174,6 +174,7 @@ int main() {
ImGui::SetNextWindowSize({ 0.f, 0.f });
ImGui::Begin("Debug", NULL, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoTitleBar);
+ ImGui::Text("frame per second %u\n", static_cast<uint32_t>(1000.f / delta_time));
ImGui::Text("frame time %f ms\n", delta_time);
if (ImGui::SliderInt("samples per pixel", (int32_t*)&((input_data*) renderer.compute_shader_buffer.alloc_info.pMappedData)->samples_per_pixel, 1, 1000)) {