klepto2 Posted October 12, 2023 Share Posted October 12, 2023 If i load the 'The-Zone"-map the performance for navigating in the Perspective viewport is fast. But when i select the terrain and try to navigate, the controls begin to feel laggy. If i select any other element in the scene, the camera-navigation is smooth again. Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Josh Posted October 12, 2023 Share Posted October 12, 2023 This occurs because the selection outline works by rendering the object to a second camera. I suspect the bottleneck there is the fragment shader. Maybe I can just use the depth buffer and disable the fragment shader, since it isn't needed in the selection outline pass. 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...
CJO Games Posted November 15, 2023 Share Posted November 15, 2023 Obviously, this is caveat-ed by the fact that I am running the engine on Linux, however this was an issue too on Windows hence the topic... When the terrain is selected - for instance for painting textures; sculpting etc. The editor is extremely slow making the painting process for detail layers (paths for instance) hard to complete. Quote Link to comment Share on other sites More sharing options...
klepto2 Posted November 15, 2023 Author Share Posted November 15, 2023 Yeah i also noticed that and also filed a bug report: An idea for @Josh: Maybe just render a simple plane with the terrain matrix applied to the selection buffer. This will not be optimal as the outline is just flat, but will hopefully solve the bottleneck. Or there must be some other indicator for terrain selection. 1 Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Josh Posted November 15, 2023 Share Posted November 15, 2023 Duplicate report, as mentioned above. This is a design issue and I don't know yet what the solution is. I also wonder if making terrain selectable at all is a good idea, since it can be awkward during editing. I can think of a few solutions: Make a separate selection tool. This effects the entire workflow and I don't think I like the idea. Just allow one terrain per level, like Leadwerks does. Make a selection lock button. Does not solve the problem described here, but it does solve the issue of accidentally deselecting / selecting the terrain. Make selection require holding down the control key. I'm cautious to make any changes right now until we figure out the right decision to make. 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...
CJO Games Posted November 15, 2023 Share Posted November 15, 2023 How about a terrain edit mode that means the terrain selection is only available at certain points like for instance create terrain with a add/move/edit (size, height, import etc) selection and allow the painting of the terrain (and presumably the vegetation layers) to happen as it does now as part of the general workflow? I get the feeling that the issue is exasperated by the terrain being selected and the mouse tool panning over that so not having the terrain selected unless you need to move it or edit its size or add more terrain might help... Quote Link to comment Share on other sites More sharing options...
klepto2 Posted November 21, 2023 Author Share Posted November 21, 2023 Just a sidenote: One thing that highly improves the editing (at least in my case) is to switch to single viewport while editing the terrain. Which makes absolutely sense, as only one viewport needs to handle the costly wireframe selection rendering. Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Josh Posted December 15, 2023 Share Posted December 15, 2023 On 11/21/2023 at 5:46 AM, klepto2 said: Just a sidenote: One thing that highly improves the editing (at least in my case) is to switch to single viewport while editing the terrain. Which makes absolutely sense, as only one viewport needs to handle the costly wireframe selection rendering. I changed it so that even if the option for "render during drag" is enabled, the terrain editing will not cause other viewports to redraw until you release the mouse. I believe this fixes the issue reported here. 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...
CJO Games Posted December 16, 2023 Share Posted December 16, 2023 Will test and confirm... Quote Link to comment Share on other sites More sharing options...
CJO Games Posted December 16, 2023 Share Posted December 16, 2023 Sorry Josh, this doesn't seem to have solved the issue. Even with an (admittedly very large) empty map it is still very slow... I have removed all textures so this shouldn't be an issue when you test your end but hopefully you will be able to reproduce this at your end - as soon as the terrain is selected for painting it becomes very slow. 1451298458_Mountainsandtarns2048.zip 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted December 16, 2023 Share Posted December 16, 2023 Oh wow, simply having your terrain selected makes the rendering super super slow if any of it is onscreen... 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 December 16, 2023 Share Posted December 16, 2023 The problem is not related to culling or the vertex pipeline, because if I fly underneath it and look up so I am looking at the backside of the polygons, it runs just fine. 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 December 16, 2023 Share Posted December 16, 2023 merging these reports... 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 January 23 Share Posted January 23 bump... 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...
CJO Games Posted January 24 Share Posted January 24 Thanks for the reminder this seems better - I've been using detail painting (paths etc.) on the map above and some others too and it appears this is fixed? :-) Quote Link to comment Share on other sites More sharing options...
CJO Games Posted January 24 Share Posted January 24 Yep! Definitely working and it makes the editor soar! Wow! Thanks Josh exactly what I was hoping for... Quote Link to comment Share on other sites More sharing options...
Josh Posted January 24 Share Posted January 24 I think there is still an issue. I just bumped it because this is one of the things that can maybe be solved in a couple days. The remaining bugs in this forum are all more involved, and I try to do the easiest fixes first. 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...
CJO Games Posted January 24 Share Posted January 24 Huh well if its not been looked at or fixed then the issue may have gone away from something else being fixed as there is a huge difference between the last time I tried this map and now - I can work with it and I couldn't so something has changed somewhere! If I find anything else I'll comment here again... 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted January 25 Share Posted January 25 I had tessellation on high. 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 January 25 Share Posted January 25 On 12/16/2023 at 4:44 AM, CJO Games said: Sorry Josh, this doesn't seem to have solved the issue. Even with an (admittedly very large) empty map it is still very slow... I have removed all textures so this shouldn't be an issue when you test your end but hopefully you will be able to reproduce this at your end - as soon as the terrain is selected for painting it becomes very slow. 1451298458_Mountainsandtarns2048.zip 9.96 MB · 1 download The map posted above runs fast when it is not selected, but performance slows down badly when it is selected. Behavior seems very odd, like it is disproportionately slower than simply a 2x render should be... 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...
CJO Games Posted January 25 Share Posted January 25 Here is the map (without textures/mats) as of yesterday. I wonder if the issues still exists with this zip?Mountains and tarns 2048.zip Quote Link to comment Share on other sites More sharing options...
Solution Josh Posted January 25 Solution Share Posted January 25 The terrain shader was not set up to handle when a camera has lighting disabled, so it was just accessing random video memory in the light render function. It's super fast now. You need to sync your project to get the new shader. 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...
CJO Games Posted January 25 Share Posted January 25 OK dokey will do...thanks (as always!) Quote 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.