better cleaning up

This commit is contained in:
KingKDot
2026-08-01 00:04:41 -05:00
parent 6b83e65a6c
commit b68a306708
12 changed files with 266 additions and 27 deletions
@@ -30,6 +30,7 @@ func GetPersistedDisplay() int {
func DesktopStart(ctx context.Context, env *rt.Env) error {
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
defer capture.CleanupDesktopStream()
fps := activeDesktopTargetFPS()
interval := time.Second / time.Duration(fps)
capture.SetDesktopH264TargetFPS(fps)