Does Godot cache "load"ed resources?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jarlowrey

I am loading some resources dynamically (using load instead of preload) because it is simpler to do so in code. However, I am worried that doing so is not performant. Are subsequent calls to load as resource (memory/cpu) instensive as the first call?

:bust_in_silhouette: Reply From: hungrymonkey

load is actually cached.

Is there some way to override this? I am loading in scenes that use RNG to size the objects and my RNG is the same every time. (am using Randomize()) - that is, load and preload are only doing it once, and getting those randoms once, then caching them and that’s killing my randomized dreams, dig? :slight_smile:

combatvolcano | 2020-10-15 08:02