Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (TipmyPip, clint000, Grant, chsmac85, Martin_HH), 5,858 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 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 | 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