Intermediate
Free the textures
The card gets a new texture 20 times, as if the user picked 20 colours. The status bar shows 21 textures in memory and rising. Free each old texture when it is replaced.
Afterwards renderer.info.memory.textures must be 2 or fewer.
What Check tests
- The card still has a map
- At most 2 textures are in memory
- The last console line agrees
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.