Does anyone know a secret technique to prevent the interrupt counter from being reset when a VSync occurs?
No time to check, but it is not he case of
Yap! or
Backtro ?
I checked each of them and the interrupt counter is reset when a VSync occurs (after 2 HSync as usual).
I found an alternative method to resolve my problem, but I'm still curious to know if a magic trick to prevent this counter from being reset exists!
What about disabling the hsync while the vsync is running?
Ok, that's a bit of a catch 22 solution.
Also, you can let the reset happen, but add some hsyncs to adjust subsequent interruptions.
These are smart possibilities!
However I can't use them in my case. My program calls a bunch of routines (never the same) before the VSync occurs, and they sometimes return before the end of Vsync and sometimes later. It prevents me to disable the HSync when the VSync is running. And as HCC is never the same when the routines return, I can't play with the HSync to ajust the next interruption.
Fortunately, I used another way to no longer need to reset that obtuse counter!
Oh the mysterious "SHH" technic :)
Never used in a released production, I think...