Skip to content
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

META WIP even less stable and more experimental changes to studio model tracking #543

Merged
merged 9 commits into from
Aug 28, 2023

Conversation

w23
Copy link
Owner

@w23 w23 commented Aug 22, 2023

  • Clear studio submodule cache
    • on shutdown: currently we crash on assert on shutdown
    • (optional) every few frames, to keep memory usage low. Figure out what the best strategy here is.
  • speeds. counters for cache size

w23 added 8 commits June 20, 2023 10:13
also comment on the upcoming submodel caching plans
Basically go through all sequences and bones, and try to find out whether a given submodel is affected by animation frames.
Detect whether studio model has changed, and replace it with a new one.
It does (as predicted) run into a gpu sync issue if reuse happened while previous frame with the old user is still being drawn.
Gives out individual render submodels for dynamic ones, receives and remembers them when they are not needed anymore.

Stores only one render submodel for static ones. Reuses/instantiates it for everyone.
Add render refcount to submodels to diagnose when it can't properly clear things due to them being used somewhere still.

Also add `speeds.submodels_cache_{dynamic,static}` counters to show how many submodels render models have been allocated.
@w23 w23 marked this pull request as ready for review August 28, 2023 15:59
@w23 w23 merged commit 2dc6854 into blas-mgmt Aug 28, 2023
8 checks passed
@w23 w23 deleted the blas-mgmt-studio-cache-wip branch August 28, 2023 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant