Closed rtgiskard closed 2 years ago
I think I already tried to do that, but as far as I remember there was no way to know whether the window is visible on screen. But I'll have a look at it again.
I see deadbeaf use gtk for the ui, if deadbeaf or the plugin can query or just record the related state on operations, this might be done.
Here I find some api that maybe related, hope it may do some help: Gtk.Window.iconify Gtk.Widget.is_visible Gtk.Widget.signals.window_state_event
Thanks a lot for your work!
find that with mprisv2 plugin, after close the window(it play background), the CPU usage drop down, which is well enough!
if possible, it would be greate to have an option to auto pause the sample while the window is invisible, as for most of the time, the music player is run in backgound
here on my laptop(i5-6300HQ CPU @2.30GHz), without the ddb_musical_spectrum and ddb_spectrogram, the CPU usage could be 2-3%, but with the two plugin on, it's 12-13%