Fun with with Emscripten, Crunch, and DXT
Or: Craziness Compiling C++ into Javascript
Problem: Textures use too much GPU memory
Solution: DXT!
Problem: Loading JPG and then encoding to DXT in Javascript is slow
Solution: Crunch!
Problem: Need to write Crunch decoder in Javascript.
Solution: Emscripten!
(more info)
CRN file:
NOTE: Your browser does not support DXT, so using RGB565
for the texture below. To get DXT, try Chrome 19+
(beta channel as of 2012-04-20; graphics card DXT support also required).