Proper use of Monarch.unload (SOLVED)

Hi there,

I’m using Monarch as screen manager with collection proxies for each scene in the game.

I’m trying to optimize my game’s performance and I was wondering if I’m actually doing so by using Monarch.unload after I switch to another scene.

For example I’m in title scene and go to settings in a different scene using

monarch.show("settings", {clear = true})

Is it a good practice to use

monarch.unload("title")

after switching scenes?

Thanks :slight_smile:

Monarch will unload and load screens as they are hidden and shown. You do not need to do that yourself.

The explicit unload() function can be used if you change your mind after doing a manual preload() of a screen.

2 Likes

Thanks @britzl as always helpful :smiley:

1 Like