diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-10-27 15:07:24 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-10-27 15:07:24 +0100 |
commit | cd89668d0c4fabeafe5b65223e58d652b6542519 (patch) | |
tree | 8a2c2b4bce44620db51e40218f90960af09ecd6e /include/Overlay.hpp | |
parent | 3206458c8da8d950298558df54e90907a4cc539b (diff) |
Reduce cpu usage when ui is not visible
Diffstat (limited to 'include/Overlay.hpp')
-rw-r--r-- | include/Overlay.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |