obs-spotify-mac icon indicating copy to clipboard operation
obs-spotify-mac copied to clipboard

Video Capture Device lags because of too often rerenders of text/artwork

Open MarshalX opened this issue 2 years ago • 2 comments

Hi! The built-in camera of Mac lags with interval 1 (default value). Probably because it tries too often to get new artwork and rerender it. Interval 10 is okay.

Possible fixes:

  1. Add cashing for the tracks. Do not rerender on the same track
  2. Add a note about lags with a small interval

Thank you for the script!

MarshalX avatar Oct 03 '23 08:10 MarshalX

I got this problem too. When I use this plugin, I got a severe rendering lag. Here is my log. Before: Snapshot 2024-01-14 at 11 20 32 After:(With severe rendering lag) Snapshot 2024-01-14 at 11 21 12

torytang025 avatar Jan 14 '24 03:01 torytang025

Sorry for the delay, I just did some investigation, the lag isn't caused by the re-render, but you are right about the caching. The lag was caused by the communications between the script and Spotify rather than the re-renders. The script lookup for the current track info every [interval] seconds, somehow Spotify is slow to return the result. So far I have no idea how to fix this...

RayPS avatar Jan 16 '24 12:01 RayPS