obs-websocket icon indicating copy to clipboard operation
obs-websocket copied to clipboard

Feature Request: Improve synchronisation with garbage collector

Open winston-yallow opened this issue 1 year ago • 0 comments

Feature Request Type

either a new RPC event, or an improvement to existing RPC requests

Requested Feature

Currently after removing something there is a delay until the name can be reused for something new. This is due to the garbage collector in OBS. The API could delay the response of "Remove" requests until the subject is actually garbage collected. Alternatively, the API could have an event that is emitted whenever something is garbage collected. Either way, I propose to have a way to have a synchronization point in the API for knowing when something is actually removed.

Requested Feature Usage Scenario

I have a synchronization between my application and OBS. If it gets out of sync, I recreate the full scenes in OBS. So they are deleted and then recreated. The usage here would be knowing when I can start the recreation after the removal. Currently I have a loop with an incremental back off to just try creating them until it works.

winston-yallow avatar Apr 12 '24 20:04 winston-yallow