Skip to content

feat(runner): add fps_real builtin and fix fps builtin - #428

Open
cobaltgit wants to merge 6 commits into
ButterscotchRunner:mainfrom
cobaltgit:fps-real
Open

feat(runner): add fps_real builtin and fix fps builtin#428
cobaltgit wants to merge 6 commits into
ButterscotchRunner:mainfrom
cobaltgit:fps-real

Conversation

@cobaltgit

@cobaltgit cobaltgit commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

fixes the camera surface in Alphys's lab freezing in Undertale

image

@cobaltgit
cobaltgit marked this pull request as ready for review August 19, 2026 10:34
@cobaltgit

Copy link
Copy Markdown
Collaborator Author

Should we leave deltaTime as a double or would it be safe to have it as GMLReal (for float-real platforms)

@cobaltgit cobaltgit changed the title feat(vm): add fps_real builtin and fix fps builtin feat(runner): add fps_real builtin and fix fps builtin Aug 19, 2026
@Un1q32

Un1q32 commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Should we leave deltaTime as a double or would it be safe to have it as GMLReal (for float-real platforms)

I wonder if it would be better as a float actually, save a little memory and compute time. We should prolly look thru the codebase for stuff that is double or GMLReal that can be changed to a float without any real chance of fucking things up. Saves a little bit of memory and maybe compute time for free.

@Un1q32

Un1q32 commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Actually I looked at the usage and no you cannot change to GMLReal

@Un1q32

Un1q32 commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

float isn't accurate enough for good timekeeping

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.

2 participants