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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question ActionScheduler.ExecutionExpiredActions() doing 40B GC allocation on every frame, what is this?

Discussion in 'Editor & General Support' started by ayseaktas, Jun 13, 2023.

  1. ayseaktas

    ayseaktas

    Joined:
    Jan 18, 2021
    Posts:
    53
    Hello! I was doing profiling today and noticed that ActionScheduler.ExecutionExpiredActions() allocates 40B GC alloc per frame. It never existed before. It's been a long time since profiling, so I'm unsure what could be causing this.
    I searched on the Internet but couldn't find anything. I would be glad if you help. Thanks in advance.
    Screenshot 2023-06-13 201913.png
     
  2. ayseaktas

    ayseaktas

    Joined:
    Jan 18, 2021
    Posts:
    53
    anyone?
     
  3. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,247
    I believe that'd be Library/PackageCache/com.unity.services.core@<VersionNumer>/Runtime/Scheduler/ActionScheduler.cs but you'd have to check that in your project. I think there should also be a way for Visual Studio to pick up on code in packages so you might be able to search for the Symbol/Type of ActionScheduler via Visual Studio to find it.

    The method is named differently, at least in newer versions of that package though, so maybe your version is outdated and this issue might have already been addressed?