Page 1 of 1

Love ang Intel GMA

Posted: Sat Apr 09, 2011 4:24 pm
by RPG
Machine:
CPU: intel Atom 1.6
Memory: 1 Gb RAM
Video: intel GMA x3500
OS: Mandriva Linux 2010

Whan I load game with many png textures (~40 png's 128x128 px), my HDD becomes crazy, swap file increases dramatically (over 600 Mb). It's seems that LOVE is eating HUGE amount of memory with GMA cards.
Does someone have similar problems? How to prevent them?

Re: Love ang Intel GMA

Posted: Sat Apr 09, 2011 8:26 pm
by Lafolie
I wish I could test this and help. If true, this is a pretty scary finding!

Re: Love ang Intel GMA

Posted: Sat Apr 09, 2011 8:50 pm
by bmelts
EDIT: math is hard. see below.

Re: Love ang Intel GMA

Posted: Sat Apr 09, 2011 9:09 pm
by RPG
anjo wrote:One 128x128 PNG takes up 8MB of texture memory.
Why??? Compressed DXF 128x128 texture will be only 20 kb! Maximum - 65 kb.

Okay, why on machine with 1 GB RAM and nvidia geforce 6600 (128 M) game works perfectly?
anjo wrote:640MB of memory for those PNGs.
Why on other machine game needs only 10 Mb RAM?

This is not reasonable answer.

I write simple casual game that must works on old PC's.

Re: Love ang Intel GMA

Posted: Sat Apr 09, 2011 9:15 pm
by bmelts
Yeah, sorry about those numbers. Math is hard. Each of those PNGs is actually just 64KB, which is 2.5 MB - even with compensating for SDL's dumbness, that's just 5 MB. So the problem is something else.

Re: Love ang Intel GMA

Posted: Sat Apr 09, 2011 10:21 pm
by Lafolie
Could it be a GMA driver issue?

Re: Love ang Intel GMA

Posted: Sat Apr 09, 2011 10:25 pm
by RPG
Very possible, but other opengl games works without swapping.

Re: Love ang Intel GMA

Posted: Sat Apr 09, 2011 10:32 pm
by Lafolie
Yeah, I was hesitant to ask that question since I thought that other games/applications might not suffer the same symptoms. I'm sure that whatever the issue is it can, and will, be fixed. It's obviously something in the code that interfaces with the GFX card.

Re: Love ang Intel GMA

Posted: Sun Apr 10, 2011 12:02 am
by Taehl
You're not recreating the images every frame, are you? That's a rather common mistake.

Re: Love ang Intel GMA

Posted: Sun Apr 10, 2011 12:28 am
by Lafolie
I feel the need to remind you that:
RPG wrote:Okay, why on machine with 1 GB RAM and nvidia geforce 6600 (128 M) game works perfectly?
anjo wrote:640MB of memory for those PNGs.
Why on other machine game needs only 10 Mb RAM?
So I am guessing that the resources are being loaded in an appropriate manner.