Add a fixed-step lifecycle with native and WASM acceptance - #172
Draft
proggeramlug wants to merge 1 commit into
Draft
Add a fixed-step lifecycle with native and WASM acceptance#172proggeramlug wants to merge 1 commit into
proggeramlug wants to merge 1 commit into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Games using variable frame delta currently implement timing and hook ordering independently. Add optional
runGameLifecycleandFixedStepClockAPIs for constant simulation ticks, bounded catch-up, explicit dropped time, variable updates, interpolated drawing and one-time cleanup on native and web. The starter uses the shared lifecycle and interpolates its previous/current simulation state.The actual Perry native/WASM contract exposed two compiler compatibility gaps. Use a portable noncoercing finite check, also shared by the existing scene/quality validators, and invoke stored hooks through local function references so WASM uses closure dispatch. Retain the earlier failed observations. General Perry JSON and exception propagation remain separate limitations.
Validation:
npm startrun renders the 800x450 greeting/square, loads the asset and cleans up once. The restored unmodified source completes the full web build. Installed runtime/template sources match this change.CI now requires the pure native/WASM contract, adds the public lifecycle mode to fresh installed native rendering, and requires hook counters alongside the browser image. Local evidence and its limits are documented in
docs/evidence/fixed-game-lifecycle-v1.md. Full starter asset/text browser rendering, canonical example runtime coverage, components and device-loss recovery remain open.Stacked on #171; relates to #142, #143 and #74.
Hosted native scene/direct-2D/lifecycle captures all pass. The native package report retains its dirty-source flag; its seven reported installed runtime hashes match this PR with Windows newline conversion. Subsequent full starter execution exposed a named-void-callback conversion failure addressed by #173; this PR alone does not qualify full starter browser execution.
Published report and evidence retain local and hosted results, earlier failures, captures, source receipts and the exact patch. ZIP SHA-256:
62842982376bc923a0ed04ca2df6af49c86141119602bbf57f56a7a9afe056a2.