7 ms·
The timer interrupt is indeed a special case and not very well implemented with the JIT compiler currently. The ticker even only ticks once per basic block, not
by MackieLoeffel 10y ago
The timer interrupt is indeed a special case and not very well implemented with the JIT compiler currently. The ticker even only ticks once per basic block, not once per instruction, when jit compiling, which is definitly not what you want, when you want to have predictable timing.
But making the timing perfect was not a priority, since the programs, with which the VM was tested, also work well, when the timer interrupt only fires once in a while.
- chrisseaton 10y agoThis is the great thing about a JIT though. When someone installs a timing interrupt you can switch to different code that checks the timer frequently enough for hit the target.