BinomialLLC / basis_universal

Basis Universal GPU Texture Codec
Apache License 2.0
2.72k stars 267 forks source link

Replace the slow single-file shell script with a faster Python equivalent #282

Closed cwoffenden closed 2 years ago

cwoffenden commented 2 years ago

The amalgamation script to generate the single-file transcoder was extremely slow and didn't run well (or at all) on Windows. This reimplementation in Python performs the same functions, has the same command-line args, but in testing is over 1000x faster.

More details here with timings: https://github.com/facebook/zstd/pull/3005

richgel999 commented 2 years ago

Got it - thanks! (I had to regenerate the single file header recently, and I did run into some minor issues the last time, but nothing I couldn't work around.)