Repository navigation
Step 1: cache displayed geometry and draw buckets outside map locks - #599
Merged
Merged
Conversation
This was referenced Oct 31, 2026
Contributor
Author
|
It could be up to 1.5x faster than the legacy v106 version for larger datasets. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 1 rebuilds and uploads unchanged point/line geometry each frame, and bucket drawing holds the map mutexes needed by odometry. Retain GPU geometry until its source or display settings change, and prepare/draw bucket geometry outside those locks.
Fixes #594. Follows the correctness fix in #590.
Odometry math and synchronized trajectory publication are unchanged. GPU work and resource cleanup stay on the GUI thread. Only seven functional source/header files are included; there are no added tests, scripts, benchmark data or formatting-only line-ending changes.
Validation: Release builds passed for Step 1, the raw data viewer and Step 3; existing Step 1 tests passed (24 cases / 35 assertions). clang-format 21.1.8 and git diff --check passed, with CRLF preserved. Local graphical comparisons gave zero differing pixels for the tested layers, including normals and covariances; unchanged cache draws performed no geometry uploads.
One controlled recording comparison, processing time only:
This pair reduced processing time by 32.0%. Both runs used the same algorithm/libraries, saved parameters and input, processed 3,927 workers / 78,540 poses, performed 686,454 iterations and produced byte-identical full-precision pose dumps. Neither hit the optimizer time limit.
Both used a workspace input copy and hidden window targeting 60 FPS, with initial points, indoor buckets, trajectory points and intensity shading enabled. Loading and final result writing were excluded; GPU memory was not measured. This is one paired comparison. Visible-window checks of the actual gizmo/consistency workflows and repeated timing runs remain pending.