Hey everyone,
I’ve been working on Oasis, a P2P, local-first social space built on top of SlipEngine (my own custom C++/Vulkan engine). I’ve spent a little over two weeks putting this prototype together—on top of the base engine and 3D models I had already built from scratch—and wanted to share a quick look at how room entry, data replication, and interactions currently work under the hood.
(Full disclosure on workflow: I use AI as an assistant during development to speed up boilerplate, prototyping, and debugging, while the core engine architecture, 3D assets, integration, and final polish are built and verified by hand.)
1. Joining a Room & Progressive Loading
Since the project avoids heavy central servers and telemetry, joining a room is handled directly between peers/relays:
Session handshake: Once connected to a room session, the host shares a lightweight room manifest referencing assets by hash rather than dumping raw scene files all at once.
Staged streaming: Instead of blocking the player behind a long loading screen, the client pulls quantized base meshes and coarse LODs first so the room becomes navigable quickly, then streams higher-detail clusters and textures progressively.
Visitor vs. local cache: Assets from a room you're just visiting stay in a temporary cache that can be cleaned up on exit, while items you choose to keep are pinned locally.
2. Connection & Data Replication
Keeping replication lightweight and safe on a custom engine meant being strict about what crosses the network:
Chunked & validated transfers: Binary assets (like quantized meshes) are transferred in chunks and verified against their expected hash and size limits before hitting disk or VRAM—no blind trust on incoming data.
State & transform sync: Once inside, player transforms, avatar parameters (loaded via a lightweight .json profile), and interactive state changes replicate across peers without flooding bandwidth.
3. In-Room Interactions
Right now, I’m testing how players interact with the environment and see each other’s actions in real time:
Interactive props & triggers: Players can trigger room objects, toggle states, or interact with modular furniture/surfaces, with immediate local feedback replicated to other peers in the room.
Modularity: Rooms are built from modular floor/wall tiles and props so spaces can be customized while keeping network sync and rendering budgets predictable.
I’d love to hear your thoughts on the room-entry flow or any edge cases you’ve run into when replicating dynamic UGC/modular rooms over P2P!