What LDC flags should be used to get the fastest executable on Windows?

Lorenso lorensbrawns at gmail.com
Thu Mar 11 14:54:40 UTC 2021


On Saturday, 6 March 2021 at 15:59:56 UTC, Preetpal wrote:
> On Saturday, 6 March 2021 at 11:48:55 UTC, Imperatorn wrote:
>> On Saturday, 6 March 2021 at 11:34:33 UTC, Imperatorn wrote:
>>> [...]
>>
>> Or maybe it was GetKeyboardState, don't remember, was about 17 
>> years ago 😁
>
> According to the documentation 
> (https://docs.microsoft.com/en-us/windows/win32/winmsg/lowlevelkeyboardproc) for the LowLevelKeyboardProc (the hook that my program installs), the hook is "called before the asynchronous state of the key is updated" so I cannot use GetAsyncKeyState.
>
> I could probably use GetKeyboardState to make the program 
> simpler but since I fixed it, I am probably not going to change 
> it for a while :).

I love how comprehensive this is. Including the resources is just 
brilliant. Thanks for sharing!


More information about the digitalmars-d-ldc mailing list