You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf: remove unused channel copies in HeightmapToNormalMap #935
Evidence level: source-only candidate. This was found during the bounded source audit of Hesiod 377f63701bd75e5ea40589b76604d44d214555f4 and HighMap d73e05adee1a04cc1e955d3f3162398a37f1c17d. The focused allocation captures measured ExportAsset and the texture-quilting nodes; they do not establish the allocation overlap or peak savings claimed by other code paths. Profile this specific path before promising a memory reduction.
Finding and proposed work
The callback copies normal texture channels into nx, ny and nz, but never reads those copies. Output reconstruction uses tn.channel(nch) directly. Remove the unused copies while preserving channel ordering and alpha.
The nominal redundant payload is three float arrays at the callback's shape; this is a source estimate, not a measured global peak or a claim that each callback uses the whole terrain.
Activity