跳轉到

D-20260814-14|顯示算圖與瀏覽器維護能力

背景與驅動力

設定 canon 已列解析度、反鋸齒、已下載主題與儲存空間,但 current AppSettings、renderer 與 maintenance provider 沒有對應能力。解析度若固定成少數檔位也會違反玩家可自行微調的裁決。

考慮過的選項

  • 固定四檔解析度:資料模型過度限制玩家,只保留三個快捷值,棄。
  • 以提高解析度代替反鋸齒:兩者成本與視覺效果不同,棄。
  • 設定頁直接使用 Cache Storage/StorageManager:破壞 provider 邊界與測試性,棄。
  • current schema 加入獨立 scale/antialias,renderer 與 maintenance provider 正式接線(採納)。

決定

  • renderScalePercent 是 50–100 的必填整數,step 1、default 100;50/75/100 只作快捷值。 它只縮放 3D drawing buffer,並受總像素、renderbuffer 與 texture dimension 上限約束。
  • antialias: on|off 與 render scale 正交;切換只替換 renderer presentation 資源。兩項都不進 物理、共識、SavedState、replay hash 或輸入語意。
  • display current shape 缺任一新欄即回本版 default;pre-launch 不加入舊欄或 migration。
  • AppMaintenance 列舉 Cache Storage 中可辨識的正式主題 request,default 不可逐項清除;另以 navigator.storage.estimate() 顯示 usage/quota。瀏覽器不支援或拒絕時以 null 明確降級。

後果與影響

玩家能在不犧牲 UI 清晰度與操作尺寸下微調 GPU 成本,反鋸齒不再與解析度混為一談;維護頁可 如實顯示並有界清除主題快取,也能在不支援的瀏覽器中維持可理解的空狀態。