Class MipsUploadAdmission
Caps mip-chain tile uploads per frame at the slower flat-path rate (FlatSubmitMsPerTile) because mips-on GPU-decode submission is cheaper on the stopwatch and would otherwise admit more tiles. The pipeline uses this; most apps never call it.
public static class MipsUploadAdmission
- Inheritance
-
objectMipsUploadAdmission
Fields
FlatSubmitMsPerTile
Flat-path (no mips) GPU-decode submission cost in milliseconds per 512 px tile. The mips-on cap is derived from this number.
public const double FlatSubmitMsPerTile = 0.0638
Field Value
Methods
MaxUploadsPerFrame(double)
Largest number of mips-on uploads one frame may admit at
uploadBudgetMs.
public static int MaxUploadsPerFrame(double uploadBudgetMs)
Parameters
uploadBudgetMsdoubleMain-thread upload budget in milliseconds.
Returns
- int
Floor of budget divided by FlatSubmitMsPerTile, at least 1 for any positive budget, and 0 for a non-positive budget.