Love ang Intel GMA

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Love ang Intel GMA

Post 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?
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Love ang Intel GMA

Post by Lafolie »

I wish I could test this and help. If true, this is a pretty scary finding!
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

Re: Love ang Intel GMA

Post by bmelts »

EDIT: math is hard. see below.
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: Love ang Intel GMA

Post 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.
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

Re: Love ang Intel GMA

Post 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.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Love ang Intel GMA

Post by Lafolie »

Could it be a GMA driver issue?
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
RPG
Party member
Posts: 157
Joined: Wed Mar 02, 2011 5:02 am
Location: Russia
Contact:

Re: Love ang Intel GMA

Post by RPG »

Very possible, but other opengl games works without swapping.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Love ang Intel GMA

Post 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.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Love ang Intel GMA

Post by Taehl »

You're not recreating the images every frame, are you? That's a rather common mistake.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Love ang Intel GMA

Post 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.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests