About memory

You must understand the Game Editor concepts, before post here.

About memory

Postby Leif » Mon Mar 08, 2010 7:31 pm

Guys, does anybody know:

1.What takes less memory -
a) I make one actor with ten animations and create this actor. Later I only change animations
b) I make ten actors with one animation each. Later I create actor with proper animation and destroy others.

2.What takes less memory -
a) I use PNG image 700 x 900 (1,19Mb)
b) I use CANVAS actor 700 x 900 , draw on it and save canvas state.

3. Actor A is within current activation region, but not created. Does he use memory? How much?
4. Can we change canvas height or width during the game?
Repulsor beam + heavy cannons
User avatar
Leif
 
Posts: 147
Joined: Mon Dec 15, 2008 12:42 pm
Location: Moscow, Russia
Score: 10 Give a positive score

Re: About memory

Postby makslane » Mon Mar 08, 2010 8:16 pm

Leif wrote:a) I make one actor with ten animations and create this actor. Later I only change animations
b) I make ten actors with one animation each. Later I create actor with proper animation and destroy others.


Game Editor manages the animation load for you.
If you have one actor with a 1000 frame animation for example, only few frames will be loaded at time.

2.What takes less memory -
a) I use PNG image 700 x 900 (1,19Mb)
b) I use CANVAS actor 700 x 900 , draw on it and save canvas state.


The image will use less memory (all images, regardless the image format, are converted to a internal format)

3. Actor A is within current activation region, but not created. Does he use memory? How much?


It will use memory.

4. Can we change canvas height or width during the game?


No
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron