Improve screencast performance: lower defaults, fps cap, drop mousemove flood

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-27 11:09:16 +08:00
parent b9ee546bc1
commit a409f35e6c
7 changed files with 116 additions and 41 deletions
+7 -3
View File
@@ -4,6 +4,10 @@ APP_PORT=32450
# 应用配置
MAX_SESSIONS=1
SESSION_IDLE_TIMEOUT=1800
VIEWPORT_WIDTH=1280
VIEWPORT_HEIGHT=720
SCREENCAST_QUALITY=80
# 画面性能(卡顿时可继续调低)
VIEWPORT_WIDTH=1024
VIEWPORT_HEIGHT=576
SCREENCAST_QUALITY=55
SCREENCAST_MAX_FPS=15
SCREENCAST_EVERY_NTH_FRAME=2