Show Posts
|
|
Pages: [1]
|
|
1
|
Game Development / Performance Tuning / Re: Game Freeze!
|
on: 2004-08-10 02:03:08
|
|
Well, say an explosion animation may occur several times on the screen, so one animation object is created and a clone of it is used for another explosion.
Now, I've read on another topic that the maximum size for images to be stored in accelerated memory is 256x256. I've changed my animation images so that they fit this criteria. I also disabled 2 sound clips which were played on each ship explosion and bullet fired by the player. I've ran the game several times and it hasnt frozen, but I'd still like to know if there's a better way of loading animations.
Regards.
|
|
|
|
|
2
|
Game Development / Performance Tuning / Game Freeze!
|
on: 2004-08-10 00:45:47
|
|
Hi all,
I'm developing space-shooter style game and I'm using a 3D program to generate some very neat animations for the game. After adding many animations to the game, it started to freeze a heck of alot during game play, and it'll remain frozen (i.e. I have to shut down the process).
This might have something to do with the fact that each animation is a good 120 frames of PNG images with alpha transparency. A couple of things which have already been done:
1. The images are compressed as much as possible in terms of size. 2. All of the images are only loaded ONCE and are stored as a static "animation" object which is cloned each time the animation needs to occur. 3. The heap size of the JVM is already being raised to 256 MB, which is pretty darn high!
So if anyone has any suggestions regarding faster, more effecient proper animation it would be greatly appreicated.
Thanks guys!
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|