Lurker News

Comments (169) 37 threads

Show all comments

Showing thread 22 of 37

amelius1 reply#
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.

RyanRies1 reply#
Yep, 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#
You 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.