Closed Bug 1880415 Opened 2 years ago Closed 7 months ago

https://webgpu.github.io/webgpu-samples/samples/imageBlur takes a long time to compile shaders

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: mayankleoboy1, Unassigned)

References

(Depends on 1 open bug, Blocks 2 open bugs, )

Details

Attachments

(1 file)

Attached file about:support

This happens with/without dx12-no-readback , and with all 3 canvas backends (d2d, gpu, skia)

Severity: -- → S3
Flags: needinfo?(egubler)

I'm going to change the scope of this bug to include whatever is needed to make this specific page work, since AFAIK nothing is tracking it yet. There's at least two issues at play here:

Linking against 1806659, which serves as a meta-bug for WebGPU's official samples.

Depends on: 1878320
Flags: needinfo?(egubler)
Summary: https://webgpu.github.io/webgpu-samples/samples/imageBlur freezes the tab for 15 seconds → https://webgpu.github.io/webgpu-samples/samples/imageBlur fails to load after a long tab freeze
See Also: → 1878449

Aha, perf. issues are definitely the newly filed bug 1885217. 😭👍🏻

Bug 1878449, comment 5 is applicable here; perf. issues are fundamental to any shader compilation that is long (which even the best shader compiler might not be able to prevent). The solution is offered by the spec. in the form of GPUDevice.createComputePipelineAsync.

With recent fixes in WebGPU, this page now successfully loads for me, but the long shader compilation delay is still present because we're using FXC for compilation.

Summary: https://webgpu.github.io/webgpu-samples/samples/imageBlur fails to load after a long tab freeze → https://webgpu.github.io/webgpu-samples/samples/imageBlur takes a long time to compile shaders

Latest profile: https://share.firefox.dev/42xPfft
Working as expected.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: