Global Leaderboard Cache?

Hey everyone! I’m creating a global in-game 100 player leaderboard using an OrderedDataStore. I was wondering if you have any tips when it comes to cache-ing it to increase memory efficiency.

The servers fetches the first 100 entries in the data store, sends them to the clients, and the clients create the billboards from that data.

The players present in the top 100 can change, everyone can be shifted around, scores can change… So it seems like quite a complex task to really optimise. These are the three goals I’m aiming for:

  1. Minimising server processing
  2. Minimising how much data is sent to the client
  3. Minimising client processing

I’ve tried searching around online but haven’t found anything very useful. Thank you in advance for any advice you provide! I greatly appreciate it.

None of those are enough processing to worry about. You should just limit the update speed of the leaderboard to be less than the rate limit for the data store.

2 Likes