Stijmalti / Space-Invaders--Simple--Stijmalti

This will be a simple "Space Invaders" style game, it will have pixilated images and low quality sounds to keep with the original Space Invaders game. The player will need to beat all three levels to win the game.
0 stars 0 forks source link

High memory usage. #1

Open Stijmalti opened 11 years ago

Stijmalti commented 11 years ago

This game is designed to work on low end pc's and other mobile devices. The problem is that after some time there will be a memory spike as the objects created and that are not on the screen are not deleted.

highmemoryusagebug

Stijmalti commented 11 years ago

For this problem I added a new script for the aliens,bombs,lasers so that when they are off screen they are deleted.

// Void OnBecameInvisible() { Destroy(gameObject); }