Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
VRfriend2016X's avatar
9 years ago
Solved

Why does Grass in Unity slow down the FPS , any workaround?

The basic terrain grass of Unity makes the framerate go down considerably. I discovered that. at first i thought it was the speed trees but no it wasn't. I deleted the grass and the framerate came back to normal. Well who knows if the trees too. but the grass definintely . Is there a workaround? or should i just not use grass?
  • Try changing the detail resolution and the detail resolution per patch. In general, Rift tends to be texture bandwidth bound, so heavy overdraw with alpha cutouts and extra lookups are likely to create problems (as well as add draw calls, utilizing the CPU more). If you're going for dense grass, you may be able to do better with opaque grass and a DX11 instancing approach. I haven't tried it, but this grass package seems to be working well for some people.

4 Replies

Replies have been turned off for this discussion
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    Try changing the detail resolution and the detail resolution per patch. In general, Rift tends to be texture bandwidth bound, so heavy overdraw with alpha cutouts and extra lookups are likely to create problems (as well as add draw calls, utilizing the CPU more). If you're going for dense grass, you may be able to do better with opaque grass and a DX11 instancing approach. I haven't tried it, but this grass package seems to be working well for some people.
  • Ok i bought that asset and it was slower framerate than Unity's own grass. Any tips on why it's so slow?
    It says to disabled cast shadows i did, and it still ugly framerate
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    Try varying the settings I mentioned for the standard terrain or, in the DX11 grass package, vary smoothing, LOD behavior, density, type, and lighting mode. Keep an eye on the GPU profiler to see what helps.