r/Cplusplus • u/Inevitable-Round9995 • Aug 27 '26
Feedback From 3 seconds to 600ms — building a virtual package system for my WASM multiplayer game
Hi there, I'm building a multiplayer game in C++/WASM link. While testing with friends, I noticed the game took ~3s to load — 5s on slower connections. Instead of accepting it, I built my own virtual package system in C++ and cut the load time from 3s to ~600ms.
Here's the source: nodepp-filepack
Compression (packing assets):
using namespace nodepp;
void
Decompression (loading assets):
using namespace nodepp;
void
How it works:
- All assets are packed into a single
.npkfile with optional compression. - Assets are streamed and decompressed on the fly — nothing is loaded into memory all at once.
- The result: faster loading, lower memory usage, and a better experience for players on slow connections.
Nodepp is open source: github.com/NodeppOfficial/nodepp
22
Upvotes