What is graphic format better to use?

New releases and general discussions.

Post » Thu Jul 16, 2009 4:38 pm

I'm pretty sure all (or nearly all) DX9 compliant cards are capable of using compressed textures. And if that wasn't the case, I'm pretty sure the drivers should have fallback mechanisms to send the texture uncompressed. It's all a matter of checking it out.
B
1
G
5
Posts: 8
Reputation: 1,241

Post » Thu Jul 16, 2009 5:08 pm

:idea:

First question:

I've had one experiment.

I created two cap files. In the first scene I loaded sprite animation (21 frames, PNG format, sprite size is 96x104), see screenshot.

:arrow:

In the second file I loaded the same animation, but in DDS format (21 frames, DDS format, sprite size is 96x104), see screenshot.

:arrow:

As you can see there is no difference in FPS and VRAM. However, quality of sprites has a bit changed and CAP file size became 2 times smaller.

Tell me, why have you written that Construct doesn't support DDS if the program displays it properly?

Here you can download cap files with animation in PNG and DDS and see for yourself.

:arrow: PNG Cap: [url:10zrvrqy]http://www.fileqube.com/shared/qVfpJe1492384[/url:10zrvrqy]
:arrow: DDS Cap: [url:10zrvrqy]http://www.fileqube.com/shared/HPHfYCznk1492377[/url:10zrvrqy]

PNG I converted to DDS using special GIMP plugin.

Second question:

For example, I have the sprite 500x500 pixels and its file size 100 kb, and I have another sprite 512x512 and its file size 120 kb... to achieve a maximum perfomance I need to use 500x500 or 512x512? Or is there no difference except file size? What is better to use? :?:

:wink:
B
3
S
2
G
3
Posts: 146
Reputation: 1,567

Post » Thu Jul 16, 2009 5:27 pm

As stated, DDS isn't supported.

The two textures will likely use the same VRAM, as the 500x500 will occupy a 512x512 texture.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Thu Jul 16, 2009 5:58 pm

Does anybody know how to reduce PNG file size not changing its resolution?
GIMP maximally compresses png file to a certain size, but is there another programm which much more compresses png?
B
3
S
2
G
3
Posts: 146
Reputation: 1,567

Post » Thu Jul 16, 2009 6:47 pm

You don't quite understand. Construct immediately converts any image you import to the image editor in to PNG format, using its own PNG encoder. If you import a PNG file it is decompressed then recompressed using Construct's PNG encoder. If you import a PNG file that has been run through PNGCrush it is decompressed and encoded as a (probably larger) PNG file. If you import a DDS file, it is decompressed and converted to PNG etc. etc. etc. By the time you click run, everything has been converted to a PNG file and the runtime decompresses that on startup, so currently, the image format you use makes no difference at all to VRAM usage or how fast it runs, except that if you use a lossy format like DDS, you lose image quality - no gains, only loss.

When we come to make Construct 2, though, we will use external project images and the format won't be changed. So you can use DDS, jpeg, whatever is supported. That's a long way off though.

Also, frankly I think the DDS compression looks crap! Why would anyone want that?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Thu Jul 16, 2009 7:18 pm

Ashley, Thank you for detail explanation! :D
B
3
S
2
G
3
Posts: 146
Reputation: 1,567

Previous

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 5 guests