- Detect if user is running inside a virtual machine.
Note
Only works on x86 and x86-64.
The code measures the average CPU cycles required to execute the CPUID
instruction. It compares this value to a predefined threshold. If the measured cycles exceed the threshold, the code assumes it's running inside a virtual machine (VM) due to the higher overhead typically associated with VMs.
- him for the idea lol.
- https://github.com/zwinplayer64