Search Issue Tracker

Fixed in Unity 2017.2

Votes

33

Found in

5.2.1p1

Issue ID

743462

Regression

No

[Occlusion culling] Performance spike in Culling when Camera is not rendering every frame

Camera

-

-

Priority: 3Not yet prioritized for a release

-

Severity: 3Workaround is possible

Reproduction steps:
1. Download and open the repro project form the attached link
2. Open and play the "CorridorDemo" scene (Assets\Scenes)
3. Check in the profiler, that ever 2 seconds, when FakeCamera calls to Render function, it shows a performance spike on Culling call

Note:
- When on "FakeCamera" Culling Mask is set only to "water" layer there aren't any spikes. Spikes are about from 5 ms to 18 ms.
- This culling spike problem relates to realtime reflection probes as well. Performance spikes are higher about 10 ms when realtime reflection probe (set to render all elements) is rendered faster than every 0.5 s.

Comments (7)

  1. B4163e2bfc9148aca54e20d4bcfccc7b?d=mm

    jmitcheson

    Jul 12, 2017 03:33

    In which release is this issue fixed? It is appearing on the "Known issues" list for 2017.2

  2. 3116edac0fd616317a52abea378adb5a?d=mm

    tnqiang

    Feb 23, 2017 11:54

    Occurs in Unity 5.5.0p3.
    And the cpu consume is always high.

  3. 93040e1a03e9d42936ea770b21b549fe?d=mm

    Mikael-H

    Dec 16, 2016 14:29

    Seeing this in 5.4.1f as well

  4. 525086ade71218157b3e041c48d70675?d=mm

    Rickywild

    Apr 12, 2016 12:24

    I'm getting spikes that drop CPU below 30FPS Unity 5.3.4f1 (64 - bit) In profiler found under Camera.Render->Culling->SceneCulling.

    Also off subject slightly, Canvas.Buildbatch for the UI develops these game stopping spikes.

    I've only just noticed these today as i've been waiting for Unity 5.3.5 to be released;I've been told this version will fix the Physics spikes that lag the hell out of my game.

    There sure are a lot of bugs

  5. 0464507c894bc6401bd3126d8ee452af?d=mm

    Rycons

    Feb 11, 2016 18:12

    This issue still persists on Unity version 5.3.2p3.

    Culling is frequently spiking above 90ms which is constantly stalling our game.

  6. Afd31c1fa301306066ef3c1c4dd6ac8d?d=mm

    blunzn

    Feb 10, 2016 21:37

    There is a long thread about this, it seems to be a more general threading problem, where "WaitingForJobs" is causing occasional hangs.
    See @LeonH's comment here: http://forum.unity3d.com/threads/occlusion-culling-cpu-spike-in-profiler.314978/#post-2347076

    And yes it happens in an empty scene too. See my comment here:
    http://forum.unity3d.com/threads/occlusion-culling-cpu-spike-in-profiler.314978/#post-2482733

  7. C35b9264646fd1b72f6ccfca2622c409?d=mm

    AlanMattano

    Jan 30, 2016 02:45

    Look if you find them in an empty scene.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.