Procházet zdrojové kódy

fix: HUD 数值每帧刷新(跳关概率不再滞后)

LiuYuYang před 1 týdnem
rodič
revize
914abf19ed
2 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      js/ui.js
  2. binární
      tests/shots/desktop-11-env-and-progress.png

+ 1 - 1
js/ui.js

@@ -174,7 +174,7 @@ export class App {
     const lf = this.s.layer;
     this.html('#hud-layer', `${fmt(Math.floor(lf), { int: true })}<small>层</small>`);
     this.setText('#hud-sub', `距下一层 ${fmtPct(Math.min(0.99, lf - Math.floor(lf)), 0)} · 本轮第 ${fmt(Math.floor(lf) - st.start + 1, { int: true })} 层`);
-    this.html('#hud-meta', `${fmt(st.prod)} 本源/秒 · 约 ${st.minutesPerLayer < 0.01 ? '<0.01' : st.minutesPerLayer.toFixed(2)} 分/层(含跳关) · 跳关 ${fmtPct(st.skipP, 0)}`);
+    this.setText('#hud-meta', `${fmt(st.prod)} 本源/秒 · 约 ${st.minutesPerLayer < 0.01 ? '<0.01' : st.minutesPerLayer.toFixed(2)} 分/层(含跳关) · 跳关 ${fmtPct(st.skipP, 0)}`);
   }
 
   refreshMainline(st) {

binární
tests/shots/desktop-11-env-and-progress.png