The UI display problem in the thread
-
Considder throttleing your update frequency. That is: do not update more than 30 times per second at most. Anything faster is not going to be visible by the user anyway. That means that you can buffer updates for that time at least. Best to do this already in the thread providing the updates, as it lightens the load on the UI thread and its eventqueue. It is easy to flood the evenqueue, making the application slow to respond.