google / etc2comp

Apache License 2.0
376 stars 120 forks source link

Slow #20

Closed reduz closed 7 years ago

reduz commented 7 years ago

ETC2Comp is still slow compared to other texture compressors, even at effort 0 (effort > 0.5 is pretty much unusably slow). For a 2048x2048 in a AMD A8 takes 20 seconds. Squish takes less than one for BC compression.

Is there any chance to add a faster but less quality mode? This way user can pick which textures he/she wants in higher quality manually later.

mainroach commented 7 years ago

Hi Reduz, please re-run your tests against other ETC2 specific compressors, explicitly generating ETC2 textures.

Different GPU texture formats (BC, DXT, ETC, ASTC, PVR, etc) have different characteristics which influence their encoding times (so comparing DXT compression time to ETC2 compression time isn't specifically a fair or valid test).

If you find a specific ETC2 edge case where etc2comp is consistently under-performing wrt another compressor, please file a new issue so we can look at the specific problem.

Thanks!

reduz commented 7 years ago

I understand this, what I ask if there are ways to do this compression faster by simply trying less block modes (or use ETC1 format, which I understand is backwards compatible) by keeping the formats of ETC2 (alpha, r, rg, etc)