Getting player info from the remote (eg. GetPlayerInfoAsync, GetDetailedPlayerInfoAsync) is slow and should be optimized.
Some ideas:
Use multicall.
Track player states in memory, update them when ManiaPlanet.PlayerInfoChanged is called, then use cache to retrieve information. This might require some synchronization to avoid race conditions.
Getting player info from the remote (eg.
GetPlayerInfoAsync
,GetDetailedPlayerInfoAsync
) is slow and should be optimized.Some ideas:
ManiaPlanet.PlayerInfoChanged
is called, then use cache to retrieve information. This might require some synchronization to avoid race conditions.