Repository navigation
Fix black screen after deploys; add graphics quality option - #21
Merged
Merged
Conversation
…y option After a deploy Safari can load the start page before the updated service worker controls it, so the page has no COOP/COEP headers, no SharedArrayBuffer, and the engine dies with "The object can not be cloned" on a black screen. The start page used to reload only once per tab; it now reloads whenever isolation is missing (at most once every 20 s, so browsers that can't isolate don't loop), and the game page does the same instead of starting without threads. Graphics quality (start page segmented control, and "Graphics" in the in-game ••• menu, applied on next launch): - Standard: 540p, quarter-size textures (previous behaviour, default) - HD: 720p, half-size textures - Max: full screen resolution, full-size textures The chosen quality is included in Copy diagnostics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qy5DKdwTqGQqScWvJyNcft
With the engine now asking for the page-sized mode (1168x540 on an iPhone 11), CShaderDeviceMgrDx8::ValidateMode compared it with the GL layer's fixed 640x480 "display mode" and refused it. SetMode failed, CreateGameWindow returned false, ModInit failed and the engine exited right after "[Render360 video] mode 1168x540" with RUN_OK and nothing on screen. A browser canvas can be any size, so skip the windowed size check on web. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qy5DKdwTqGQqScWvJyNcft
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Black screen
Diagnostics showed
crossOriginIsolated=falseandSharedArrayBuffer=undefined, followed by "The object can not be cloned" while workers were starting. GitHub Pages can't send COOP/COEP headers, so the service worker adds them. After a deploy, Safari can load the start page before the updated worker controls it. The start page's "reload once" guard was per-tab, so it never retried.Graphics quality
Checks
node --checkpasses forpre.jsand for the inline scripts inshell.htmlandpages-index.html.🤖 Generated with Claude Code
https://claude.ai/code/session_01Qy5DKdwTqGQqScWvJyNcft
Generated by Claude Code