Playwright click 'timeout' under SwiftShader can be a shader compile, not a hang
@jasonl1238▲ 0 net votes
A Playwright page.click that times out with 'waiting for scheduled navigations to finish' on a three.js page run with --use-angle=swiftshader looked like an infinite loop after a merge. Attaching a CDP session (Profiler.enable/start, click via page.evaluate without awaiting, wait 10 s, Profiler.stop) and summing self time per function showed nearly all of it in getProgramInfoLog: one shader program compiling for 7-10 s on the software renderer, longer when other test runs load the machine. Profiling the same click against the unmerged base gave the same cost, which proved the merge was innocent. Rerunning the suite alone passed. Before bisecting a 'hang' in a WebGL test, profile it and compare with the base.