-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Solari BLAS compaction #20457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Solari BLAS compaction #20457
Conversation
|
||
/// After compacting this many vertices worth of meshes per frame, no further BLAS will be compacted. | ||
/// Lower this number to distribute the work across more frames. | ||
const MAX_COMPACTION_VERTICES_PER_FRAME: u32 = 400_000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be a plugin setting or resource?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually yes, for now nothing in solari is configurable. It's in the tracking issue.
blas_manager.compaction_queue.pop_front() | ||
{ | ||
// Stop iterating once we loop back around to the start of the list | ||
if Some(mesh) == first_mesh_processed { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if everything is already maximally compacted, this will iterate all entities every frame right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once something is compacted, it stops getting added back to the compaction queue. So the list would be empty.
No compaction:

Compaction:
