Hi guys. This the story.
I have lot of achievements and I rely on these and on the leaderboard user position to calculate a points multiplier (user retention and bla bla bla). So, every match I have a lot of incrementAchievement and reportRelativeScore calls. And therefore I got 2 issues:
1) the gameNetwork calls are blocking activities, when I do the calls to update the achievements and the points the game freezes, the animations are lagging, and since I have a lot of calls, this lasts various seconds. This can also break the next match, if the user click “again” too early.
2) since the multiplier for the next match relys on the new leaderbord position and on the achievements unlocked, the multiplier should wait the completing of all the gameNetwork calls. But I don’t have a way to know when they are done (right?).
So.
Is there a way to send a single call to the server, something like incrementAllAchievements ({achievement_name: achievement_value, achievement_name2: achievement_value2}) to reduce the calls to the server and the delay time?
Is there a way to know if there are pending requests and wait for the complete sync, or a callback I can use?
Other strategies?
Thank you.