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

Unload assets when leaving room #20

Closed
wants to merge 4 commits into from

Conversation

sky-is-winning
Copy link
Contributor

By keeping track of every asset the client has loaded, we're then able to unload every unneeded asset when the player leaves the current room. This massively decreases VRAM usage, but increases loading time when users re-enter a room they have already visited.

Fixes #18

@tomas-correia
Copy link

tomas-correia commented Aug 15, 2024

Could the unloadPrevious method possibly be moved and adapted to a more general scene class like BaseScene, so that not just room scenes are able to remove their textures (the Login and Start menus, for example)

@indexxing
Copy link

still not merged 😢

@sky-is-winning
Copy link
Contributor Author

Addressed in 0df2a7a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants