I think I have got it.
It seems that if it does 15 checks per second it never fails (an interval of 0.066 seconds).
I would like to be sure that this happen on other computers too.
On the other hand seems performance depends on FPS…
A task may cause lag at 30FPS… but the same task at 120FPS does not cause lag.
So it’s hard to know if the task is really expensive or not…
Well, it seems to work.
What do you think?