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

Performance bottleneck: DrawLines.OnPostRender()

Discussion in 'WebGL' started by Zucchinipi, Mar 21, 2020.

  1. Zucchinipi

    Zucchinipi

    Joined:
    Jan 12, 2017
    Posts:
    9
    The profiler shows that my game is bottlenecked by Camera.Render > Drawing > DrawLines.OnPostRender(). Would anyone be able to help understand what this suggests I should investigate? I can't seem to find tips on how to approach optimizing this online.

    I'm running my game as a WebGL build on Firefox. It runs smoothly in-editor, but at ~15fps as webgl.

    Screen Shot 2020-03-20 at 10.08.45 PM.png
     
  2. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    Are you using GL Lines in your game or an asset that uses this feature e.g. wireframe, vector graphics?
     
  3. Zucchinipi

    Zucchinipi

    Joined:
    Jan 12, 2017
    Posts:
    9
    Op yes forgot to update, an asset I had downloaded was drawing GL Lines, but since I didn't write it I didn't recognize the names in the call stack and assumed it was something under the hood. Thanks anyway!