Skip to content

fix(core): honor Deck GPU debug option during device initialization - #10782

Merged
charlieforward9 merged 4 commits into
masterfrom
codex/tile3d-gpu-debug-fix
Oct 26, 2026
Merged

charlieforward9 merged 4 commits into
masterfrom
codex/tile3d-gpu-debug-fix

Conversation

@charlieforward9

@charlieforward9 charlieforward9 commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Background

Deck.debug does not reach device initialization, so global GPU debugging can remain enabled during tile streaming.

Change List

  • Forward debug when creating or attaching devices
  • Preserve deviceProps.debug precedence
  • Unit tests: cover eight created/attached debug configurations
  • Restore debug defaults when test construction fails
  • Documentation

Verified: yarn lint, yarn build, 38 Deck Chromium tests. Base of #10784.

@coveralls

coveralls commented Oct 5, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.151% (+0.002%) from 84.149% — codex/tile3d-gpu-debug-fix into master

@charlieforward9
charlieforward9 marked this pull request as ready for review October 5, 2026 19:47
@greptile-apps

greptile-apps Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues remain.

Summary

Deck now forwards debug when creating a device or attaching a WebGL context. Explicit deviceProps.debug values take precedence.

  • Deck applies its GPU debug setting when it creates or attaches a device.

The previous-review ancestry checks failed, so this review covered the full PR diff. No new actionable issues were found.

Reviews (6) · Last reviewed commit: "fix(core): use one debug precedence for ..." · Reviewed by Greptile

Comment thread test/modules/core/lib/deck.spec.ts Resolved
Comment thread test/modules/core/lib/deck.spec.ts Resolved

@ibgreen ibgreen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I reviewed the created-device path and the attached-WebGL-context path separately. In the webgl2Adapter.attach call, the new options forward debug: props.debug but do not apply props.deviceProps; that conflicts with the documented precedence and means the two attached-context cases in gpuDebugTestCases (device override off/on) cannot get their expected values. Please use the same effective debug value as the created-device path (while preserving the intended precedence) and verify both attached-context override cases before approval.

@ibgreen ibgreen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved. The created-device and attached-context paths now apply the documented deviceProps.debug precedence consistently, with regression coverage. CI passed.

@charlieforward9
charlieforward9 force-pushed the codex/tile3d-gpu-debug-fix branch from 8491f59 to 060bb96 Compare October 23, 2026 16:06
charlieforward9 and others added 4 commits October 25, 2026 21:40
Both device paths now apply deviceProps first and then set debug to
deviceProps.debug ?? debug, so an explicit deviceProps.debug: undefined no
longer clears Deck's debug option. Adds that case to the created and
attached GPU debug tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@charlieforward9
charlieforward9 force-pushed the codex/tile3d-gpu-debug-fix branch from af2106f to 5290184 Compare October 26, 2026 01:40
@charlieforward9
charlieforward9 merged commit 3639622 into master Oct 26, 2026
8 checks passed
@charlieforward9
charlieforward9 deleted the codex/tile3d-gpu-debug-fix branch October 26, 2026 02:14
chrisgervang pushed a commit that referenced this pull request Oct 26, 2026
…10782)

* fix(core): honor Deck debug option during device initialization

* test(core): release GPU debug contexts after tests

Assisted-by: OpenAI Codex

* test(core): cover attached GPU debug settings safely

* fix(core): use one debug precedence for created and attached devices

Both device paths now apply deviceProps first and then set debug to
deviceProps.debug ?? debug, so an explicit deviceProps.debug: undefined no
longer clears Deck's debug option. Adds that case to the created and
attached GPU debug tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 3639622)
chrisgervang added a commit that referenced this pull request Oct 26, 2026
…10782) (#10932)

* fix(core): honor Deck debug option during device initialization

* test(core): release GPU debug contexts after tests

Assisted-by: OpenAI Codex

* test(core): cover attached GPU debug settings safely

* fix(core): use one debug precedence for created and attached devices

Both device paths now apply deviceProps first and then set debug to
deviceProps.debug ?? debug, so an explicit deviceProps.debug: undefined no
longer clears Deck's debug option. Adds that case to the created and
attached GPU debug tests.



---------


(cherry picked from commit 3639622)

Co-authored-by: Charles Richardson <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@chrisgervang

Copy link
Copy Markdown
Collaborator

Released in deck.gl 9.4.1. Thanks @charlieforward9!

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.

4 participants