-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
Currently classes such as AssetsManager and AssetsFileInstance are not thread safe.
The most interesting methods are LoadAssetsFile, GetBaseField and GetExtAsset.
Due to non-thread-safe caches inside, this does not allow parallelization of work with a large number of asset files on fast SSD.
The thread-safe wrapper over AssetManager provides no benefit due to blocking IO operations inside.
Note: if anyone wants to implement this suggestion, it is probably best to write a thread-safe AsyncAssetManager from scratch, since it is very easy to get things wrong due to the large number of collections and non-thread-safe operations inside the AssetManager.
Metadata
Metadata
Assignees
Labels
No labels