I want to use multi threads(like Task) to improve display performance,but when i use task,the tile doesn't display in map ,In task ,I use IDisplay para,so I doubt whether the IDisplay para is the problem which causes the data don't display.
List<Task>taskList=new List<Task>();
for(var tile in tiles)
{
taskList.Add(Task.Run(() =>displaying my tiles code));
}
Task.WhenAll(taskList.ToArray());
Forgive my poor English,Any help will appreciated!
I want to use multi threads(like Task) to improve display performance,but when i use task,the tile doesn't display in map ,In task ,I use IDisplay para,so I doubt whether the IDisplay para is the problem which causes the data don't display.
Forgive my poor English,Any help will appreciated!