diff --git a/src/App/private/main.cpp b/src/App/private/main.cpp index 76dc65f..a923268 100644 --- a/src/App/private/main.cpp +++ b/src/App/private/main.cpp @@ -5,6 +5,8 @@ #include +#include "Timing.hpp" + int runOffscreen() { try { VulkanOffscreen app; @@ -41,6 +43,8 @@ int runInteractive() { renderer.create(app.getRenderInfo()); app.setRenderPass(renderer.getRenderPass()); + tp::FpsCounter fpsCounter; + while (!glfwWindowShouldClose(app.getWindow())) { app.pollEvents(); @@ -50,6 +54,8 @@ int runInteractive() { renderer.updateUniformBuffer({drawData.extent2D.width, drawData.extent2D.height}); app.endDrawFrame(drawData); + + fpsCounter.update(); } app.waitDevice();