impr: Only re-render frame once during window resize or move operations

This commit is contained in:
WerWolv
2024-06-28 21:27:35 +02:00
parent a6e5040e8f
commit 90ac96298a
5 changed files with 20 additions and 12 deletions

View File

@@ -135,6 +135,11 @@ namespace hex {
}
});
glfwSetWindowRefreshCallback(m_window, [](GLFWwindow *window) {
auto win = static_cast<Window *>(glfwGetWindowUserPointer(window));
win->fullFrame();
});
if (themeFollowSystem)
EventOSThemeChanged::post();
}