Make Sensors aware of CameraPassCountPerGpuFlush & Scene::PostFrame#145
Make Sensors aware of CameraPassCountPerGpuFlush & Scene::PostFrame#145iche033 merged 4 commits intogazebosim:mainfrom
Conversation
Requires ign-rendering update to compile correctly Requires ign-gazebo update to run correctly Affects gazebosim/gz-rendering#323 Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
|
@osrf-jenkins run tests please |
|
looks good to me. I just merged gazebosim/gz-rendering#353 so I think we'll need to wait a day for the ign-rendering nightly debs to be available first before getting the ubuntu CI build to pass. |
|
Mmm I wasn't ign-rendering expecting to be merged so fast! :) I thought testing was going to be made "sandboxed" before merging. Until this PR is not merged, ign-rendering's will break stuff for everybody. Please change |
|
I can submit a PR if you are far away from a PC to submit that change yourself |
|
I tested the 3 PRs locally and it's working well. I was going to merge the 3 PRs in a row today but found that the CI uses nightlies instead of source builds so couldn't get this one in. hmm ok I'll set |
|
Codecov Report
@@ Coverage Diff @@
## main #145 +/- ##
==========================================
- Coverage 77.23% 77.22% -0.02%
==========================================
Files 23 23
Lines 2355 2358 +3
==========================================
+ Hits 1819 1821 +2
- Misses 536 537 +1
Continue to review full report at Codecov.
|
|
ubuntu build is passing, approving. |
🎉 New feature
See gazebosim/gz-rendering/issues/323
Summary
ign-rendering has a new feature aimed to improve performance but also fixes a few bugs related to particle simulations; which is controlled via
Scene::SetCameraPassCountPerGpuFlush.A value of 0 will use the legacy mode (i.e. previous behavior) to ease porting from older version.
A value > 0 controls performance vs RAM tradeoff (note that it is an upper limit; a very high value doesn't immediately waste RAM. See
Scene::SetCameraPassCountPerGpuFlushdocumentation for details)These changes makes sensors aware of legacy and new setting so that it adapts to both modes of operation.
This PR depends on gazebosim/gz-rendering#353 otherwise it will not compile.
Test it
Just run the code again. This PR changes SetCameraPassCountPerGpuFlush in tests explicitly to 6 to take advantage of the new feature. Set it to 0 for legacy.
Outside of tests, this PR will not change CameraPassCountPerGpuFlush (since it has to respect what the user selects); thus the default value of Ogre2ScenePrivate::cameraPassCountPerGpuFlush matters.
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge