image-source: Don't check for changes when hidden
If an image source isn't visible there is no point polling for changes during the time it's hidden as no one will see them. Should the image be on unreachable media such as an unavailable network share, this check would cause the graphics thread to periodically stall trying to detect changes of a non-visible image source. If the image is modified while it's hidden, the updated file will now be loaded as soon as the source is made visible - the update timer intentionally ticks up while hidden. Partially fixes some of the behavior described in https://github.com/obsproject/obs-studio/issues/3007, a full fix likely requires significant changes to support OS-specific file change notification APIs.
Showing
想要评论请 注册 或 登录