question

bernardd avatar image
bernardd asked

Leaderboard positions

Hello everyone,

In my team we are looking at the leaderboard limitations.
We would need to be sure that retrieving players from a specific position to another always give us the same set of players (with the assumption that the players's statistic values is correctly ordered).

But looking at some old forum posts, for example this:

https://community.playfab.com/questions/19063/leaderboard-positions-wrong-duplicated-when-viewin.html

It seems that the list of players returned is "approximative".

So does Getleaderboard() and GetLeaderboardAroundPlayer() will return the same set of players or we need to expect that the list returned is approximative ?

Does using GetLeaderboardAroundPlayer() to get the player's position could give a different result, even if the leaderboard didn't change ? this post: https://community.playfab.com/comments/19303/view.html

Seem to indicate that the position is not reliable.



10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Seth Du avatar image
Seth Du answered

Only the first 1000 players' ranks are not estimated, and it is important for those top players' ranks to be accurate. In many games on the market, developers tend to distribute rewards based on their rank percentage range, for example, 10%-15%, 16%-30%, etc., and in this scenario, the accurate position is not required.

Take an example of PlayFab estimation algorithm, player A's statistic value is 10001, while player B is 10002. When they get themselves ranks, Player A might be in a slightly higher position than player B even A's value is less than B. Calling GetLeaderboardAroundPlayer() API to get other player's position may not be consistent to the caller's leaderboard. But this inaccuracy of position is less than 1%.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bernardd avatar image
bernardd answered

Thank you for your fast answer @SethDu !

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.