-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there something like 'Idle Sensitivity'? #840
Comments
A configurable forced sleep in Peekmessage might work but I'd need to see a trace to be sure. |
I'm already at home now. But I will try to get a trace recorded next week. Anyways, the "high cpu load - polling for events" is just a hypothesis. But I have other applications, i.e. the accompanying client, which behaves completely normal with winevdm. It's just the license server which is eating up cpu power. |
I got a trace: trace.txt It seems like it does loop around PEEKMESSAGE. The following calls are repeated continously:
|
Give https://ci.appveyor.com/project/otya128/winevdm/builds/36925455/job/m7gfvv4og5fyti7d/artifacts a try. Set the sleep length in the otvdm.ini file. |
Thank you so much! Works like a charm. |
Yes, milliseconds. It uses MsgWaitForMultipleObjects (https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-msgwaitformultipleobjects). |
Thanks again for the prompt implementation. I will close the issue now. |
Hi all,
I run a win16 license server application which constantly polls for connections and completely saturates one cpu core. NTVDM had some feature called 'Idle Sensitivity' which somehow limited application polling for events. Is there some similar setting in winevdm, or are there other means to limit cpu usage?
Here is some screenshot of the 'Idle Sensitivity' slider I'm looking for:
The text was updated successfully, but these errors were encountered: