I have some PlayFab code in my Unity game to retrieve a leaderboard. I make 3 calls to PlayFab to construct my own leaderboard object. I decided it would be good idea to combine these 3 calls into a single cloud function (Azure) so I could just make one call to PlayFab. I have this working but I notice that the single cloud function call takes slightly longer than the 3 separate calls combined. Is this expected?
Which way do you prefer it to be done? Less calls is better?
I have a Leaderboard class I that need to use in both my Unity game code and in the Azure cloud function code. I reference the same source file in both projects and do this
#if NETCOREAPP3_1 using PlayFab.ServerModels;//Azure #else using PlayFab.ClientModels;//Unity #endif
Do the representation of PlayFab classes in both ServerModels and ClientModels always match?
Do you foresee any problems with what I'm doing?