Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Run the profiler in a build for players and log the data to a file?

Discussion in 'Scripting' started by Olipool, Apr 18, 2023.

  1. Olipool

    Olipool

    Joined:
    Feb 8, 2015
    Posts:
    320
    Hi all,

    I am having some issues with my game that some players report very high CPU usage. I know I did not optimize anything and my draw calls are way too high but with my i5 laptop I am getting around 90fps but some players have 16 CPU cores running at 100% and with a modern graphics card only getting 40fps.

    It may be that the game is built with Unity 2018 and is too old for so many cores but to get a deeper understanding of the problem I was wondering if I could make a build that runs on the players' machine and profiles data like the profiler in the editor. I could not find anything in the manual so here is my question ;)

    Thanks!

    edit: I just saw a video about the profiler API since 2020 so I guess THEORETICALLY I would have to update the game to 2020. Any other options?
     
    Last edited: Apr 18, 2023
  2. AndyBarnard

    AndyBarnard

    Unity Technologies

    Joined:
    Nov 12, 2019
    Posts:
    14
    MartinTilo and Olipool like this.
  3. Olipool

    Olipool

    Joined:
    Feb 8, 2015
    Posts:
    320
    Oh, thanks a lot, I will try that!
     
    AndyBarnard likes this.