diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-03-29 22:30:19 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-03-29 22:30:19 +0200 |
| commit | 0d84a8e2c8b683803072f76fde8824ce194c80bc (patch) | |
| tree | cfb319e68ff75ff2c12bbc19d39d3f4eab6d1682 /src | |
| parent | be5f1133bff5d4c551e2702211acb155d8819fd0 (diff) | |
FPS counter
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 1 |
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)) { |
