Quantcast
Channel: Questions in topic: "issue"
Viewing all articles
Browse latest Browse all 827

Fetching data from server hangs the game.

$
0
0
Hi, I am using app42 services and fetching list of users in the beginning of the game but that takes too much time and hangs while adding that data to a list using for loop. May be the approach is not up to the mark. Any help would be great. Code snippet is below: public class GetAllUserCallBack : App42CallBack { public void OnSuccess(object response) { IList user = (IList) response; // App42Log.Console("userName is " + user.Count); List userNames=new List(); for(int i = 0; i < user.Count; i++) { userNames.Add(user[i].GetUserName() ) ; } } public void OnException(Exception e) { App42Log.Console("Exception : " + e); } }

Viewing all articles
Browse latest Browse all 827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>