Skip to content

feat: PBEngineInfo.total_runtime_f64 - #476

Open
robtfm wants to merge 1 commit into
mainfrom
feat/engine-info-runtime-f64
Open

feat: PBEngineInfo.total_runtime_f64#476
robtfm wants to merge 1 commit into
mainfrom
feat/engine-info-runtime-f64

Conversation

@robtfm

@robtfm robtfm commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

total_runtime is a proto float, and an f32 can't resolve frame deltas once a scene has been running for ~36 hours, which long-lived server scenes now do (at a 30 Hz tick the resolution equals the tick period after ~3 days).

The field can't be widened in place: generated decoders (e.g. the SDK's engine_info.gen.ts) guard the wire type, fixed32 vs fixed64, and would skip the field, so every existing scene bundle would read 0. This adds double total_runtime_f64 = 5 alongside; old bundles ignore the unknown field, new ones can read the wide value.

Written by bevy-explorer in decentraland/bevy-explorer#1205.

🤖 Generated with Claude Code

`total_runtime` is a proto float, and an f32 can't resolve frame deltas once a
scene has been running for ~36 hours, which long-lived server scenes now do.
The field can't be widened in place: generated decoders guard the wire type
(fixed32 vs fixed64) and would skip it, so existing bundles would read 0.
Add a double alongside; old bundles ignore the unknown field.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Test this pull request

  • The @dcl/protocol package can be tested in scenes by running
    npm install "https://sdk-team-cdn.decentraland.org/@dcl/protocol/branch//dcl-protocol-1.0.0-33628229626.commit-69000c9.tgz"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant