Reduce CPU usage while window is unfocused and not hovered over
Only render if window is focused, hovered, subscript is running, or coroutine is active. Closes #18
This commit is contained in:
1 parent
0066a05e13
commit
ae6a24f82c
9 files changed
+116
-30
No files matched your search
@@ -74,6 +74,10 @@ impl SubscriptManager {
|
||||
|
||||
results
|
||||
}
|
||||
|
||||
pub fn has_running_subscripts(&self) -> bool {
|
||||
!self.scripts.is_empty()
|
||||
}
|
||||
}
|
||||
|
||||
enum SubscriptCall {
|
||||
|
||||
Reference in new issue
Block a user