Announcement

Collapse
No announcement yet.

LoadAsset & cache

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • LoadAsset & cache

    hello,

    does WaveServices.Assets.Global.LoadAsset<T> cache assets? That is, if I call it let's say ten time in a frame with the same assets, does it reload it everytime from scratch from the filesystem?

    thanks

  • #2
    Hello NiG,
    The AssetContainers (Both the WaveServices.Assets.Global and the scene.Assets) implement their own cache. Everytime you load an asset from an AssetContainer it increments an internal counter and when you unload it that counter is decremented, destroying the assets in memory when it reaches zero.

    Thank you for using wave!
    Regards,
    Antonio

    Comment

    Working...
    X