Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
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
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 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
Page 2 of 2 1 2
Re: sprite question [Re: Uhrwerk] #422571
05/13/13 01:06
05/13/13 01:06
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
LMFAO
What kind of dishwasher are we talking about, though?


Textured I suppose. I think you just answered my question.

The reason this all has to do with a level is because rather than using terrain, I am using a sprite that I can update within seconds rather than importing a new skin all the time - also I figured a sprite would take up less memory than a terrain.

The reason any of this had to do with 3k models is because if you take into condiseration a game that has say 8 models 3k+ poly count on screen, that would be 24k poly's. Would that consume some memory?

What I was asking is if the sprite of 4096x4096 would take up as much memory as just one 3k+ poly model?

In nutshell: How much memory does a large sprite (1024')consume? And how much memory does a 3k+ poly model with the skin size as the sprite.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: sprite question [Re: DLively] #422573
05/13/13 05:38
05/13/13 05:38
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
sprite, uncompressed: x * y * 3 (bytes), or with alpha: x * y * 4
if you want compression, use .dds textures.

...so a 1024² (which isn't that much) takes up ~3.1mb, with alpha almost exactly 4.

in comparison, a 4 channel .dds texture with BC3/DXT5 compression needs ~1mb

for terrains it is exactly the same except for the geometry which has to be stored
as well (but that usually needs very little memory compared to the texture).


POTATO-MAN saves the day! - Random
Re: sprite question [Re: Kartoffel] #422594
05/13/13 12:49
05/13/13 12:49
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Additionally, when you use .dds textures you can just look at the size of the file when you want to find out the amount of memory required for it.

When directly comparing a texture to a model or terrain the model will always render slower and consume more memory assuming it got more than 4 vertices and has got the same texture size. However, if you don't go too high-poly the speed difference might be negligible. However these are just rules of thumb. For real comparisons you have to run tests.


Always learn from history, to be sure you make the same mistakes again...
Re: sprite question [Re: Uhrwerk] #422612
05/13/13 17:17
05/13/13 17:17
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Thaank you laugh

So My next question to this would be this: If I have 1024MB of Video, does that 3.1mb come from it?


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: sprite question [Re: DLively] #422613
05/13/13 17:34
05/13/13 17:34
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
do you mean that the uncompressed file (3.1mb) gets stored in your video memory?
-> yes.


POTATO-MAN saves the day! - Random
Re: sprite question [Re: Kartoffel] #422638
05/14/13 03:27
05/14/13 03:27
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
thank you laugh


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Page 2 of 2 1 2

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