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. Dismiss Notice

How do i move the time line properly in the Profiler ?

Discussion in 'Editor & General Support' started by Sahkan, Aug 3, 2014.

  1. Sahkan

    Sahkan

    Joined:
    Mar 3, 2013
    Posts:
    204
    It records a lot, but when i pause, i can move the time slider only on a certain frames and cant see what happened before it, how do i move the time line to show me everything ? And why is it so hard to find a function i was using ?! "SetActive()". used it once or twice in 5 second, and can't see it in the profiler, wtf?...
     
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Maybe SetActive() isn't taking enough CPU time to appear in the profiler?
     
  3. Sahkan

    Sahkan

    Joined:
    Mar 3, 2013
    Posts:
    204
    SetActive is very heavy, it shows a big jump in the graph when i'm using it.
    And why can't i scroll back in the timeline ? i feel like i need to play with it, like : Do action, pause quick ! before it goes away ! this is ridiculous no?...
     
  4. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    So, what I usually do is open the profiler window, start the game, play for some time and then press pause. I then switch to the profiler window and can click anywhere in the timeline, or use the left and right cursor keys to move around the capture. (There are also left and right buttons top right of the window). Moving around updates the frame number top right and the profiler data updates to show the details at the current time. The profiler could capture every single frame and store that show you can see everything that was captured, but then the profiler would eat all that precious memory. :-(
     
  5. Sahkan

    Sahkan

    Joined:
    Mar 3, 2013
    Posts:
    204
    I think that it would be fair to let the user adjust the amount of frames the profiler will save, with a memory warning message of course .
    When i'm profiling a game that meant for a smartphone, and i build it in my pc, i have enough memory to save more then just a few frames...
     
  6. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Sounds plausible. Use the feedback website and either submit a feature request, or vote if this issue has already been requested.
     
  7. Sahkan

    Sahkan

    Joined:
    Mar 3, 2013
    Posts:
    204
    Good idea, done :)