You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, roomId is reusable. Then a field of 2**256 seems to be too large and produces waste of storage. PlayerGlobal can be limited into just one slot if we use uint128 instead. Then any read or write of this table could be more gas efficient.
The text was updated successfully, but these errors were encountered:
When displaying the waiting room, if the room owner has not exited, the room will continue to exist. Therefore, we need to add a last updated time for sorting, to ensure active rooms are seen by players.
First of all,
roomId
is reusable. Then a field of2**256
seems to be too large and produces waste of storage.PlayerGlobal
can be limited into just one slot if we useuint128
instead. Then any read or write of this table could be more gas efficient.The text was updated successfully, but these errors were encountered: