this post was submitted on 26 Apr 2024
445 points (96.3% liked)

Programmer Humor

32712 readers
1304 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 7 months ago* (last edited 7 months ago) (1 children)

No framework will make FSM for you. Managing state of web ui is not as hard as managing state of game.

Using TCP for networking? Loss, retransmit, lag, you're dead. Using UDP for networking? Loss, desync, you're dead. Sending full game state? Congestion, loss, lag, dead. Doing sync right, but still pushing too much data? Congestion, loss, lag, dead. Also keeping on server you need not only track game state, but what game state client confirmed to receive.

[โ€“] [email protected] 1 points 7 months ago

Strictly speaking, the original commenter is talking about website but sure there is an FSM JS framework too (XState).