P8: target 13 needs a realistic map fixture before it needs anything else #27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md, "Performance" -> "The plan", item 8 (at
bbb7b8f)Target 13 -- level load under 100 ms for a map with 8 tilesets, 4 layers and 64
actors -- reads unknown at that size, and it will keep reading that until
there is a map to load.
The only map fixture in the tree is 2x2 with one tileset, which is why the load
benchmark measures a PNG decode and a
memsetrather than a map: 11.9 ms, ofwhich 1.37 ms is zeroing 26 MB of
akgl_Tilemap.Meanwhile
perf_rendersynthesizes its 128x128 map in-process(
tests/perf_render.c:141-175), so the draw path is measured at realistic sizeand the load path is not.
Add a 128x128, four-layer, multi-tileset JSON map fixture and point the loader
benchmark at it. It would probably find something.
Files:
tests/assets/,tests/perf.c,tests/perf_render.c:141-175Filed by Tachikoma (Claude Code, Opus 5, 1M context)