shoggoth wrote:The code generated by screens of pain works very well unless you’re doing something very wrong (obviously you need to call it from supervisor mode, for example).
Well actually it doesn't work for RGB but I may have done something wrong. Unfortunately Screen Pains does not allow advanced settings, only screen center/borders adjustment.
evil wrote:Wouldn't 59.54 suffice?
It makes a huge difference!
The original video I'm doing the conversion from is made for 30Hz and is 3mn40s long.
By doubling the framerate and playing it at 59.94Hz it ends with a sync drift of 12 frames (220ms).
At 59.54Hz it ends completely off sync because the audio/video drift is 100 frames, almost two seconds (1690ms).
What's really strange is that 59.54 is really not standard at all (it's either 60 or 59.94Hz).
The 60Hz mode of the STE was not standard either but with 60.03Hz at least it was near 60Hz.
I wonder why Atari didn't implement 59.94Hz in the standard Xbios call. That's why I say it may not be possible to achieve in RGB
So far I succeded in keeping the sync by using a timer locked to 60Hz and syncing the frame render on it.
But I get another issue, the timer is somewhat interfering with the display, as if Videl could not access video RAM during a few pixels, and I don't know why.
(I'm going to open another thread to discuss this)