mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
Revert "viz: pick the largest rect for proxy fillColor (#11558)"
This reverts commit 76079bc7f2.
This commit is contained in:
parent
9764c6cdee
commit
3bf0db80ef
1 changed files with 2 additions and 3 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue