Understanding Memory

I know graphics and how you code take up memory. I’m making a 25 question test for my app, I use director; would it take up more memory if I made every question into a module, or would it be better to put every question as a group view in one module? How much memory do modules take up (excluding main games) …?? And what’s your average app/game size? I to work on having great memory proficiency. [import]uid: 114389 topic_id: 32010 reply_id: 332010[/import]

There are many variables with regard to how much memory will be used. Lets look at an analogy.

Lets say you have 10 ice cubes (and for some magical reason they don’t melt). If you have one Glass and put the 10 ice cubes in it, it might fill up the glass… You’ve used 10 ice cubes and one glass of space.

Now lets take those 10 cubes and spread them out to 10 glasses. You’ve used more overall because you have 9 more glasses in the mix, but at no time do you use more than one glass and one ice cube of space. If you go the first route, depending on the size of the ice cube, you may fill up your glass and run into problems of to little memory at any given point. If you spread it out, the size of your app increases because it needs more disc storage to save the extra “glasses”. But at no point are you filling up the glasses, so your app runs better.

It’s about striking a balance between the two. I don’t know how much your going to be using graphic wise, how much will be shared between scenes, so its hard to give specifics, but I doubt your basic quiz app even with a unique full screen background for each page is going to be much of a problem.
[import]uid: 19626 topic_id: 32010 reply_id: 127640[/import]

That’s a great analogy! [import]uid: 114389 topic_id: 32010 reply_id: 127647[/import]

There are many variables with regard to how much memory will be used. Lets look at an analogy.

Lets say you have 10 ice cubes (and for some magical reason they don’t melt). If you have one Glass and put the 10 ice cubes in it, it might fill up the glass… You’ve used 10 ice cubes and one glass of space.

Now lets take those 10 cubes and spread them out to 10 glasses. You’ve used more overall because you have 9 more glasses in the mix, but at no time do you use more than one glass and one ice cube of space. If you go the first route, depending on the size of the ice cube, you may fill up your glass and run into problems of to little memory at any given point. If you spread it out, the size of your app increases because it needs more disc storage to save the extra “glasses”. But at no point are you filling up the glasses, so your app runs better.

It’s about striking a balance between the two. I don’t know how much your going to be using graphic wise, how much will be shared between scenes, so its hard to give specifics, but I doubt your basic quiz app even with a unique full screen background for each page is going to be much of a problem.
[import]uid: 19626 topic_id: 32010 reply_id: 127640[/import]

That’s a great analogy! [import]uid: 114389 topic_id: 32010 reply_id: 127647[/import]