Skip to content

fix(docs): Remove timestamp queries from the "Game of Life" example - #3509

Open
iwoplaza wants to merge 1 commit into
releasefrom
remove-game-of-life-timestamps
Open

iwoplaza wants to merge 1 commit into
releasefrom
remove-game-of-life-timestamps

Conversation

@iwoplaza

@iwoplaza iwoplaza commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

The example requested timestamp-query and attached a performance callback to each compute pipeline, but the averages only ever went to the console.

Closes #2263

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

pkg.pr.new

No packages changed since release

@github-actions

github-actions Bot commented Dec 4, 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 [0.43, 0.81, 1.68, 2.98, 3.51, 6.09, 10.38, 11.48]
  line [0.42, 0.81, 1.89, 3.12, 3.85, 6.30, 11.86, 13.04]
  line [0.36, 0.78, 1.78, 2.89, 3.32, 6.82, 12.27, 12.70]
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.08, 0.17, 0.25, 0.34, 0.50, 0.44, 0.54, 0.63]
  line [0.08, 0.16, 0.24, 0.34, 0.41, 0.44, 0.58, 0.65]
  line [0.10, 0.23, 0.31, 0.36, 0.48, 0.49, 0.58, 0.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.32, 1.10, 2.42, 3.73, 5.74, 13.21, 27.00, 55.20]
  line [0.43, 1.04, 1.92, 3.30, 6.68, 12.39, 26.10, 54.50]
  line [0.41, 1.09, 1.79, 3.47, 6.39, 13.09, 26.62, 53.70]
Loading

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

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

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

No notable changes.

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

@iwoplaza
iwoplaza marked this pull request as ready for review December 4, 2026 15:13

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Approach: sound — this removes a console-only timing harness together with the timestamp-query feature request that caused the throw reported in #2263, rather than keeping a feature nobody consumes.

Reviewed changes — reviewed the full diff (1 file, 1 commit).

  • Timing harness removed. The perf accumulator and the withPerformanceCallback wrapper are gone; the GPUs-side timings only ever reached console.log.
  • Feature request dropped. tgpu.init no longer opts into timestamp-query, and the hasTimestamp fallback branch disappears with it.
  • Pipeline helper simplified. createPipeline now just returns the configured pipeline; the three call sites lose their unused label argument.
  • Control cleanup. The perf counters reset in the pipeline select handler is gone too.

Verified the example's inline WGSL snapshot still passes (game-of-life.test.ts), the TgpuComputeFn import is still used, and oxlint/oxfmt pass. No skill or docs page describes this example's timing output, so nothing else needed updating.

( ◦°^°◦) 👍

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

This branch has not been deployed

No deployments
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.

2 participants