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

massive Profiler Spike (FPSDisplay.ONGUI)

Discussion in 'Immediate Mode GUI (IMGUI)' started by TKDHayk, Dec 19, 2017.

  1. TKDHayk

    TKDHayk

    Joined:
    Dec 22, 2015
    Posts:
    129
    I'm getting somewhat unpredictable but drastic profiler spikes, all thanks to (FPSDisplay.ONGUI).
    the game is An Oculus FPS and this happens when enemies die very close to the Player. What on Earth is this? I have a canvas attached to the camera to show FPS (this is how I noticed the FPS spikes to begin with).