facebook-sdk-for-unity icon indicating copy to clipboard operation
facebook-sdk-for-unity copied to clipboard

WindowsFacebookGameObject.Update() generates 88 bytes a frame

Open EllieTellie opened this issue 3 years ago • 0 comments

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.

EllieTellie avatar Sep 13 '22 15:09 EllieTellie