Pages: 1 [2]
|
|
|
Author
|
Topic: Project Aqua: SDL vs. Allegro (Read 10448 times)
|
|
GeomanNL
*Many bubbles*
Offline
Gender:
Posts: 167
I love YaBB 1G - SP1!
|
How often are all characters displayed at once on your screen, in all 8 directions ? How often do you actually cycle through all 300 animated frames ? If you display only a fraction of this each frame, then loading from disk might actually work.
Or are you rendering huge fights with dozens of units displayed on screen ? In this case, you might consider reducing animation detail because the more units are displayed, the less someone will notice the details associated with each unit.
You could even decide to reduce the animation detail only if there are many units displayed, and increase it again if there are fewer units. I doubt anyone will be bothered by such a thing. This would mean, discarding data while the game is running, and reading it back again when needed. Disks are pretty fast, it won't reduce performance much.
Otherwise, you'll have to go 3d and discard a lot of your work. Animation in 3d is less memory intensive. However, 3d is much less efficient in terms of computing power, so you'll not be able to render many detailed units.
|
|
|
Logged
|
|
|
|
|
|
|
Deus Siddis
Enlightened
Offline
Gender:
Posts: 1387
|
Wow, that is a dense mesh.
Was it made entirely in Blender 3D? If so, I wonder if some of your renderings could be submitted as possible blender gallery art. They could maybe have "Project Aqua" in their sigs, as a promotion (if they were accepted.)
|
|
|
Logged
|
|
|
|
|
Deus Siddis
Enlightened
Offline
Gender:
Posts: 1387
|
Oh. . .well nevermind then.
|
|
|
Logged
|
|
|
|
Death 999
Global Moderator
Enlightened
Offline
Gender:
Posts: 3873
We did. You did. Yes we can. No.
|
Here is how SPECTRE works and then why it failed- **Sprite is basically an array of Quads binded to a seperate texture. Offset is an integer that can be set which tells which indice in the quad array to draw. If you want to have animation you change the offset and no slow-down from blitting occurs. Sprite also has its own transform matrix, a ZDrawOrder variable, and other handy flags. How many Quads are there? I don't know what a Quad is, but it sounds like there are a lot of them. Or are there just a few, and there are a lot of references to each one? If you have millions of identical references, and fewer than 256 distinct Quads, then you could make an array of them and reference them with a byte index rather than full object reference. That'd shrink their memory footprint by a factor of 4.
But our Map's alone can take up to 10 MB in memory, which map? You didn't mention a map. Bitmap?
And then the amount of memory for a single character with up to 300 images loaded into memory times however many characters there are on the screen. 300 images loaded into memory per character... How many distinct animation actions are they going to be executing? Can you cut out some of the middle animation frames?
Our engine crashes from an out of memory error when loading our larger sized maps(20 megs uncompressed b/c of animation). If it depends on map size, your design isn't scaling right. Are you loading the whole map background at once? It seems unlikely that people would be teleporting around a lot, so you can load it in segments, any four of which are small enough to be handled easily.
|
|
« Last Edit: June 30, 2006, 07:28:05 pm by Death 999 »
|
Logged
|
|
|
|
|
Deus Siddis
Enlightened
Offline
Gender:
Posts: 1387
|
Cool pics. So now I guess it is Irrlicht vs. OGRE.
|
|
|
Logged
|
|
|
|
|
|
|
Pages: 1 [2]
|
|
|
|
|