In my game I have many weapons, each one with its own resources. The player can switch weapons at any time during the game.
I have 2 options about this:
-
Load the resources of all weapons from the start (images, sounds, animation data) and then call them when the player wants to change weapon(load ALL in memory).
-
Just load current weapon’s resources, and load the resources of a new weapon if player change weapon (making delete and new…). Weapons can be changed at any time.(less resources loaded in memory, but I have to load resources every time weapon is changed during the game)
Which one is better for performance? If i want to Have 60 fps, not less.
Thanks.