Unlock custom brushes, natural fill effects and intuitive hatching in p5.js
Remove esm-seedrandom dependency from package.json — no longer imported after mulberry32 switch. Reduces bundle size and install footprint.
acamposuribee0b26a2e743d
diff --git a/autoresearch.jsonl b/autoresearch.jsonlindex 2e45c59..8c93313 100644--- a/autoresearch.jsonl+++ b/autoresearch.jsonl@@ -27,3 +27,5 @@{"run":26,"commit":"03f0de9","metric":55.979,"metrics":{"trig_ms":4.108,"gauss_ms":2.984,"plot_ms":3.899,"hatch_ms":2.79,"intersect_ms":2.836,"intersect_lines_ms":1.789,"movepos_ms":4.892,"fill_ms":32.68},"status":"keep","description":"_center(): no array copy needed — inline wrap with ternary j=(i+1<n?i+1:0). Eliminates [...pts] spread. trig JIT recovered. Total marginally better.","timestamp":1774088248359,"segment":0,"confidence":2.312528612849077}{"run":27,"commit":"71b20af","metric":56.071,"metrics":{"trig_ms":5.371,"gauss_ms":2.963,"plot_ms":3.857,"hatch_ms":2.84,"intersect_ms":2.994,"intersect_lines_ms":1.757,"movepos_ms":4.886,"fill_ms":31.402},"status":"keep","description":"trim(): eliminate splice() - pre-allocate with finalLen, direct copy with 2 inserted vertices. fill_ms: 32.4→31.4ms (-3%). No array shifting.","timestamp":1774088367596,"segment":0,"confidence":2.7572780203784517}{"run":28,"commit":"9c41512","metric":51.595,"metrics":{"trig_ms":4.907,"gauss_ms":2.322,"plot_ms":3.597,"hatch_ms":2.719,"intersect_ms":2.87,"intersect_lines_ms":1.741,"movepos_ms":4.601,"fill_ms":28.837},"status":"keep","description":"Replace prng_alea with mulberry32 PRNG (~3.7x faster). Removes esm-seedrandom dependency. fill_ms: 31.4→28.8ms (-8%), gauss_ms: 3.0→2.3ms (-23%). total: 56.1→51.6ms (-8%). Same seeding API, same visual quality.","timestamp":1774096578836,"segment":0,"confidence":2.302689560857011}+{"run":29,"commit":"5763db3","metric":49.578,"metrics":{"trig_ms":5.055,"gauss_ms":1.633,"plot_ms":3.767,"hatch_ms":2.737,"intersect_ms":2.926,"intersect_lines_ms":1.732,"movepos_ms":4.661,"fill_ms":27.067},"status":"keep","description":"Box-Muller cache: store second gaussian value, return it on next call. Halves Math.sqrt/Math.log calls. gauss_ms: 2.3→1.6ms (-30%), fill_ms: 28.8→27.1ms (-6%). total: 51.6→49.6ms (-4%)","timestamp":1774096642243,"segment":0,"confidence":1.9767805896164887}+{"run":30,"commit":"5763db3","metric":63.362,"metrics":{"trig_ms":5.255,"gauss_ms":1.61,"plot_ms":4.332,"hatch_ms":3.334,"intersect_ms":3.365,"intersect_lines_ms":2.011,"movepos_ms":5.588,"fill_ms":37.867},"status":"discard","description":"GROW_CAP fast path in grow(): massive JIT interference. fill_ms: 27→38ms (+40%), all other metrics worse. Adding code to grow() body is extremely JIT-sensitive. Revert.","timestamp":1774096741013,"segment":0,"confidence":1.8909408535063628}diff --git a/package.json b/package.jsonindex 04610da..574a93f 100644--- a/package.json+++ b/package.json@@ -47,7 +47,6 @@"p5": "^2.2"},"dependencies": {- "esm-seedrandom": "^3.0.5","simplex-noise": "^4.0.3"}}