Dowvoted until deleted by Community but without any explaination even if it’s well written.
Does making things like E.A sports games easier of topic or what’s else if not ?
The relevant question:
What I want is when a process asks the Operating System to be suspended for 0.3s or 0.5s it actually gets suspended during 0.9s or 1.5s (which corresponds to the nanosleep system call on Linux).
There’s a simple way to modify those timings for the whole system :
- Disable Hpet (if using windows) and TurboBoost in Bios settings.
- Boot up Windows™ or Linux.
- Hibernate Windows™ to hard drive.
- Decrease Cpu Clock speed : something like 4.8GHz to 800Mhz
- Resume Windows™ or Linux from Hard Drive : if successful everything will be far more slower. I mean very much slower than if I had booted Windows™ or Linux to the actual Frequency in first place (not because of ᴄᴘᴜ usage but mainly because sleep timings affect every user actions with the system far more than most think).
On Linux the explanation is easy : this is mainly setting the kernel Bogomips parameter to an incorrect value. The reverse technique can be used to make feel an old machine is faster than in reality.
Now how to perform such timing change for a single program ? I mean how to change timings performed by
sys_nanosleep()
on Linux andNtDelayExecution/NtCreateTimer/NtCreateTimer2/NtSetTimerResolution
on Windows ?