Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Newbie Questions
by AndrewAMD. 12/04/23 11:14
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (TipmyPip, izorro), 556 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Texture Memory used by textures.pannels #82334
07/20/06 08:35
07/20/06 08:35
Joined: May 2005
Posts: 819
U.S.
Why_Do_I_Die Offline OP
Warned
Why_Do_I_Die  Offline OP
Warned

Joined: May 2005
Posts: 819
U.S.
I'm having a bit of a problem understand how much memory images use in gamestudio. I have some 800x600 pcx images i'm using for some pannels , and even though the file size is only around 360k , when i make the panel visible ingame the bmp emory usage jumps from 500k to 2450k , how can an image thats only 360k in size take up around 2MB of memory? If anyone can better explain to me why this is I would really appreciate it.

Re: Texture Memory used by textures.pannels [Re: Why_Do_I_Die] #82335
07/20/06 08:42
07/20/06 08:42
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
800x600 means 480,000 pixels. At 24-bit color, that's 1,440,000 bytes of memory needed for it. If 32-bit color (I don't know if PCX supports it (nor do I know it's format), but given the 500K to 2450 KB jump you have, I suspect it does), it's 1,920,000 bytes.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: Texture Memory used by textures.pannels [Re: ulillillia] #82336
07/20/06 08:53
07/20/06 08:53
Joined: May 2005
Posts: 819
U.S.
Why_Do_I_Die Offline OP
Warned
Why_Do_I_Die  Offline OP
Warned

Joined: May 2005
Posts: 819
U.S.
so what counts is the resolution rather than the file size itself , would a lower resolution panel image scaled up to fit the screen consume less memory ?

Re: Texture Memory used by textures.pannels [Re: Why_Do_I_Die] #82337
07/20/06 09:14
07/20/06 09:14
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
Resolution shouldn't have anything to do with it. Resolution would indeed affect video memory usage overall, but it wouldn't affect the video memory usage of a panel. What affects the video memory usage of a panel is actually the size of it. Unless DDS is used for texture compression (I don't know if panels support it), the image is loaded into video memory as if it was fully expanded and uncompressed.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1