I am in the situation where I have text files representing a game object. What I have to do is parse the file and get the points that the game object will be drawn to. For example
fruits.txt
pear 10, 20
orange 10,38
Whenever I grep a point I use dispatcher begininvoke to update the new fruit to the screen. This works better than invoke for a single thread. Whenever I have more than one screen updating their points in parallel it becomes very slow and it begins to hang or the frame jumps while drawing to the screen. Is this because BeginInvoke queues the messages? Despite the freezing BeginInvoke still works faster than Invoke, although Invoke has a smoother update. How can I make BeginInvoke "flush the messages" to screen. There was an idea in some other post where I can save the points in a queue and draw to the screen while there is still something in the queue, but there wasn't any difference. Please any ideas? Thanks.