mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Keep auto image quality above 20.
This commit is contained in:
parent
fc628a3cab
commit
9ac97bb06f
@ -349,7 +349,7 @@ namespace Remotely.Desktop.Core.Services
|
||||
if (PendingSentFrames.TryPeek(out var result) && DateTimeOffset.Now - result > TimeSpan.FromMilliseconds(200))
|
||||
{
|
||||
var latency = (DateTimeOffset.Now - result).TotalMilliseconds;
|
||||
ImageQuality = (int)(200 / latency * _defaultImageQuality);
|
||||
ImageQuality = Math.Max(20, (int)(200 / latency * _defaultImageQuality));
|
||||
}
|
||||
else if (ImageQuality != _defaultImageQuality)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user