I have an application that was built in Delphi for win32
In idle time, it takes up 0% of CPU resources
I have now compiled it in Lazarus for win64.
In idle time, it takes up 28% of CPU.
If I uncheck the 'Win32 gui application (-WG)' box in the project options - target system, a console window appears before launching the application.
Then the application works fine and consumes 0% of CPU in idle time.
Is there any way to get rid of the console window at startup, or is there any other way to achieve 0% CPU usage in idle time?
os: Windows10, Lazarus 4.2