Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. 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:
    83
    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:
    192
    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:
    83
    Ah yes my bad it was in 1.6.0, will make sure to update when I can.
     
    Julian-Unity3D likes this.