Feature: make remote desktop tuning per client
The tuning switches lived in the master's Advanced menu and were saved globally, so two hosts could not use different settings. The client already sends ScreenSettings when a remote desktop starts, so the state belongs there: the four items now sit in the remote desktop window's system menu, directly below Screen quality, and are saved per client. ScreenSettings had a 40-byte Reserved area at offset 56; four bytes became TuningFlags, keeping the struct at 100 bytes with Capabilities at 96. A new Capabilities bit marks a value written by a versioned master; old clients, and new clients never configured, report 0 and are not trusted. CMD_SCREEN_TUNING now ends with a version byte. A five-byte command comes from an older master that does not know the server-only adaptive bit: the client applies those three bits to the session but does not save them. A fresh client starts at 0, so an old master still gets pre-feature behaviour; the new master's 0xE default is persisted on its first session. The per-client master copy stays as the old-client fallback, and the old global [settings] Tuning* keys are honoured when neither exists, so an explicit opt-out survives the migration. Verified on the Debug server with the in-process test client: a fresh client stored 0xE on first use; toggling VBV wrote 0xF to both sides; after deleting the master copy and reopening, the menu restored VBV from the client report. Co-Authored-By: deepseek-flash
This commit is contained in:
1 parent
f96e4a7320
commit
a190c21217
12 files changed
+216
-156
No files matched your search
@@ -1123,12 +1123,6 @@
|
||||
#define ID_PROTO_SWITCH_WSS 33100
|
||||
// 高级菜单开关:把服务端 TLS 证书内嵌进下发给客户端的 ServerDll
|
||||
#define ID_TOOL_EMBED_TLS_ANCHOR 33101
|
||||
// 高级 → 远程桌面调优:逐项勾选的开关,三项默认全开,取消勾选即回到旧行为
|
||||
#define ID_TOOL_TUNING_X264_VBV 33102
|
||||
#define ID_TOOL_TUNING_GDI_SLEEP 33103
|
||||
#define ID_TOOL_TUNING_PACE_FPS_FLOOR 33104
|
||||
// 高级 → 远程桌面调优:自适应质量加吞吐判据(纯服务端,不下发客户端)
|
||||
#define ID_TOOL_TUNING_ADAPTIVE_LOAD 33105
|
||||
// 高级 → 运行测试程序:把内存里的 ServerDll 在主控进程内加载,本机上线一台测试主机
|
||||
#define ID_TOOL_RUN_TEST 33106
|
||||
#define ID_EXIT_FULLSCREEN 40001
|
||||
|
||||
Reference in new issue
Block a user