←back to thread

148 points ibobev | 1 comments | | HN request time: 0.227s | source
Show context
Stevvo ◴[] No.45153352[source]
Any modern engine does this automatically on PNG import, or as part of material/shader setup. You want different formats for different things, e.g AO, normals, bcs different formats have different compression artifacts.
replies(1): >>45153957 #
pimlottc ◴[] No.45153957[source]
How much extra time does it add for startup? For a single texture it’s probably negotiable but for a modern game, we’re talking about thousands of textures, so maybe it adds up?
replies(4): >>45154071 #>>45154958 #>>45155944 #>>45157033 #
1. charlie90 ◴[] No.45154071[source]
i did some casual testing before of a png vs a compressed texture and its like 20x faster, so yes a big difference. most of the speedup is from not needing to calculate mipmaps since they are already precalculated.