Images loaded into RAM in first spawn of actor OR every spawn?
Yes Please Games
Member, PRO Posts: 21
Does anyone know if images are loaded into RAM only during the first time the actor (with that image) is pawned or every time it is spawned? Assuming the actor has been deleted before it is spawned again
Comments
As far as what happens to a loaded image when actors are no longer using it, I'm not exactly sure and can only speculate.
It probably depends on what else is going on in the game. If your game is a memory hog, than that image is probably trashed sooner than later. If your game is small and/or efficient, it could very well live in memory for the remainder of run time.
Thanks eric. I guess this means if we have a smaller version of an actor (say a Heart actor in the HUD compared to one that can be picked up in the game), it's better performance-wise to use the same big heart image on the smaller heart actor than creating and using a smaller heart image on the smaller heart actor.
Is my understanding correct?