Skip to content

Commit 6e45bf6

Browse files
committed
Changes reverted:
- Caching is enabled by default - User is able to override default cache-settings via deviceProps should they need.
1 parent 720f737 commit 6e45bf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/core/src/lib/deck.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,11 @@ export default class Deck<ViewsT extends ViewOrViews = null> {
373373
const userOnResize = this.props.deviceProps?.onResize;
374374

375375
deviceOrPromise = webgl2Adapter.attach(props.gl, {
376-
...this.props.deviceProps,
377376
// Enable shader and pipeline caching for attached devices (matches _createDevice defaults)
378377
// Without this, interleaved mode (e.g., MapboxOverlay) creates new pipelines every frame
379378
_cacheShaders: true,
380379
_cachePipelines: true,
380+
...this.props.deviceProps,
381381
onResize: (canvasContext, info) => {
382382
// Manually sync drawing buffer dimensions (canvas is externally managed)
383383
// TODO(v9.3): Use canvasContext.setDrawingBufferSize(width, height) when upgrading to luma 9.3+
@@ -863,9 +863,9 @@ export default class Deck<ViewsT extends ViewOrViews = null> {
863863
// This behavior is expected to change in deck.gl v10 to support WebGPU only builds.
864864
const deviceProps = {
865865
adapters: [],
866-
...props.deviceProps,
867866
_cacheShaders: true,
868-
_cachePipelines: true
867+
_cachePipelines: true,
868+
...props.deviceProps
869869
};
870870
if (!deviceProps.adapters.includes(webgl2Adapter)) {
871871
deviceProps.adapters.push(webgl2Adapter);

0 commit comments

Comments
 (0)