Home Artists Posts Import Register

Content


These past days I've been worried about memory consumption... :-P

One guy at the forum had problems getting the game to display backgrounds and it turned out to be that his video card was pretty old and incapable of rendering textures bigger than 4096x4096, so I went and reduced them to smaller chunks. Problem solved.

But that troubleshooting made me realize that I've been coding like a monkey and the game is consuming around 1.6 GB of RAM at its current state. And we've just started.

So, I've been spending these past days, not creating content but optimizing how the sprites are managed internally. And it's been a surprisingly hard task, though it seems I've got it right and I can expect around a 20-25% of that memory usage now.

Still, I would like to know what kind of systems you guys have, so I could set a reasonable upper limit.

I apologize for not having taken into account this issue before. I'm still learning and I kind of expected the platform to avoid memory leaks by just deactivating game objects... but it's not the case, so those guys at Unity will have me doing things the right way after all.

Damn them...! :-D

Comments

Anonymous

My ram not on this list. 24gb ram ddr4

Anonymous

You are in early stages of development. You are gonna use up tons of ram. Optimizing shouldnt be number one, that is saved towards the end of development.

Fredinator

The Demo ran as a 32bit application. To my knowledge 32bit apps can't access more than 4GB ram on 64bit Windows (2GB on 32bit Windows). So maybe switch to 64bit? 80% of PCs run that anyway.

kuja

Oh, did I say 'optimize'? Actually, I should have said 'not coding like a madman', period. :-D I mean... not using prefabs and putting all objects in the scene, not destroying a single thing after use, rendering huge sprites with a 75% of transparency areas... and the list goes on. You're right about priorities, of course. But you guys are also supposed to be able to play the game through its development. ;-)

kuja

Yes, that would be the second part of the poll: "Do you have a 32 or 64 bits OS?". I don't really want to leave even a 20% of people behind if those were the numbers. But yeah, if things get ugly I may need to kindly suggest people to switch to XXI Century technology... :-D