Real Wallet / Reference
Performance
On the client
- Nothing runs while no wallet is out, yours or anyone's nearby. There are no loops waiting in the background.
- While your wallet is out, one loop runs every frame for the controls and the camera. What ended it, the pose and what the mouse is on are checked 4 to 10 times a second, not every frame.
- While another player within 40 m has a wallet out, one light loop keeps their props attached and drops them when they leave the range.
- Props are local. Every client builds the wallet props itself from one state bag per player. No prop is a networked entity, so the wallet adds nothing to OneSync's entity count.
- Card faces are drawn only for the cards in your own wallet, and only while it is out. The few small pages that draw them are kept, idle, for the next take-out; the photos are freed when the wallet is put away.
On the server
- No loops, apart from the update check every 6 hours (one small download).
- Everything happens on a player's action: a few ox_inventory calls on their own inventory and their wallet's stash.
- Actions are rate-limited per player, and the props' state bag ignores a flood.
- A wallet's stash is registered the first time it is used after a start, not for every wallet on the server.
Network
- One state bag per player with a wallet out, changed only when what is visible changes (a card drawn, cash in or out). It holds prop names and places, never names or numbers.
- A shown card goes to the one player it is shown to. Photos stored on cards go once per session, as a latent (slow, background) event.
Streamed files
About 24 MB of props, textures and animations, downloaded once by each player.
Still stuck? Open a ticket in the Ryan Studios Discord and we'll help you out.