-
Notifications
You must be signed in to change notification settings - Fork 82
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
[Feature Request] Async options for UnloadDirectory #736
Comments
i'm curious about the
part of this in libultraship/src/resource/ResourceManager.cpp Lines 226 to 239 in 99d78d6
so the following that pattern to "make unloading async" (just adding unloads to a queue instead of unloading on the same thread) wouldn't address the file listing issue it's also probably worth looking into ways to make the getting some measurements on libultraship/src/resource/archive/ArchiveManager.cpp Lines 79 to 85 in 99d78d6
and libultraship/src/resource/archive/ArchiveManager.cpp Lines 69 to 77 in 99d78d6
would be good if the performance issue is only in the version with a filter, we could look into adding (less robust but more performant) alternatives to glob (after reading https://research.swtch.com/glob i don't think we can get a much faster glob implementation than https://github.com/Kenix3/libultraship/blob/99d78d61380048bbcec2f8364f5d876681fd982e/src/utils/glob.c) |
I think the issue is much more prevalent in the filter version, yes. |
The file listing in the Directory commands is very process intensive, and "unloading" assets should never have to block the game loops, so an option to have that happen on a separate thread rather than on the main one would be nice to have.
The text was updated successfully, but these errors were encountered: