From 41154580f20e2c8cf1190f8c030dc8f903bcdfcc Mon Sep 17 00:00:00 2001 From: karl Date: Sun, 30 May 2021 20:07:57 +0200 Subject: [PATCH] Log framerate --- test/full-demo/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/full-demo/main.cpp b/test/full-demo/main.cpp index dc95ea5..15b2102 100644 --- a/test/full-demo/main.cpp +++ b/test/full-demo/main.cpp @@ -129,6 +129,9 @@ class FullDemo : public Gedeng::Application { terrain_shader.setMat4("projection", camera.get_projection()); terrain_shader.setMat4("view", camera.get_view()); terrain_mesh.render_patches(terrain_shader); + + // Log framerate + GG_CLIENT_INFO(std::string("Framerate: ") + std::to_string(1.0 / delta)); } private: