Should i be using getasync() for a roulette to gather the rolls the player has left?

this is probably extremely stupid and i forgot i could use variable objects to store them but i wrote a roulette function and i set / get async every time a player either gets a roll, uses a roll etc. and im debating if its worth rewriting how it works for performance. i havent noticed anything in like 3 player lobbies, but i havent released the game yet so im worried about if i get 10+ player lobbies.
i know its poor coding but its gonna be a pain to rewrite LOL
is it worth rewriting, or should i be okay?

You should 100% rewrite your code. After many players start rolling, your requests will eventually get dropped, causing data not to be saved. You should instead only get the data when the player joins, and save when the player leaves.

severely overrestimated how hard it would be to rewrite, i remember it being alot more complicated than i thought. took me 5 mins LOL
ty for the advice :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.