mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-10 20:45:38 +02:00
adjust max latency for capture to fix miscapture due to slow RDP recovery
This commit is contained in:
parent
1c3eee85b0
commit
e3a0ddfacd
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ namespace Ninjacrab.PersistentWindows.Common
|
|||
private const int MaxRestoreTimesRemote = 12;
|
||||
|
||||
private const int CaptureLatency = 3000; // milliseconds to wait for window position capture, should be bigger than RestoreLatency
|
||||
private const int MaxCaptureLatency = 30000; // max latency to capture OS moves, needed for slow RDP session
|
||||
private const int MaxUserMovePerSecond = 4; // maximum speed of window move/resize by human
|
||||
private const int MinOsMoveWindows = 5; // minimum number of moving windows to measure in order to recognize OS initiated move
|
||||
|
||||
|
@ -428,7 +429,7 @@ namespace Ninjacrab.PersistentWindows.Common
|
|||
osMove = false;
|
||||
if (!restoringWindowPos)
|
||||
{
|
||||
StartCaptureTimer(MaxRestoreLatency);
|
||||
StartCaptureTimer(MaxCaptureLatency);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue