improved fps counter

This commit is contained in:
djaidjai committed 2025-01-11 15:40:50 +01:00
1 parent 884b53655b
commit 6fdfee571a
3 files changed
+14 -8

No files matched your search

+1 -5
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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.