Skip to content

[Suggestion] Thread safety #124

Description

@Albeoris

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions