Im confused by a Windows benchmark.
One customer reports that my app runs very slowly on a gaming machine that SHOULD be blisteringly fast.
(3.7Ghz, 16Gb memory, Radeon card etc etc)
Much slower than my 7 year old, 4gb Dell laptop for example.
yet processor and Ram usage don’t look silly.
This is my app on the top row, Chrome underneath.
High Power Usage only means that a process uses a lot of CPU power.
A CPU core on high utilization = high clock frequency (possibly turbo clock) needs a lot of energy.
Please do not be confused by the 6.4% Cpu load. Xojo uses only one thread (if no workers are used, and that would be extra processes). I.e. with an 8 core CPU (Under Windows with HT then 16 available cores) would be 6.25% full load for a core. (Of course assuming it is an 8 core CPU). 100% / 16 Cores.
So your app is running with 100% CPU (if it is a 8 Core cpu)
For a further diagnosis you would need more data and background information about the system and your program. Bottleneck can also be e.g. the disk access. Here is in the Windows performance <monitor possibly more to see.
First of all I would check if a virus scanner is the cause or the brake. This is currently a common problem which leads to such effects.
Windows Performance Monitor is the tool ;-). But first of all I would disable (for testing) all Virus Scanners and Malware Checkers. (7 out of 10 support tickets last weeks where because of virus scanners going crazy).
What’s the second tab showing you in the task manager? any of the cpu’s at 100% ?
I think this happens if you choke the main thread too much, try to lower the priority of threads to 4 on windows (or lower).
It is, but this issue only seems to affect 1 in a 100 or less.
Commonly high end machines.
Other symptoms I have established include failure to write to simple log files in documents or application support.
To me, this is a clear case of virus checker interference, but the (current) customer swears that only Windows defender is in play and turning it off makes no difference.
I thought that the intense part of the app was already in a thread, but checking my code I see I pulled back from that at some point, and it is all still on the main thread. I dont use #pragmas at the moment