Hey guys, I'm wondering if you have any experience with stuff like this. In Unreal Engine 3 I have this level that has some farms. The farms have interactive foliage actors, which are basically decorative plants that you push around when you walk through them. Individually they are very cheap to draw. But here I have about 2000 of them on screen and my FPS drops from 60 to 40 when I'm on the farm. My rig is a 12-gen i7 with an RTX 3060.
View attachment 48927
In Unreal Engine 3, foliage is very very cheap to draw because it's all drawn as one instance. If they don't have collision, and they're low-poly like the grass, then they're almost free. Static meshes are a little more expensive. Interactive foliage actors are just a little more expensive than that. The vegetable field isn't bad. You can walk through that and push the plants around. I have levels with tons of interactive foliage like that and it renders just fine. The wheat is really costly though because of how many individual interactive actors are there.
Can you tell me some games that you think did wheat fields well? Are there any low-poly cartoony wheat fields you can show me? Were they interactive or purely decorative? I'm thinking I might have to replace all of my fun interactive wheat with regular non-interactive foliage. Do you know of any tricks to get the cost down?
Edit: Here it is in action.
A low-res gif doesn't really do it justice. It really is kind of a cute, fun effect. Maybe it's too subtle though. I'm going to see if I can make the mesh bigger, incorporating more stalks, so I can cover the same area with few meshes and thus fewer draw calls.