- Home /
Scale and Memory
i was wondering say if u have an object with dimensions 1,1,1 (x,y,z) compared to an object 100,100,100, will it take up more memory if you apply particle effects to the object and normal/bump map to the textures. and what if you decide to duplicate that object via code, will it take up more processing? if so by how much?
I created a game recently it ended up to 1.3 GB (after publishing it was about 30mb) all i had was 1 level, main menu, victory and death screens. but my scale was 100,100,100
thanks
Answer by syclamoth · Sep 16, 2011 at 02:42 PM
The dimensions are entirely, well, dimensionless! The scale of the object should have very little, if any, impact on performance.
Your second question, about duplication in code, well this depends on exactly what you are doing. I can only assume that duplicating an object will make it take up twice as much processing power as just one of them, but this depends entirely on what it is doing, and there are a lot of things one can do to optimise this kind of thing.
As for the 1.3 GB project file- you probably had a lot more assets in your project that you weren't actually using. The fact that it came down to 30 meg when you published it is telling- the other 1270 megabytes just weren't relevant to your level!
Needless to say, the 100,100,100 scaling almost certainly had nothing to do with it!