makepad/libs/map_build/src
2026-09-27 01:53:53 +03:00
..
native Merge upstream origin/dev c86415ef6 (30 commits) into nigig fork - preserve work content, game crates, nigig protocol, widgets layout 2026-09-27 01:53:53 +03:00
faces.rs libs: geodata, map_build, mbtile_reader, map_nav 2026-09-15 13:40:32 +02:00
lib.rs map_build: the repacker builds on Windows again -- repack and repack_remote read and wrote at offsets through Unix's FileExt, so makepad-map-build stopped compiling for Windows (the CI's workspace row, red since 6c5c71f92). A ReadExactAt shim gives read_exact_at and write_all_at on every platform: Unix's FileExt, and on Windows the same from seek_read/seek_write; repack_remote is built wherever repack is. Checked: cargo check of makepad-map-tiles' bins for the host and x86_64-pc-windows-gnu, the repack lib tests 2026-09-27 00:17:25 +02:00
mkmap.rs libs: geodata, map_build, mbtile_reader, map_nav 2026-09-15 13:40:32 +02:00
nav_build.rs libs: geodata, map_build, mbtile_reader, map_nav 2026-09-15 13:40:32 +02:00
osm_pbf.rs libs: geodata, map_build, mbtile_reader, map_nav 2026-09-15 13:40:32 +02:00
progress.rs maps + route: the self-baking Amsterdam test map, reversible mkmap weave, the rtsmap generator, road faces, guarded first-run 2026-09-01 16:46:33 +02:00
render_check.rs maps: tiles ship only what the renderer draws, and a frame draws only what is on screen -- one detail contract in mbtile_reader::map_tags (detail_feature_used, micro_icon, the tag allowlist) is shared by the renderer (MvtSink::wants_feature skips rejected osm_* features in the detail pass before any id is allocated), the base bake (non --full drops them and stamps makepad_detail_contract=features-v1) and the repacker (a DATA_POLICY row; the verifier accepts exactly the contract's drops): address-only nodes (85% of detail points), plain road/building lines duplicated by the base and polygon layers, and relation points go; icons, trees, bridge corridors, platforms and detail buildings stay. Hosted city tiles shrink ~24% (Amsterdam z14 608 -> 465 KB). makepad-map-render-check builds each tile from the original and the rewrite at buckets 14-18 in 2D and 3D and requires identical buffers (bitwise digest, NaN-safe) and equal baked-face hits: ~3000 builds over local and hosted world tiles, 0 mismatches. Found on the way: base, detail and overlay polygon ids all started at 1 and the fill pass groups rings by id, so unrelated polygons of one colour fused; they now use disjoint ranges. makepad-map-repack --in-place converts an archive over itself shard by shard (cross-shard blobs stashed first, each partial verified tile by tile against the still-present original, journaled, renamed; root last; resumable), and --remote user@host:/dir runs it from this machine over parallel ssh streams against a sparse local mirror with SHA-256 checks. GPU/memory: only visible tiles are drawn (the prefetch ring, a whole z14 tile wide past z14, was drawn every frame), building outlines, flat-road fringes and roof edges move to the compact 28/16-byte formats, the shadow pass skips unlifted road chunks and off-screen terrain cells are skipped; z16 flat 6.3 -> 3.8 ms GPU, 123 -> 36 draws, 151 -> 94 MB resident; z17.5 7.3 -> 3.6 ms, 158 -> 26 MB; max tilt 5.5 -> 2.8 ms; pixels unchanged. New traces gpu.shaders, map.streams, map.frame 2026-09-26 23:41:52 +02:00
repack.rs Merge upstream origin/dev c86415ef6 (30 commits) into nigig fork - preserve work content, game crates, nigig protocol, widgets layout 2026-09-27 01:53:53 +03:00
repack_remote.rs map_build: the repacker builds on Windows again -- repack and repack_remote read and wrote at offsets through Unix's FileExt, so makepad-map-build stopped compiling for Windows (the CI's workspace row, red since 6c5c71f92). A ReadExactAt shim gives read_exact_at and write_all_at on every platform: Unix's FileExt, and on Windows the same from seek_read/seek_write; repack_remote is built wherever repack is. Checked: cargo check of makepad-map-tiles' bins for the host and x86_64-pc-windows-gnu, the repack lib tests 2026-09-27 00:17:25 +02:00
testmap.rs libs: geodata, map_build, mbtile_reader, map_nav 2026-09-15 13:40:32 +02:00
versatiles.rs maps + route: the self-baking Amsterdam test map, reversible mkmap weave, the rtsmap generator, road faces, guarded first-run 2026-09-01 16:46:33 +02:00