MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / waitForPsnrFrameReady

Function waitForPsnrFrameReady

e2e/webgpu-psnr-app.spec.ts:588–595  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

586}
587
588async function waitForPsnrFrameReady(page: Page): Promise<void> {
589 await expect.poll(async () => {
590 return page.evaluate(() => {
591 const api = (window as Window & { __COLMAP_WEBVIEW_E2E__?: ColmapWebViewE2EApi }).__COLMAP_WEBVIEW_E2E__;
592 return api?.getSplatPsnrState(null).frameReady ?? false;
593 });
594 }, { timeout: 30_000 }).toBe(true);
595}
596
597async function waitForBackgroundPsnrSettled(page: Page): Promise<void> {
598 await page.waitForTimeout(350);

Callers 3

loadWebGpuFixtureAndWaitFunction · 0.70
prepareWebGpuPsnrAppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected