pcbjam/scripts/kicad
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Viktor Vaczi 71807db734 feat(wasm,3d-viewer): run upstream multi-threaded CPU raytracer
Bumps the kicad submodule to the threading revert (the 3D-viewer raytracer's
WASM single-threaded #ifdef fallbacks + the bs_thread_pool inline shim are gone;
those four files are now byte-identical to upstream KiCad).

Links wasm/shims/nanosleep_yield.c into every app (mirrors the gl_ffp_stub
pattern): the now-upstream raw-thread raytracer joins via a main-thread
sleep_for busy-wait, and this shim makes that nanosleep Asyncify-yield to the JS
event loop instead of deadlocking on on-demand pthread-Worker creation. Its
EM_ASYNC_JS yield is already covered by env.__asyncjs__* in asyncify-imports.txt.
This is what lets upstream's multi-threaded code run on WASM under native-EH.

Also documents isolated-worktree + submodule-branch creation in the README.

Result: ~11x faster 3D raytrace (21.3s -> 1.9s, 16 threads), pixel-correct
render, full kicad e2e green (63 passed / 0 failed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 18:17:56 +02:00
..
build-calculator.sh refactor(build): fold calculator into unified docker/build.sh dispatch 2026-05-29 16:01:18 +02:00
build-eeschema.sh feat(schematic): eeschema WASM build + e2e harness 2026-05-29 16:01:17 +02:00
build-footprint_editor.sh feat: libs 0009-S — footprint write-path spike DONE + verified (footprint editor as project-scoped WASM tool + PCB_IO_PCBJAM_FP plugin + bridge kind 4th-arg; New Footprint→FootprintSave fires through bridge on main thread, fork-native body v20251028, no wedge — Firefox e2e green); bump kicad + pcbjam-shared 2026-06-16 16:28:21 +02:00
build-gerbview.sh feat: gerbview WASM port 2026-06-03 14:23:57 +02:00
build-kicad-target.sh feat(wasm,3d-viewer): run upstream multi-threaded CPU raytracer 2026-06-30 18:17:56 +02:00
build-pcbnew.sh feat(schematic): eeschema WASM build + e2e harness 2026-05-29 16:01:17 +02:00
build-pl_editor.sh feat: pl_editor WASM port + browser file dialog fixes 2026-06-01 10:30:56 +02:00
build-sym_convert.sh feat(libs): standalone .lib→.kicad_sym wasm converter (sym_convert) 2026-06-18 12:21:15 +02:00
build-symbol_editor.sh feat: symbol_editor WASM port 2026-06-02 13:37:26 +02:00