improved fps counter

This commit is contained in:
2025-01-11 15:40:50 +01:00
parent 884b53655b
commit 6fdfee571a
3 changed files with 14 additions and 8 deletions

View File

@@ -96,12 +96,8 @@ void Window::tick() {
float diff = (float) std::chrono::duration_cast<std::chrono::milliseconds>(now - this->last_frame).count();
this->last_frame = now;
// TODO: remove debug line at some point
std::cout << 1000.0/diff << " fps\n";
// input
this->widget->tick();
this->widget->tick(1000.0/diff);
// tick render
glBindFramebuffer(GL_FRAMEBUFFER, 0);