Skip to content

Make it add listener to IAP buttons only if scene loaded single, for open-world performance profiling.#769

Open
insthync wants to merge 3 commits intofacebook:mainfrom
insthync:main
Open

Make it add listener to IAP buttons only if scene loaded single, for open-world performance profiling.#769
insthync wants to merge 3 commits intofacebook:mainfrom
insthync:main

Conversation

@insthync
Copy link

@insthync insthync commented Mar 3, 2026

Pull Request Details

I saw in CPU profiling that the EditorFacebookGameObject.OnSceneLoaded() has high GC.Alloc() (~6.3MB) and takes long time (~140ms), when scene loaded, my game is open-world, so it has many additive scene loading.

So it is hard to profile to find how my game is stuttering in editor, because it is stuttering frequently due the function calling, so I make changes to it.

Test Plan

Try load scene by additive scene loading function, then it GC.Alloc() must be reduced.

@meta-cla meta-cla bot added the CLA Signed label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant