ioquake / ioq3

The ioquake3 community effort to continue supporting/developing id's Quake III Arena
https://www.ioquake3.org/
GNU General Public License v2.0
2.34k stars 523 forks source link

Add pk3 file caching to emscripten port #671

Open zturtleman opened 2 weeks ago

zturtleman commented 2 weeks ago

An issue for deploying the emscripten port for standalone games is that the pk3 files are not cached by the browser. They're re-downloaded every time the page is loaded. This causes excessive server bandwidth usage.

It's possible to store the files in the browser's IndexedDB. There are emscripten C functions for this. Though currently the web client fetches the files in Javascript. It probably also need to check for updated files on the server.