Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Resolved Services Core generating garbage every frame

Discussion in 'Unity Analytics' started by livingtarget, Feb 20, 2023.

  1. livingtarget

    livingtarget

    Joined:
    Apr 21, 2015
    Posts:
    57
    Hey,

    Just curious why the services core ActionScheduler class is generating 24 bytes for an empty list every frame even if there are no actions present.

    Offending code in ExecuteExpiredActions():
    List<ScheduledInvocation> scheduledInvocationList = new List<ScheduledInvocation>();

    I'll just leave it here and hopefully it might actually get changed. Probably written by the same person that wrote the Mobile Notifications package that also had the same thing in older versions :rolleyes:
     
  2. Julian-Unity3D

    Julian-Unity3D

    Unity Technologies

    Joined:
    Apr 28, 2022
    Posts:
    189
    What version of services core are you using?
    There is a recent fix which may fix your issues in version: 1.7.1 com.unity.services.core
     
  3. livingtarget

    livingtarget

    Joined:
    Apr 21, 2015
    Posts:
    57
    Ah yes my bad it was in 1.6.0, will make sure to update when I can.
     
    Julian-Unity3D likes this.