yuanyuanxiang
91d4c0a523
Fix: eliminate extra screen restarts on connection init
...
Two changes to reduce unnecessary CScreenSpy restarts when connecting:
1. Client (ScreenManager.cpp): Initialize CScreenSpy with bitrate from
the locally-saved quality profile, so CMD_QUALITY_LEVEL arriving from
the server (same bitrate as default) hits SetBitRate(3000)==3000 and
skips the restart instead of comparing against the hard-coded 0.
Also fixes QualityLevel init to use the already-computed `quality`
variable (which honours the QUALITY_DISABLED override when algo!=NUL)
rather than re-reading the cfg key a second time.
2. Server (ScreenSpyDlg.cpp): Only send CMD_SCREEN_SIZE strategy=2 when
the session is in QUALITY_ADAPTIVE mode and a cached maxWidth exists.
Fixed quality levels already carry resolution via CMD_QUALITY_PROFILES,
so unconditionally sending CMD_SCREEN_SIZE caused a second restart when
the screen spy was still rebuilding from the first one.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-15 22:14:06 +02:00
..
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-06-06 13:02:29 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-30 00:12:38 +02:00
2026-05-30 00:12:38 +02:00
2026-06-15 19:14:49 +02:00
2026-05-30 00:12:38 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-30 00:12:38 +02:00
2026-05-30 00:12:38 +02:00
2026-04-19 22:55:21 +02:00
2026-06-06 14:54:42 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-05-09 23:13:24 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-30 00:12:38 +02:00
2026-05-30 00:12:38 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-05-30 00:12:38 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-14 07:34:30 +02:00
2026-05-09 00:43:55 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-09 10:01:50 +02:00
2026-05-06 19:29:02 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-05-06 19:29:02 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-06 14:54:42 +02:00
2026-06-06 14:54:42 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-11 20:22:07 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-15 19:15:31 +02:00
2026-06-14 00:24:46 +02:00
2026-06-15 22:14:06 +02:00
2026-06-15 19:15:31 +02:00
2026-05-07 18:17:28 +02:00
2026-05-07 18:17:28 +02:00
2026-06-15 21:29:59 +02:00
2026-06-15 19:15:31 +02:00
2026-06-14 09:39:07 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-05-08 12:39:59 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-06-10 22:40:03 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-14 09:39:07 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-30 00:12:38 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-06-15 14:11:42 +02:00
2026-05-30 00:12:38 +02:00