Posted By
|
Message
|
Don Luciano Heavy combat pancake
Registered 25/10/2006
Points 380
|
9th March, 2009 at 12:15:33 -
How much layers can slow down the game?
I am currently revising a code for one of my projects, The thing is that i want to make a base screen, good example is heroes of might and magic.
When you double click a hero or town, and a new window opens up displaying castle things.
Before i just placed objects outside of frame and bringed them to display with position, but with use of layers, which i used in some other projects, I find it much better to code and do stuff, than extra coding the positions. And i need a lot of extra windows.
So if i make about 10-15 layers how much will that slow down the framerate if any at all?
Or is it better to do it somehow else?
Code me a sausage!
|
AndyUK Mascot Maniac
Registered 01/08/2002
Points 14586
|
9th March, 2009 at 17:52:39 -
Ive been told having an extra layer is the same as running another whole frame. But I'm not actually sure exactly how true that is. Ive never really tested it myself but i think the general consensus is that they are pretty damn slow.
But if they're not scrolling layers it should be much faster. Scrolling takes up a lot more processing power than a static screen.
.
|
Don Luciano Heavy combat pancake
Registered 25/10/2006
Points 380
|
9th March, 2009 at 18:39:53 -
Yeah, they are slow, but still, it may worth to try atleast. So im gonna see what will happen.
Code me a sausage!
|
MBK
Registered 07/06/2007
Points 1578
|
5th April, 2009 at 00:33:09 -
This is just one reason that the formula noted in my article "powerful instance manipulation" is so important.
Check it out under the Articles section.
I describe there exactly how to make a layer system without using fastloops or extensions.
It might just be the easiest way to do it.
Please take a look at my Projects page for 2.5d platforming, there's not enough people showing their support.
Edited by MBK
Click Me! http://www.create-games.com/project.asp?view=main&id=1444
http://www.mediafire.com/download.php?aoo1dnnlq5i
Blood of the Ancient One, Seen only as Shadow, Faster than Lightning, Fierce as the Greatest Dragon, Nearly Invisible, Floating in a Dream, Entered through the Demon Door, Destroyer of Evil in a Realm with a Red Sky Scarred, Who could I be ?
|
|
|