mirror of
https://github.com/neon443/Scream.git
synced 2026-03-11 13:26:18 +00:00
update to 60fps and fix blur
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user