update to 60fps and fix blur

This commit is contained in:
neon443
2026-01-01 22:54:06 +00:00
parent 39dfb9ba05
commit 4d451d230e
2 changed files with 5 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
VERSION = 0.1 VERSION = 0.1
BUILD = 1 BUILD = 2
// Configuration settings file format documentation can be found at: // Configuration settings file format documentation can be found at:
// https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project // https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project

View File

@@ -26,6 +26,7 @@ class ScreenRecorder: NSObject {
//// } //// }
// filter = SCContentFilter(display: availableContent.displays.first!, excludingApplications: excludedApps, exceptingWindows: []) // filter = SCContentFilter(display: availableContent.displays.first!, excludingApplications: excludedApps, exceptingWindows: [])
// } // }
var scaleFactor: Int { Int(NSScreen.main?.backingScaleFactor ?? 2) }
var streamConfig: SCStreamConfiguration { var streamConfig: SCStreamConfiguration {
var streamConfig = SCStreamConfiguration() var streamConfig = SCStreamConfiguration()
@@ -34,10 +35,10 @@ class ScreenRecorder: NSObject {
// streamConfig.excludesCurrentProcessAudio = false // streamConfig.excludesCurrentProcessAudio = false
// streamConfig.captureMicrophone = true // streamConfig.captureMicrophone = true
streamConfig.width = Int(NSScreen.main?.frame.width ?? 100) streamConfig.width = Int(NSScreen.main?.frame.width ?? 100) * scaleFactor
streamConfig.height = Int(NSScreen.main?.frame.height ?? 100) 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 streamConfig.queueDepth = 5
return streamConfig return streamConfig
} }