Render regions, disabled by default
This commit is contained in:
@@ -74,6 +74,8 @@ export interface BenchmarkReport {
|
||||
// "id version"
|
||||
mods: string[];
|
||||
resolution: string;
|
||||
// the f3 window's switch, see ClientLevel.use_render_regions
|
||||
render_regions?: boolean;
|
||||
level: { chunks: number; build_ms: number };
|
||||
first_mesh: MeshingResult;
|
||||
remesh: MeshingResult;
|
||||
@@ -120,7 +122,7 @@ export function format_report(report: BenchmarkReport): string {
|
||||
"",
|
||||
`${system.browser} on ${system.os}, ${system.gpu}`,
|
||||
`${system.cpu_threads} threads${memory}${refresh}, drawn at ${report.resolution}, ${system.workers} mesh workers` +
|
||||
(system.timestamps ? "" : ", no gpu timestamps"),
|
||||
(system.timestamps ? "" : ", no gpu timestamps") + (report.render_regions ? ", render regions" : ""),
|
||||
`${report.date}, mods: ${report.mods.join(", ") || "none"}`,
|
||||
"",
|
||||
"| scene | fps | 1% low | 0.1% low | uncapped fps | cpu ms | gpu ms | draw calls | quads |",
|
||||
|
||||
Reference in New Issue
Block a user