# Reloading Textures Doesn't Work?

**URL:** <https://phaser.discourse.group/t/reloading-textures-doesnt-work/2362>\
**Category:** Phaser 3\
**Created:** [May 6, 2019, 7:12pm UTC](https://phaser.discourse.group/t/reloading-textures-doesnt-work/2362 "2019-05-06T19:12:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterdfinn](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@peterdfinn](https://phaser.discourse.group/u/peterdfinn)\
**Post date:** [May 6, 2019, 7:12pm UTC](https://phaser.discourse.group/t/reloading-textures-doesnt-work/2362/1 "2019-05-06T19:12:33Z")

</div>

I’m using Phaser 3 for a project that needs to run on a low-end device with a small amount of RAM. As such, I need to be very careful with how much memory our game uses at any time. To that end, I would like to remove textures from the Texture Manager when they’re not needed anymore (i.e., when the scene they were loaded for is no longer being rendered).

However, I discovered that I cannot seem to reload the textures when I want to re-enter the scene. I set up my scene to, upon being put to sleep, call TextureManager.remove(key) for each key I used to load textures in the preload function. Later, when I want to re-enter that scene, I call SceneManager.start(sceneKey), and this calls the preload function and the create function, so all seems well and good, but the scene doesn’t render and I get two errors at the console:

 ![Phaser_3_errors](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/b/b90492b006cbc089408431b4737ff36d58a372db.png)

Does anyone understand why this is happening? Is there a way to clean out the textures from memory and re-load them in when needed?

---

<div class="post-metadata">

**Author:** ![prob](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/prob/32/628_2.png) [@prob](https://phaser.discourse.group/u/prob)\
**Post date:** [May 6, 2019, 8:05pm UTC](https://phaser.discourse.group/t/reloading-textures-doesnt-work/2362/2 "2019-05-06T20:05:56Z")

</div>

I believe in order for what you want to accomplish, you’d need to stop the scene rather than sleeping it.

---

<div class="post-metadata">

**Author:** ![peterdfinn](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@peterdfinn](https://phaser.discourse.group/u/peterdfinn)\
**Post date:** [May 7, 2019, 8:04pm UTC](https://phaser.discourse.group/t/reloading-textures-doesnt-work/2362/3 "2019-05-07T20:04:09Z")

</div>

Thanks for the suggestion, @prob. I found a solution that works is to create scenes when I need them, destroy them when I leave them, and when I want to re-enter a scene, simply re-add a newly created Scene object to the SceneManager.
