|
|
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
Expert
|
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
Expert
|
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: DLively]
#422613
05/13/13 17:34
05/13/13 17:34
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
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
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|