Reduce PagedLOD draw calls #1671
-
|
Hello, we are working on railway simulator and currently for static objects we are using matrixTransforms that are pointing on PagedLODs (same PagedLODs for same objects) but RenderDoc shows that this way every pagedLOD is rendered in different draw call, how can this be optimized so the same objects would be rendered in only one draw call? And how instancing could be realized here? And other source code can be viewed at https://github.com/maisvendoo/RRS/blob/v1.9.0-devel/viewer/src/RouteViewer.cpp |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
You explanation is confusing, makes me wonder if you might be misusing PagedLOD. Normally I'd expect PagedLOD to be used within a hierarchy such as a quad tree, so they are used as internal nodes rather than ones placed nearer the leaves of the scene graph. My best attempt and making sense of your explanation and the code kinda looks like you are instancing a subgraph many times placing it in different positions in the scene, with the subgraph containing a PagedLOD. This really isn't how I'd expect PagedLOD to be used. What are you using PagedLOD for? What subgraphs are you putting underneath a PagedLOD? |
Beta Was this translation helpful? Give feedback.
You explanation is confusing, makes me wonder if you might be misusing PagedLOD.
Normally I'd expect PagedLOD to be used within a hierarchy such as a quad tree, so they are used as internal nodes rather than ones placed nearer the leaves of the scene graph.
My best attempt and making sense of your explanation and the code kinda looks like you are instancing a subgraph many times placing it in different positions in the scene, with the subgraph containing a PagedLOD. This really isn't how I'd expect PagedLOD to be used.
What are you using PagedLOD for? What subgraphs are you putting underneath a PagedLOD?