mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
- RM1: materials' maps and Solari's traced meshes on the GPU only (RAEA_KEEP_CPU_ASSETS=1: the control) - RM2: a sequence's first 3D engine let go before a second opens - RM5: JS solids deduplicated by expression, their Manifolds in a two-generation cache (192 MB each); solid.free - RM6: a map whose picture changes by frame is one part and one material, its picture swapped as frames show it (raea-sys-material swapped.rs): the pool's 96 water maps were 96 meshes and 186 textures - RM7: Manifold shapes welded into indexed meshes (4.65 corners a vertex in halcyon; RAEA_NO_WELD=1: the control); a held frame settles to the same picture, boiling 0.30% against 0.38% - the shape text kept out of the store and the Edit (the engine spawns from the program's rows) - RM8: a BufferMesh of 64 KB or more kept on disk by its content (buffer:@NAME, raea's caches/buffers): shape text 274 MB -> 11.8 MB - RM9: material maps as BC7 with their mips (intel_tex_2), cached by content in raea's caches/maps, any size resampled to whole blocks (RAEA_NO_BC=1: the control): GPU images 733 MB -> 282 MB - RM10: raea-sys-contact's solids as bytes, a count and u16 surface points: 1.27 GB -> 0.37 GB mid-render - memtally names the biggest GPU images; RAEA_MEM_MARKS prints the program's text by column and shape call - tools/memprobe: memseq, heapwho/heapseq (malloc stack logging, holders.py), abenv/abseq/steadyab (A/B on one binary) docs/render-memory.feature has each step's numbers and gates.
21 lines
1.2 KiB
Bash
Executable File
21 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# heapseq.sh BIN OUTDIR [MARK]: the sequence of halcyon r109 with malloc stack logging (live allocations only); once raea
|
|
# prints MARK (default the last warm-up update) and 20 s more, the live heap's call tree is written to OUTDIR/tree.txt
|
|
# (malloc_history -callTree), then the render stopped. WAIT=S waits S seconds after MARK (20); tools/memprobe/holders.py OUTDIR/tree.txt ranks the holders.
|
|
set -uo pipefail
|
|
bin=$1; out=$2; mark=${3:-"engine: warm-up update 7"}; mkdir -p "$out"
|
|
cd ~/Documents/raea/raea/projects/halcyon-motel
|
|
MallocStackLogging=lite RAEA_MEM_MARKS=1 "$bin" render compositions/reel.tsx --composition shot-r109 -o "$out/seq/" >"$out/render.log" 2>&1 &
|
|
pid=$!
|
|
until grep -q "$mark" "$out/render.log" 2>/dev/null || ! kill -0 "$pid" 2>/dev/null; do sleep 1; done
|
|
sleep "${WAIT:-20}"
|
|
if kill -0 "$pid" 2>/dev/null; then
|
|
footprint -p "$pid" 2>/dev/null | head -30 >"$out/footprint.txt"
|
|
kill -STOP "$pid"
|
|
malloc_history "$pid" -callTree >"$out/tree.txt" 2>"$out/tree.err"
|
|
echo "tree: $(wc -c <"$out/tree.txt") bytes at $(grep mem_mark "$out/render.log" | tail -1)"
|
|
kill -9 "$pid"
|
|
else
|
|
echo "render ended first: $(grep -v WARN "$out/render.log" | tail -1)"
|
|
fi
|