Log: include scene name and compositor source rect on pump start

Adds scene name and comp={w}x{h} to the 'FramePump started' line to
help correlate logs with backdrop geometry (for the 141ms/33ms puzzle).
This commit is contained in:
2026-10-05 13:33:38 -07:00
parent 25d5416a93
commit cea641d429
+5 -1
View File
@@ -202,7 +202,11 @@ public sealed class FramePump : IDisposable
// stats quantum fix made the wait VISIBLE; this removes its cause. // stats quantum fix made the wait VISIBLE; this removes its cause.
// OBS's video threads are dedicated for exactly this reason. // OBS's video threads are dedicated for exactly this reason.
_pumpTask = Task.Run(() => PumpAsync(options, _cts.Token)); _pumpTask = Task.Run(() => PumpAsync(options, _cts.Token));
_log?.Invoke($"FramePump started ({options.Width}×{options.Height} @ {options.Fps} fps)"); var scene = _sceneProvider();
var comp = _compositorOptions();
_log?.Invoke($"FramePump started ({options.Width}×{options.Height} @ {options.Fps} fps)" +
(scene != null ? $" scene='{scene.Name}'" : "") +
$" comp={comp.SourceRectWidth}x{comp.SourceRectHeight}");
} }
catch (Exception ex) catch (Exception ex)
{ {