cyremur
Explore posts from serversCCConvex Community
•Created by cyremur on 9/30/2024 in #support-community
Delta updates on query? - understanding bandwidth
So I've tested this compression on the last three gamestates
Seeing an average ratio of 0.18
Based on those last three playtests and that compression ratio, my bandwitdh per game is about:
Uncompressed 43MB
Compressed 8MB
So if I look at current pricing, that would be
UNCOMPRESSED $0.01/game
COMPRESSED $0.002/game
Honestly, that still feels ok for now and I think I'll just upgrade my account in january and eat the bandwidth cost...
25 replies
CCConvex Community
•Created by cyremur on 9/30/2024 in #support-community
Delta updates on query? - understanding bandwidth
And thanks again for all the advice you've already given here.
25 replies
CCConvex Community
•Created by cyremur on 9/30/2024 in #support-community
Delta updates on query? - understanding bandwidth
I like the idea of this. However, I have also grown fond to the schema niceties. Is it possible to reuse my schema definition for validation of the uncompressed doc?
25 replies
CCConvex Community
•Created by cyremur on 9/30/2024 in #support-community
Delta updates on query? - understanding bandwidth
I think the main issue is just that my gamestate representation is gratuitously verbose for development conveniences and I need to add encoding like chess notation to compress it. The json for the battlefield alone is way to big when it arguably can be downsized to 64bytes for the terrain types and maybe a couple more bytes for hexId to entityId mapping. Really was designed for maximum typescript convenience and takes an awful amount of space.
That's what I'm considering quick wins atm.
At some point, I could go deep and only selectively load gamestate for the actions that need it and split up everything but that feels like a big challenge and will slow down development. Better encoding will be a data layer only change on the other hand and not touch game logic.
25 replies
CCConvex Community
•Created by cyremur on 9/30/2024 in #support-community
Delta updates on query? - understanding bandwidth
Appreciate all the attention you're giving even to more out there use cases like mine by the way 🙂
25 replies
CCConvex Community
•Created by cyremur on 9/30/2024 in #support-community
Delta updates on query? - understanding bandwidth
Not really but I'm reconsidering provisioning a little server that just keeps the state in memory and implements its own websocket api. Would be a lot more inconvenient though. Will look into splitting up the state more. But I guess 0.2Mb state * 100 game actions for 20Mb feels ball park correct.
25 replies
CCConvex Community
•Created by cyremur on 9/30/2024 in #support-community
Delta updates on query? - understanding bandwidth
also @Clever Tagline if you're interested in the game feel free to DM me
25 replies
CCConvex Community
•Created by cyremur on 9/30/2024 in #support-community
Delta updates on query? - understanding bandwidth
25 replies
CCConvex Community
•Created by cyremur on 11/29/2024 in #support-community
Index on optional nested properties
Maybe I'm too spoiled by ?. but I expected both variants to resolve to
Id<"users"> | undefined
5 replies
CCConvex Community
•Created by cyremur on 11/16/2024 in #general
All - Bluesky Directory
already followed you 😉
3 replies
CCConvex Community
•Created by cyremur on 11/16/2024 in #general
All - Bluesky Directory
not trying to shill but I've got to 500 followers from scratch in a week with my convex based game: https://bsky.app/profile/oasisdreams.bsky.social
3 replies
CCConvex Community
•Created by cyremur on 10/10/2024 in #general
```http://localhost:3000/?code=
@sshader thanks this worked
5 replies
CCConvex Community
•Created by cyremur on 10/10/2024 in #general
```http://localhost:3000/?code=
So replaceUrl is given to the Auth context provider on root and should probably something like next router redirect, right? Will look into how the next example is scaffolded so I can understand the connective tissue there.
5 replies
CCConvex Community
•Created by cyremur on 10/10/2024 in #general
```http://localhost:3000/?code=
Thanks for the hint, I assumed this need to be happening somewhere but couldn't find the place. Will invest in gate further.
5 replies
CCConvex Community
•Created by cyremur on 10/10/2024 in #general
```http://localhost:3000/?code=
it looks like this happens in the starter template as well but then is redirected to just localhost super fast... is there some kind of handling I need to configure?
5 replies