From fc78fbf8e6236b8b9d251603887ceb9e7fd8b457 Mon Sep 17 00:00:00 2001 From: Martin Valigursky Date: Fri, 26 Jan 2024 10:40:30 +0000 Subject: [PATCH 1/2] Avoid using WebGPU 'timestamp-query' which has been removed in Chrome 121 --- src/platform/graphics/webgpu/webgpu-graphics-device.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/platform/graphics/webgpu/webgpu-graphics-device.js b/src/platform/graphics/webgpu/webgpu-graphics-device.js index 0ed17798dca..3c6a64511da 100644 --- a/src/platform/graphics/webgpu/webgpu-graphics-device.js +++ b/src/platform/graphics/webgpu/webgpu-graphics-device.js @@ -222,7 +222,11 @@ class WebgpuGraphicsDevice extends GraphicsDevice { this.extCompressedTextureS3TC = requireFeature('texture-compression-bc'); this.extCompressedTextureETC = requireFeature('texture-compression-etc2'); this.extCompressedTextureASTC = requireFeature('texture-compression-astc'); - this.supportsTimestampQuery = requireFeature('timestamp-query'); + + // Do not request timestamp feature as it has changed and current form is not supported. + // See engine issue #5989 + //this.supportsTimestampQuery = requireFeature('timestamp-query'); + this.textureRG11B10Renderable = requireFeature('rg11b10ufloat-renderable'); Debug.log(`WEBGPU features: ${requiredFeatures.join(', ')}`); From 270ad414c2201fb097c2064422c3786780b239a2 Mon Sep 17 00:00:00 2001 From: Martin Valigursky Date: Fri, 26 Jan 2024 10:42:30 +0000 Subject: [PATCH 2/2] space --- src/platform/graphics/webgpu/webgpu-graphics-device.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/graphics/webgpu/webgpu-graphics-device.js b/src/platform/graphics/webgpu/webgpu-graphics-device.js index 3c6a64511da..9a9365f808e 100644 --- a/src/platform/graphics/webgpu/webgpu-graphics-device.js +++ b/src/platform/graphics/webgpu/webgpu-graphics-device.js @@ -225,7 +225,7 @@ class WebgpuGraphicsDevice extends GraphicsDevice { // Do not request timestamp feature as it has changed and current form is not supported. // See engine issue #5989 - //this.supportsTimestampQuery = requireFeature('timestamp-query'); + // this.supportsTimestampQuery = requireFeature('timestamp-query'); this.textureRG11B10Renderable = requireFeature('rg11b10ufloat-renderable'); Debug.log(`WEBGPU features: ${requiredFeatures.join(', ')}`);