3 ms·
But what if the process uses a timer to update an animation? (I.e., the state of the timer determines the frame in the animation). In that case, after unpausin
by amelius 11y ago
But what if the process uses a timer to update an animation? (I.e., the state of the timer determines the frame in the animation).
In that case, after unpausing, the animation would just skip ahead.
As a remedy, the pause button could also stop the system clock as seen by the process.
- RyanRies 11y agoYep, different applications are guaranteed to react differently to this, depending on how they were written. And a lot of games use the _rdtsc intrinsic straight from the CPU... I can't pause that. :)
- amelius 11y agoYou could write a virtual machine that compiles all code into essentially the same code except for the rdtsc instruction (basic-block analysis). That is a lot of work, but I wonder if there are no debugging or reverse-engineering tools that work in that way.