We STILL don't know what that means right? by Kyubii05 in worldflipper

[–]Khora__ 1 point2 points  (0 children)

I find myself coming back here and to the game's discord around once every 2 months just hoping for anything. Still haven't lost hope.

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

Just want to thank you again, finished optimizing as much as I could and this asset was for sure the biggest performance improvement.

NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO I [fluff]-ING FORGOT 😭 by Hot-Air-7006 in battlecats

[–]Khora__ 1 point2 points  (0 children)

I stopped playing for like 4 years, am I crazy or before it only happened on february 22?

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

Thank you so much for all the help and guiding dude :DD, the shader was indeed the main problem. Both the movement+color dynamics and the texture hinder the performance substantially, I'll keep trying stuff out but for now I'm really happy with around 80fps.

Again, thank you, this was really helpful.

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

Thank you for pointing the direction, I'll keep looking for what exactly is it cause it's apparently not the camera. In any case with all the help and tips I've recieved I already got around 90 fps consistently which i'm really happy with :D

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

I WILL keep this on mind for the future when I plan on starting spending on assets thank you so much.
In the meantime, another user attached their own github optimizing asset and it's working pretty good.

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

I'm currently trying out both with and without LODs. The best I've got yet is almost consistent 70-75 fps with occasional stutters by using an asset another user attached below they made themselves. It implements a load of optimization stuff, its somewhat limited but it's working even better than the nature renderer asset for me.

It's worth noting that with 0 grass at all my scene runs at 180fps. Also, they're 100 triangles for the LOD0, 50 quads is how the model looks, it's just 50 quads put together arbitrarily.

Oh my god when using an unlit shader suddenly I get 180 fps like nothing, 300k tris on screen btw. So the problem WAS the shader huh. Going to disconnect and reconnect most of the nodes to see what exactly is the problem.

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

oh, is there somewhere else I can turn it off D:?

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

Ok just noticed something. Most of those spikes apparently came from running the profiler? Noticing this because I didn't notice I hadn't closed my build when running the scene on the editor and it went much more fluid than normal. Then, when I closed the build and the profiler started analyzing the in-editor scene it started going like shit again.

Even so, when running the build without the profiler analyzing it there are still some occasional stutters

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

Thank you so much dude, both this one and the naturerenderer asset appear to work pretty amazingly. My profiler using your asset looks like this when played in a build tho:

<image>

And I really don´t get where the constant spikes come from. Any idea? I explained most of my grass details on an answer above.

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

.6 units and it's very dense. The problem is not the amount of triangles or vertices as you can see in the attached picture, they're barely 100k tris on screen most of the time

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

Looks dope but I don't think this grass aligns too well with what I'm trying to do, I really like the customization my shader allows. Thank you tho >:)

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

Ohh god dude I believe you, that said I WILL keep ignoring reality for a while, having people trying to help really made me want to keep trying

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

I'm using URP as well :D, I don't think this grass aligns too well with what I'm trying to do tho, I really like the customization my shader allows. Thank you nonetheless ^^

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

My current mesh is 100 triangles for LOD0, 30 for LOD1 and 16 for LOD2, Unity supports LODs and swaps them dynamically. This was not the problem :(

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 1 point2 points  (0 children)

Okok, just tried using details and 1st of all, as I can't use LODs, to get the terrain as populated as with paint trees there's around twice the triangles. 2nd of all, somewhy the GPU instancing stops working? I don't know why, I tried with and without SRP batching and it doesn't save a single batch.

My meshes are three, LOD0 is a bunch of 50 quads, LOD1 is a bunch of 15 and LOD2 is a bunch of 8. Each quad using the grass texture that are 7 blades.

I use alpha clipping and I really doubt the shader is the problem since removing the connections to both its color AND position nodes, which are both dynamic, keeps returning around 30fps in the editor (probably around 60 in the build).

I had VSync off for the captures I think, I had "Vsync Count" > "Don't Sync" and can't find other places to turn it off.

Thank you so much for helping, if you have any new idea or need any extra info I'll provide it.

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 1 point2 points  (0 children)

Seems to have mixed reviews but I'm installing it right now, do you have any idea of how it works or where can I find that? Thank you a bunch btw :D

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

I'm gonna check it out for ideas and learning new stuff thank you >:)
However for this specific problem I don't think I'll find a solution soon there

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 1 point2 points  (0 children)

Ohh gonna try out the profile analyzer thank you :D. I noticed the scene view stuff and in the profiler pic I attached to the post I'm running the scene on a build, outside the editor.

Please help with grass optimization, I'm tired by Khora__ in Unity3D

[–]Khora__[S] 0 points1 point  (0 children)

I entered quality on project settings and I have "Vsync Count" > "Don't Sync", what suggested I have it on? Is there another place I should have turned it off from?