Skip to content

feat (@typegpu/noise): LCG32 and xoroshiro PRNGs, utilities#2435

Draft
cieplypolar wants to merge 21 commits into
mainfrom
feat/noise-utils-xoroshiro
Draft

feat (@typegpu/noise): LCG32 and xoroshiro PRNGs, utilities#2435
cieplypolar wants to merge 21 commits into
mainfrom
feat/noise-utils-xoroshiro

Conversation

@cieplypolar

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown

pkg.pr.new

packages
Ready to be installed by your favorite package manager ⬇️

https://pkg.pr.new/software-mansion/TypeGPU/tgpu-gen@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/tinyest-for-wgsl@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/typegpu@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/cli@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/color@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/gl@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/radiance-cascades@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/react@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/sdf@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/three@e30c088dae1a49fa23b345dc659783969ee0b9a5
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@e30c088dae1a49fa23b345dc659783969ee0b9a5

benchmark
view benchmark

commit
view commit

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown

Bundle size comparison (import * as ... in PR vs import * as ... in target):

🟢 Decreased ➖ Unchanged 🔴 Increased ❔ Unknown
0 321 0 0

import { ... } in PR vs import * as ... in PR (is the library tree-Shakeable?):

Test tsdown
tgpu_init.ts 256.45 kB ($${\color{green}-3.2\%}$$)
tgpu_initFromDevice.ts 255.93 kB ($${\color{green}-3.4\%}$$)
tgpu_resolve.ts 187.16 kB ($${\color{green}-29.3\%}$$)
tgpu_resolveWithContext.ts 187.10 kB ($${\color{green}-29.4\%}$$)
tgpu_bindGroupLayout.ts 69.01 kB ($${\color{green}-74.0\%}$$)
tgpu_mutableAccessor.ts 65.98 kB ($${\color{green}-75.1\%}$$)
tgpu_accessor.ts 65.97 kB ($${\color{green}-75.1\%}$$)
tgpu_privateVar.ts 65.30 kB ($${\color{green}-75.3\%}$$)
tgpu_workgroupVar.ts 65.30 kB ($${\color{green}-75.4\%}$$)
tgpu_const.ts 64.53 kB ($${\color{green}-75.6\%}$$)
tgpu_fn.ts 37.97 kB ($${\color{green}-85.7\%}$$)
tgpu_fragmentFn.ts 37.91 kB ($${\color{green}-85.7\%}$$)
tgpu_vertexFn.ts 37.72 kB ($${\color{green}-85.8\%}$$)
tgpu_computeFn.ts 37.43 kB ($${\color{green}-85.9\%}$$)
tgpu_vertexLayout.ts 26.61 kB ($${\color{green}-90.0\%}$$)
tgpu_comptime.ts 14.41 kB ($${\color{green}-94.6\%}$$)
tgpu_unroll.ts 2.60 kB ($${\color{green}-99.0\%}$$)
tgpu_slot.ts 1.57 kB ($${\color{green}-99.4\%}$$)
tgpu_lazy.ts 1.22 kB ($${\color{green}-99.5\%}$$)

If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu.

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown

Resolution Time Benchmark

---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Random Branching (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [1.00, 2.05, 4.37, 6.49, 7.96, 11.08, 22.26, 26.06]
  line [0.95, 1.99, 4.14, 6.27, 7.62, 11.33, 22.94, 23.54]
  line [0.98, 1.84, 4.11, 6.62, 8.62, 11.22, 21.98, 26.52]
Loading
---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Linear Recursion (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.32, 0.59, 0.71, 0.83, 1.18, 1.25, 1.59, 1.63]
  line [0.32, 0.56, 0.73, 0.85, 1.15, 1.25, 1.48, 1.65]
  line [0.27, 0.53, 0.65, 0.80, 1.12, 1.17, 1.37, 1.59]
Loading
---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Full Tree (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.88, 2.08, 4.67, 6.95, 12.89, 26.39, 56.86, 115.21]
  line [0.82, 2.14, 3.67, 6.40, 12.91, 26.54, 57.47, 114.05]
  line [0.90, 2.11, 4.12, 6.53, 12.86, 26.85, 56.73, 113.43]
Loading

@cieplypolar cieplypolar force-pushed the feat/noise-utils-xoroshiro branch from b314b44 to a17f1f3 Compare May 19, 2026 14:56
@cieplypolar cieplypolar changed the base branch from main to feat/bitcastF32ToU32 May 19, 2026 15:00
Base automatically changed from feat/bitcastF32ToU32 to main July 8, 2026 12:39
@cieplypolar cieplypolar force-pushed the feat/noise-utils-xoroshiro branch 2 times, most recently from cad5c38 to 91812f0 Compare July 9, 2026 12:04
@cieplypolar cieplypolar force-pushed the feat/noise-utils-xoroshiro branch from 91812f0 to acfa193 Compare July 9, 2026 12:05
@cieplypolar cieplypolar force-pushed the feat/noise-utils-xoroshiro branch from 7bf633a to 3e4a85d Compare July 9, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant