Game Development Community

t2DSceneWindow - 12MB memory bump on loading

by Django Zeaman · in iTorque 2D · 09/10/2010 (5:30 pm) · 4 replies

Looking at our game through Instruments-Allocations - we're getting a 12 MB bump very early in the loading, before we bring in much of anything. Is that the iT2D engine?

Just curious if anyone else is running into this.

About the author

I worked in learning simulations, then spent a few years working at Apple. I started to think about creating games for the iPhone and left to do that last summer. Our first game is coming out this summer.


#1
09/10/2010 (6:53 pm)
After further testing it appears to be 10 MB that goes into live memory and stays there when we execute:

new t2dSceneWindow(sceneWindow2D_GameLogoDlg) {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiContentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "480 320";
MinExtent = "480 320";
canSave = "1";
Visible = "1";
hovertime = "1000";
lockMouse = "0";
useWindowMouseEvents = "1";
useObjectMouseEvents = "1";
#2
09/10/2010 (7:43 pm)
Django, are you saying that creating a t2dSceneWindow chews up 10MB?
#3
09/11/2010 (4:00 am)
Scott,

Yes, the initial t2dSceneWindow is adding 10 MB to the live memory load, this is before we load in any graphics, etc.

Wondering what is going on here.
#4
09/11/2010 (9:03 am)
I'd love to know as well!