From cd89668d0c4fabeafe5b65223e58d652b6542519 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Oct 2024 15:07:24 +0100 Subject: Reduce cpu usage when ui is not visible --- include/Overlay.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/Overlay.hpp') diff --git a/include/Overlay.hpp b/include/Overlay.hpp index c580a12..218dee7 100644 --- a/include/Overlay.hpp +++ b/include/Overlay.hpp @@ -39,7 +39,8 @@ namespace gsr { void handle_events(); void on_event(mgl::Event &event); - void draw(); + // Returns false if not visible + bool draw(); void show(); void hide(); -- cgit v1.2.3