Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pk3 file caching to emscripten port #671

Open
zturtleman opened this issue Jun 13, 2024 · 0 comments
Open

Add pk3 file caching to emscripten port #671

zturtleman opened this issue Jun 13, 2024 · 0 comments

Comments

@zturtleman
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant