-
Notifications
You must be signed in to change notification settings - Fork 50
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
Conserative resource creation #199
Merged
Merged
Conversation
This file contains 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
Duttenheim
added
bug
Something isn't working
category: graphics
Graphics
category: concurrency
Data/condition races
debt
Technical debt
labels
Nov 22, 2023
Split heaps and pools such that pools can track how much heap memory they are using.
This switch will allow the resource loader to stream in it's resources. What it actually means is that success will only be called once all mips are loaded.
…for constant buffers
Lod requests work, LodMask is dependent on the resource being loaded so that has to be fixed
This requires us to remember what we parsed from the model and actually only apply it when the mesh finishes loading. It also requires ModelContext to update its references of the mesh, which we currently do every frame.
…tures are loaded.
Instead, the PendingResourceLoad package contains if the resource is initial or should get updated, which makes it easier to handle LOD streaming
Also handle alignment properly
Instead of having a per-frame upload buffer, we have a single pool from which we allocate. Allocations are stored by frame and cleared when that frame has finished, then returns the ranges to the pool.
Duttenheim
force-pushed
the
conserative-resource-creation
branch
from
November 22, 2023 20:42
d2659d9
to
c9dc3bb
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
category: concurrency
Data/condition races
category: graphics
Graphics
debt
Technical debt
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.
Massive refactor of resource loading and streaming.
TODO: