Memory Full

Forum / Development

Interrupt counter

toms * 19 Oct 2018 13:31:04

Does anyone know a secret technique to prevent the interrupt counter from being reset when a VSync occurs?

krusty * 19 Oct 2018 19:41:39

No time to check, but it is not he case of Yap! or Backtro ?

toms * 24 Oct 2018 11:48:43

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!

m_dr_m * 25 Oct 2018 14:15:19

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.

toms * 27 Oct 2018 18:51:18

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!

Hicks * 30 Oct 2018 00:23:14

Oh the mysterious "SHH" technic :)
Never used in a released production, I think...