mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-15 01:48:23 -05:00
Revert "viz: pick the largest rect for proxy fillColor (#11558)"
This reverts commit 76079bc7f2.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user