4 ms·
I have tried. The total bandwidth usage was less when using a single zip file, probably because of similarities in each of the collada model files.
by roschdal 10y ago
I have tried. The total bandwidth usage was less when using a single zip file, probably because of similarities in each of the collada model files.
- bhouston 10y agoCollada is an XML-based format -- it is just brutally bad. You need to use a binary format for fast loading times. Thus binary glTF or binary Three.JS or something custom.
- corysama 10y agoJust pounding this in even further because I see it so much: Collada, OBJ, STL and similar formats are expressly designed to be editor formats and expressly not intended as consumer distribution formats. Any time they are used they give the app and WebGL in general a reputation for being bloated and slow. You wouldn't use PSDs in your webpage. You'd use PNG/JPG. Pleas don't use Collada in your web page. Please use glTF.
- mook 10y agoSince the models are static content anyway, perhaps try a CDN. Since you're already using GitHub, perhaps https://rawgit.com/ https://rawgit.com/ would be useful (mostly because it's free) until you decide you want something with guaranteed uptime.
- willvarfar 10y agoI serve my Ludum Dare games from gh-pages. Works great.
- wolf550e 10y agozip is not a solid archive. Each file in a zip is compressed independently without referencing data from other files, so zip files can't exploit redundancy between files for better compression. tar.gz files compress the concatenation of all files, using redundancy between files to achieve better compression ratios. Note that gzip and zip use deflate which has a small 32KB window, so if the repetition is more than 32KB apart it cannot be used for compression.