From 4d451d230eeccf42a2ababe26d9f70c4ecdf63b7 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Thu, 1 Jan 2026 22:54:06 +0000 Subject: [PATCH] update to 60fps and fix blur --- Config.xcconfig | 2 +- Scream/ScreenRecorder.swift | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Config.xcconfig b/Config.xcconfig index 4fa6f77..33c8fa8 100644 --- a/Config.xcconfig +++ b/Config.xcconfig @@ -7,7 +7,7 @@ VERSION = 0.1 -BUILD = 1 +BUILD = 2 // Configuration settings file format documentation can be found at: // https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project diff --git a/Scream/ScreenRecorder.swift b/Scream/ScreenRecorder.swift index 782d8b8..3cc41d4 100644 --- a/Scream/ScreenRecorder.swift +++ b/Scream/ScreenRecorder.swift @@ -26,6 +26,7 @@ class ScreenRecorder: NSObject { //// } // filter = SCContentFilter(display: availableContent.displays.first!, excludingApplications: excludedApps, exceptingWindows: []) // } + var scaleFactor: Int { Int(NSScreen.main?.backingScaleFactor ?? 2) } var streamConfig: SCStreamConfiguration { var streamConfig = SCStreamConfiguration() @@ -34,10 +35,10 @@ class ScreenRecorder: NSObject { // streamConfig.excludesCurrentProcessAudio = false // streamConfig.captureMicrophone = true - streamConfig.width = Int(NSScreen.main?.frame.width ?? 100) - streamConfig.height = Int(NSScreen.main?.frame.height ?? 100) + streamConfig.width = Int(NSScreen.main?.frame.width ?? 100) * scaleFactor + streamConfig.height = Int(NSScreen.main?.frame.height ?? 100) * scaleFactor - streamConfig.minimumFrameInterval = CMTime(value: 1, timescale: 20) + streamConfig.minimumFrameInterval = CMTime(value: 1, timescale: 60) streamConfig.queueDepth = 5 return streamConfig }