Conversation
|
pkg.pr.new packages benchmark commit |
📊 Bundle Size Comparison
👀 Notable resultsStatic test results:No major changes. Dynamic test results:No major changes. 📋 All resultsClick to reveal the results table (350 entries).
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu. |
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 [0.88, 1.79, 3.62, 6.62, 7.01, 10.38, 20.81, 21.80]
line [0.98, 1.94, 4.02, 5.90, 7.34, 11.78, 21.43, 22.97]
line [0.91, 1.83, 4.02, 6.39, 7.20, 10.22, 20.39, 23.34]
---
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.51, 0.64, 0.83, 1.09, 1.12, 1.32, 1.50]
line [0.33, 0.50, 0.68, 0.83, 1.13, 1.18, 1.46, 1.60]
line [0.27, 0.49, 0.68, 0.80, 1.06, 1.22, 1.39, 1.52]
---
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.90, 2.11, 3.51, 5.92, 12.00, 25.02, 53.44, 109.79]
line [0.94, 1.91, 3.94, 6.13, 12.79, 25.81, 54.32, 110.35]
line [0.86, 2.14, 3.94, 6.03, 12.17, 24.90, 55.41, 112.85]
|
There was a problem hiding this comment.
Pull request overview
Fixes TGSL console.log codegen when logging implicit pointer values (e.g. myUniform.$) by ensuring logged arguments are converted to their underlying value types before serializer generation.
Changes:
- Add a regression test covering
console.logwith an implicit pointer from a uniform. - Update the console log generator to convert arguments using
unptr(...)before building the logging function + metadata. - Extend
unptr(...)typing to acceptUnknownDatain more call sites.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/typegpu/tests/tgsl/consoleLog.test.ts | Adds an inline-snapshot test proving implicit pointers are dereferenced for logging. |
| packages/typegpu/src/tgsl/consoleLog/logGenerator.ts | Converts/dereferences arguments prior to serializer generation and adjusts metadata derivation. |
| packages/typegpu/src/data/dataTypes.ts | Broadens unptr(...) overloads to support UnknownData at the type level. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
cieplypolar
left a comment
There was a problem hiding this comment.
Good catch 💜 . Left some nits.
Co-authored-by: Szymon Szulc <103948576+cieplypolar@users.noreply.github.com>
No description provided.