Revert "viz: pick the largest rect for proxy fillColor (#11558)"

This reverts commit 76079bc7f2.
This commit is contained in:
George Hotz
2025-08-07 08:08:48 -07:00
parent 9764c6cdee
commit 3bf0db80ef

View File

@@ -203,9 +203,8 @@ async function renderProfiler() {
for (let jlod = lodIdx - 1; jlod >= 0; jlod--) {
const ix = Math.floor((e.st-st) / timelineLODThresholds[jlod + 1]);
const iy = offsetY+levelHeight*e.depth;
const proxy = ((((tempProxiesBuilder[i] ??= {})[jlod]) ??= {})[ix] ??= {})[iy] ??= { x: e.st-st, y: iy, h: levelHeight, pct: 0, fillColor, fillVal:e.dur };
proxy.pct += e.dur / timelineLODThresholds[jlod + 1];
if (e.dur > proxy.fillVal) proxy.fillColor = fillColor; proxy.fillVal = e.dur;
((((tempProxiesBuilder[i] ??= {})[jlod]) ??= {})[ix] ??= {})[iy] ??= { x: e.st-st, y: iy, h: levelHeight, pct: 0, fillColor };
tempProxiesBuilder[i][jlod][ix][iy].pct += e.dur / timelineLODThresholds[jlod + 1];
}
}
}