4 ms·
It seems all images are stored in the file https://cdn.scaleofuniverse.com/sotu-avif.dave https://cdn.scaleofuniverse.com/sotu-avif.dave with some format I don'
by vbezhenar 3y ago
It seems all images are stored in the file https://cdn.scaleofuniverse.com/sotu-avif.dave https://cdn.scaleofuniverse.com/sotu-avif.dave with some format I don't really know. It's some kind of container for avif images. It's loaded once.
- paperdave 3y agoloading everything upfront (a loading bar) was a better trade off than having unloaded images if you scrolled too fast. making each image a separate file was not very efficient for basically every reason. i ended up writing my own streamable archive format called an "asset bundle". it is essentially all resources concatenated. that code is public -> https://github.com/paperdave/assetbundle https://github.com/paperdave/assetbundle the scale of the universe webapp loads all the assets, but then pixi.js objects are dynamically created and destroyed depending on the scale. i never fully verified but i hope does the right thing and keeps sprite data out of vram when it's not needed.