Default User
2008-08-05 13:52:43 UTC
Hi,
Ok, so if I create my own "mini" message loop like this:
while (waiting_on_something)
Application->ProcessMessages()
It spikes the CPU to 100%.
If I add Sleep(1), it will sleep for 15ms.
How does the main VCL messageloop handle idle time? Obviously it does it in
a way that doesn't consume all the CPU cycles.
Thanks,
Alan
Ok, so if I create my own "mini" message loop like this:
while (waiting_on_something)
Application->ProcessMessages()
It spikes the CPU to 100%.
If I add Sleep(1), it will sleep for 15ms.
How does the main VCL messageloop handle idle time? Obviously it does it in
a way that doesn't consume all the CPU cycles.
Thanks,
Alan