Skip to content

Commit

Permalink
Remove CPU core count check
Browse files Browse the repository at this point in the history
Decryption seems fast enough for all reasonable bitrates even on dual-core devices.
  • Loading branch information
cgutman committed Jan 28, 2024
1 parent 303303b commit 7465835
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Limelight/Stream/Connection.m
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,8 @@ -(id) initWithConfig:(StreamConfiguration*)config renderer:(VideoDecoderRenderer

// Since we require iOS 12 or above, we're guaranteed to be running
// on a 64-bit device with ARMv8 crypto instructions, so we don't
// need to check for that here. Instead, we'll just check for more
// than 2 cores, which eliminates the early dual-core CPUs (A7-A9).
if (NSProcessInfo.processInfo.processorCount > 2) {
_streamConfig.encryptionFlags = ENCFLG_ALL;
}
else {
_streamConfig.encryptionFlags = ENCFLG_AUDIO;
}
// need to check for that here.
_streamConfig.encryptionFlags = ENCFLG_ALL;

if ([Utils isActiveNetworkVPN]) {
// Force remote streaming mode when a VPN is connected
Expand Down

0 comments on commit 7465835

Please sign in to comment.