mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: use one-decimal FPS display to match pass/fail semantics
Addresses review feedback: https://github.com/Comfy-Org/ComfyUI_frontend/pull/10516#discussion_r2990297182
This commit is contained in:
@@ -235,11 +235,11 @@ function renderHeadlineSummary(
|
||||
const p5Fps = p95Frame !== null ? frameTimeToFps(p95Frame) : null
|
||||
|
||||
const parts: string[] = [`**${testName}**:`]
|
||||
if (avgFps !== null) parts.push(`${avgFps.toFixed(0)} avg FPS`)
|
||||
if (avgFps !== null) parts.push(`${avgFps.toFixed(1)} avg FPS`)
|
||||
if (p5Fps !== null) {
|
||||
const pass = p5Fps >= TARGET_P5_FPS
|
||||
parts.push(
|
||||
`${p5Fps.toFixed(0)} P5 FPS ${pass ? '✅' : '❌'} (target: ≥${TARGET_P5_FPS})`
|
||||
`${p5Fps.toFixed(1)} P5 FPS ${pass ? '✅' : '❌'} (target: ≥${TARGET_P5_FPS})`
|
||||
)
|
||||
}
|
||||
if (tbt !== null) parts.push(`${tbt.toFixed(0)}ms TBT`)
|
||||
|
||||
Reference in New Issue
Block a user