Andy90 Posted July 11 Share Posted July 11 Hello, according to the discord i post here also an bug report. I got the feeling that there is an issue with the foliage system at the moment. If you create an scene with just grass and tree's the frames drops arround 90 fps. I attached an map wich is using the nature dlc stuff so you can test it for yourself. test.zip Quote Link to comment Share on other sites More sharing options...
Josh Posted July 11 Share Posted July 11 I think the primary bottleneck in this scene is shadow rendering. There are two ways to adjust this: Disable shadows on the grass mesh layer. Decrease the shadowmap resolution. There is currently no command to do this, but I plan to implement one. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted July 11 Share Posted July 11 By disabling grass shadows, decreasing the grass range, and setting the shadowmap size to 512 I got the framerate up to 280 on an AMD 6600. Something like this is probably what you would want to medium-low settings. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted July 11 Share Posted July 11 Some maybe related links for further research: https://forums.ogre3d.org/viewtopic.php?t=45389 https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=ef95d232b78146cc16e6212cc062fb622136f3f3 Quote It is therefore recommended to render all alpha test, texkill or alpha to coverage primitives after opaque primitives in order to increase the chances of those being rejected by HiZ. This includes the rendering of a Pre-Z pass. This is interesting, but in this scene I don't think it would make any difference. Quote If you’re using alpha test for foliage or similar and the shading is sufficiently advanced it may be beneficial to do a Pre-Z pass with the alpha test, then the main shading pass with depth writes disabled. On the X1xxx series the best method for the second pass would be to use a depth test of EQUAL, whereas on earlier hardware it would probably be better to repeat the alpha test in the second pass but stick to LESSEQUAL for the depth test. This is exactly what Ultra already does, except I saw no difference when the alpha discard is eliminated in the second pass. Quote It easily happens that depth writes are left on for some rendering where this is not required, for instance in multi-pass rendering or after a Pre-Z pass. In many cases this has little impact on performance since the hardware optimizes away redundant depth writes anyway, but there are situations where this could still hurt performance, for instance updating the depth buffer when the resulting depths are never going to be read, like when rendering a transparent HUD at the end of the frame. Might be worth testing, if I am not already doing this. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted July 11 Share Posted July 11 Something else I randomly came across from Epic: Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Andy90 Posted July 11 Author Share Posted July 11 This sounds intresting. sadly i have not that much clue from shadows. Also there are ways for order independent transparency. Im not 100% if it will help on the performance to this problem but i found a few months ago something intresting S4385-order-independent-transparency-opengl.pdf (gputechconf.com) Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted July 12 Share Posted July 12 6 hours ago, Josh said: Something else I randomly came across from Epic: This is half the reason why I want to make grass that is pure geometry and does not discard pixels. It seems counter intuitive but in some cases it seems that having more triangles is better than using billboards. Quote Link to comment Share on other sites More sharing options...
Josh Posted July 12 Share Posted July 12 One thing to consider when creating models in the future is that a leaf planes that uses more polygons in order to more closely conform to the bounds of the solid pixels in the texture will probably render faster than a simple rectangle. You are increasing the vertex count, which is fairly low-cost, and decreasing the pixel count, which is fairly expensive. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Solution Josh Posted July 17 Solution Share Posted July 17 Default directional light shadow map resolution is changed to 1024x1024 per stage in the first build of 0.9.7. I believe this solves the major bottleneck. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.