facebook-sdk-for-unity
facebook-sdk-for-unity copied to clipboard
WindowsFacebookGameObject.Update() generates 88 bytes a frame
Environment
- Unity Editor Version:
2020.3.37f1 - Unity SDK Version:
14.1
Goals
Have zero garbage generated from a method that runs on the Update loop.
Expected Results
Facebook not to generates GC every frame and possibly throttle it if it needs to.
Steps to Reproduce
Run the game in UnityStandaloneWin with the profiler attached and monitor. Notice 88 bytes a frame in Update.ScriptRunBehaviourUpdate.
I assume it's the new Message that gets created in Message.PopMessage() from the Tick() call in the Windows wrapper class.