Skip to content

Change PeekMessage timeout in uniqueinstance.pas - #27

Open
olivluca wants to merge 1 commit into
blikblum:masterfrom
olivluca:patch-1
Open

Change PeekMessage timeout in uniqueinstance.pas#27
olivluca wants to merge 1 commit into
blikblum:masterfrom
olivluca:patch-1

Conversation

@olivluca

@olivluca olivluca commented Jan 8, 2020

Copy link
Copy Markdown

Using ProcessExplorer, I see that with a timeout of 1ms cpu load of an idle program is around 0.30/0.40
Changing it to 0 the load is 0.01
The performance difference is probably not really relevant, but it's nicer anyway.
Under linux 64 I don't see a difference either way, but that's probably because I'm running it on real hardware (win32 is a virtual machine).

Using ProcessExplorer, I see that with a timeout of 1ms cpu load of an idle program is around 0.30/0.40
Changing it to 0 the load is 0.01
The performance difference is probably not really relevant, but it's nicer anyway.
Under linux 64 I don't see a difference either way, but that's probably because I'm running it on real hardware (win32 is a virtual machine).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant