MAN, we've got it 100% correct and how I wanted it!!!Thanks for the update -- I was going to suggest it might be some difference between the old firmware-based (fkms) and Linux/KMS/DRM-based drivers(?), but it sounds like you have it in hand. Please let me know the outcome of the investigations.
If nothing else goes wrong, the RP1 VEC driver should be stable now. I did wonder if there's any more convenient way to define "custom modes", but I don't think there is without loss of flexibility, so it will probably stay as it is.
We got the phase flip, which is the whole point of why I started this thread

We got it to behave smoothly without any hiccups...
Proper 240p scaling from your patch...
AND we got it to run at 60hz!!
I thought we were limited to 59.826Hz?
RetroArch booted at that refresh rate indeed, but the music was slightly low pitched, and the picture would skip about 1 frame every 3 seconds, but there was no audio hiccup at all like in the recording I uploaded before. So I tried upping the rate to 60hz, and no more 1 frame skip, it's perfectly smooth now! It seems we did not need the mode with more color artifacts

There's another small workaround I had to do as well! The resolution 720x480 would get confused by the other one of the same name, and RetroArch kept switching to the 480i one every time it loaded something. We were even thinking of coming to beg you for a change

It is 100% perfect. The Raspberry Pi 5 just became the main device I will use for many years!!!
Oh as for the hiccups, we are still not sure what was causing it, the guy in charge of Lakka made many builds to try to isolate the problem by building with different versions of many things, and different flags. We suspected things like Mesa or even RetroArch itself. He also says we can confirm that it is not kernel related.
I also have this message directly from him:
we fixed the hiccup issue in a branch where older gcc (10.2.0) is used, as opposed to the current development branch, where the build system uses gcc 13.2.0. it might also be some optimization / machine flags - we are not sure. but image for RPi3 from the devel branch has no hiccups, so that is also strange. we are now using latest Mesa, 6.6.y (RPi5) / 5.10.y (RPi3/4) kernel, latest RetroArch and cores, but built from 2yrs old release branch.
I am extremely happy though!!!!!! I cannot tell you how thankful I am for everything.
Statistics: Posted by jayare5 — Wed May 01, 2024 8:29 am