Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

D8H
Copy link
Collaborator

@D8H D8H commented Aug 9, 2025

I observed 2 cases when the optimization is noticeable. It also probably reduces memory fragmentation which may improve performance in heavy games.

Free functions without object parameters

4,000,000 calls to a free function with a JS event only accessing parameters is 3 times faster:

image image

Life-cycle functions

10,000 objects with a behavior where the doStepPreEvents contains a JS event that only accesses the object and behavior is a bit faster.

image image

@4ian 4ian force-pushed the master branch 3 times, most recently from 8a32fc5 to 846afd9 Compare August 30, 2025 12:16
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