judgeFrames
此内容尚不支持你的语言。
judgeFrames(
avg,budgetMs):FrameVerdict
Defined in: sdk/src/render/quality.ts:366
Whether resolution should go down, may come back up, or stay, from smoothed readings (-1 = not known) and the frame budget. Pure.
A GPU reading over the budget is pressure on its own word. A small one is not headroom on its own word: a timer can cover less than the frame (a tile renderer has not drawn when the pass is stamped), so what a low reading may do is decided with the frame itself. A frame that came late although its own run fitted the budget waited on the GPU or the display, and resolution is the lever for that; one whose run did not fit is the CPU’s, and resolution would buy nothing.
Parameters
Section titled “Parameters”Readonly<Required<QualitySample>>
budgetMs
Section titled “budgetMs”number