Search Unity

gpu profiler - when?

Discussion in 'Universal Render Pipeline' started by laurentlavigne, Jul 21, 2020.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,364
    so this scene that renders at 45fps suddenly renders at 32 fps, so i fire up the profiler and add GPU, no GPU for URP
    that's kind of important, when you make games ...
     
  2. izym

    izym

    Unity Technologies

    Joined:
    Jul 27, 2013
    Posts:
    48
    The profiler should work with URP. Have you made sure to do the following for your project?
    • Disable graphics jobs
    • Run in playmode or standalone player
    • Enable GPU counters in project settings
     
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,364
    graphics job was turned on
    yellow triangle says it can't work with vulkan so i switched to autoAPI
    where is GPU counter?
    after just turning those off profiler works, thanks!
     
    MartinTilo likes this.
  4. izym

    izym

    Unity Technologies

    Joined:
    Jul 27, 2013
    Posts:
    48
    Sorry, I believe it's the option at "Project Settings > Player > Other Settings > Rendering > Frame Timing Stats". Glad to hear that you got it working!
     
  5. JesOb

    JesOb

    Joined:
    Sep 3, 2012
    Posts:
    1,109
    Can it work on android for gles or vulkan?
     
  6. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,364
    Gotcha. that was off even when gpu profiler is showing a graph.
    Interesting to see the framerate tank by 20% when jobs is off, I never noticed any effect until today.
     
  7. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,460
    is that while having the GPU Profiler module added to the Profiler? Because the GPU Profiler impacts the performance as well.

    Vulkan is currently not supported, GLES can be supported but having
    Frame Timing Stats
    enabled can actively conflict with GPU profiling support for it if GL_EXT_disjoint_timer_query is available.

    However, try it and the GPU Profiler Module will tell you all the reasons it can know about why it might not work for the current setup. The information provided by the module will also be more up-to-data and version specific than a forum post ;) (Caveat: The GPU Profiler Module messaging is only available from Unity 2019.3 and up. Before that it'll just guess and blame the drivers...)
     
  8. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,364
    even with dev turned off
     
    MartinTilo likes this.