update to 60fps and fix blur

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

No files matched your search

+1 -1
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
+4 -3
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
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.