Log framerate

This commit is contained in:
karl 2021-05-30 20:07:57 +02:00
parent 8162ca201e
commit 41154580f2

View File

@ -129,6 +129,9 @@ class FullDemo : public Gedeng::Application {
terrain_shader.setMat4("projection", camera.get_projection()); terrain_shader.setMat4("projection", camera.get_projection());
terrain_shader.setMat4("view", camera.get_view()); terrain_shader.setMat4("view", camera.get_view());
terrain_mesh.render_patches(terrain_shader); terrain_mesh.render_patches(terrain_shader);
// Log framerate
GG_CLIENT_INFO(std::string("Framerate: ") + std::to_string(1.0 / delta));
} }
private: private: