WebGPU renderer complete: dirty uploads, default limits, legacy removed, WebGPU required, warm-up (t88 phase 2d)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+11
-10
@@ -26,13 +26,14 @@ with launch(browser_name='firefox') as (_, page, url):
|
||||
text = page.inner_text('#cap-notice')
|
||||
assert 'about:config' in text and 'dom.webgpu.enabled' in text and 'Firefox Nightly' in text
|
||||
print('PASS Firefox isolation and capability notice')
|
||||
page.click('#btn-new')
|
||||
page.fill('#nw-seed', '424242')
|
||||
page.select_option('#nw-size', '2048x1024')
|
||||
page.click('#btn-generate')
|
||||
page.wait_for_function('GAME.running && !GAME.loading', timeout=60000)
|
||||
before = page.evaluate('tick')
|
||||
page.wait_for_timeout(3000)
|
||||
assert page.evaluate('tick') > before
|
||||
assert not errors, errors
|
||||
print('PASS Firefox new world runs for three seconds without page errors')
|
||||
if not caps['webgpu']:
|
||||
assert not page.evaluate('canStartGame()')
|
||||
assert not page.evaluate('startNewWorld(424242,512,384)')
|
||||
assert not page.evaluate('GAME.running')
|
||||
print('PASS Firefox without WebGPU cannot start a world')
|
||||
else:
|
||||
page.evaluate('startNewWorld(424242,512,384)')
|
||||
page.wait_for_function('GAME.running && !GAME.loading',timeout=60000)
|
||||
before=page.evaluate('tick');page.wait_for_timeout(3000)
|
||||
assert page.evaluate('tick')>before
|
||||
assert not errors,errors
|
||||
|
||||
Reference in New Issue
Block a user