Conversation
Fix dynamic mesh handling when queued rendering is enabled. Track whether a mesh build has already been queued so multiple partial Draw() calls do not enqueue duplicate builds for the same dynamic mesh. Reset the build state when a new dynamic mesh is acquired or its buffers are detached.
dimhotepus
force-pushed
the
fix/multicore-rendering
branch
from
September 19, 2026 14:21
847e6f4 to
52e3063
Compare
dimhotepus
self-requested a review
September 20, 2026 15:26
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.
Summary
Fix dynamic mesh handling when queued rendering is enabled.
Changes
Track whether a mesh build has already been queued so multiple partial
Draw()calls do not enqueue duplicate builds for the same dynamic mesh.Reset the queued-build state when a new dynamic mesh is acquired or when
its buffers are detached.
Reason
A dynamic mesh could receive multiple partial
Draw()calls before thequeued build was processed. This could enqueue the same mesh build more
than once and lead to rendering corruption when multicore / queued
rendering was enabled.
Testing
Tested with queued rendering enabled in the HL2 x64 build. The previously
observed visual glitches no longer occur.