If you get 100% CPU usage inside the loop, that means you dont set time to other threads/processes to work. The way i know to workaround this is to call the sleep function (c, c++) or use Thread.Sleep(1) on c#. I dont know how to call it on vb6.
Using this approach, you may even tell your application how much you call the update method in one second…
- rafael_nicoletti answered 9 years ago
Please login first to submit.