Hi! What kind of upscaler is xBRx? Is it based on an existing algorithm like xBRZ or xBR-LV2, or is it a new implementation? Does it upscale the image by a fixed 2x factor? Thanks!
Wops, it is just a typo indeed. It’s XBRZ. (2x).
Lower the saturation slightly and increase the NTSC colour artifacts/fringing slightly.
Thanks to @beans, it turns out Retroarch applies an extra full viewport pass even when a preset specifies scale_to=viewport, which should not needed if not in some cases (one of them is when some shader needs to access a previous frame from the last pass).
I’ve added support for a new configuration option in config-user-optional.txt:
#define DISABLE_LAST_FEEDBACK_PASS
By using it, fps on my Haswell IGP flies from 111 to 122 fps on my test bench.
Caveats:
- Retroarch nightly or the upcoming stable needed (*)
- Not compatible with anything that needs to access previous frames (delta render, fps halvers, adaptive strobing…)
If you do not want to wait for new retroarch version or install the nightly, you can still manually delete the following from koko-aio.slangp
scale_type16 = viewport
scale16 = 1.0
( @RickDangerous )
When enabling HQ_DECON in config-user-optional.txt, and the option to defocus screen edges is used, scanlines blend into a uniform color.
In the past this used to be done with fixed factors which assumed a typical scanline look, but this resulted in a brightness shift on screen edges in some setups; this was not a big concern, since the vignette does the same, hiding the underlying issue.
However now the computation is albeit not 100% exact, much more precise, and brightness shifts are almost gone:
You can also (mis)use this effect to safely hide/mitigate hard moire that happens on screen edges (see fullscreen):
Defocus off:
Defocus on:
Hi @kokoko3k - I have some really great news for you: Together with Mr. Claude, I created a macOS port of RMG (Rosalie’s MUPEN GUI) and today succeeded to port your koko-aio shader into the app via librashader:
This is currently only in my own fork, but as soon as stable enough, I would offer it to Rosalie and team in upstream, for sure (RMG upstream currently provides no shader option). It is an absolute beauty! The bundles mupen64-plus app has the latest macos dynarec inside, which provides me flawless performance so far.
Two kind requests to you:
-
Are you fine that in this case, I trim the koko-aio package down a bit to reflect usage solely for N64? I would bundle the entire koko-aio-ng package, but not the Handhelds and 4.1 presets, but of course include license, readme and docs. Ok for you?
-
As standard hard-coded presets in the GUI, I would consider the ambient preset (screenshot) and another more TV-like preset. Which second preset would you recommend that fits best to an N64 with TV and a nice background? Besides the hard-coded presets, all koko-aio ng presets would remain available for testing.
Many thanks as always for your insights and reommendations!
Cheers!
Hey there, and congrats for your achivement!
Stripping just the handhelds folder is not a problem, so feel free to go on, but the 4.1 presets have some nice looking ntsc implementations thay I know some users appreciate.
Speaking of 4.1 folder, even if I never had a N64, I remember my old TV without visible scanlines; the tv presets inside 4.1 provide that look. There are also scanlines+slotmask presets immune to moire there, so please keep it.
I’d be happy to suggest a preset for the N64, but I never got one. Tv-pal my old is a preset I love for an old tv look, maybe you may add a back/foreground to it 
Thanks for your tipps, as always! I now chose these three presets: Monitor (Ambilight), my all time favorite, rules here as well, then the TV NTSC Sharp setting from ng, and finally the PAL Old TV setting from the 4.1 shaders, that is really very nostalgic.
Screenshots are from RMG latest build with Parallel, librashader and koko-aio.
Quick question: How do these three preset perform in comparison? All very similar or are there differences? Because on my oder M1 Mac Mini, koko-aio Ambilight was struggling a bit. Thanks!
You should get similar performance within a 5% range, probably less. But you can easilly check by yourself by activating the fps overlay and hitting space to ffwd the core (disable ffwd frameskip or it would be unreliable)
EDIT - it was Vsync enabled that let all shaders hit the ceiling at 240%. With Vsync disabled, the three presets are close to each other, between 300% for Ambilight and 330% for vga-old-tv.
Even more interestingly, recent RetroArch Nightlies see the native Apple Metal shader performing splendidly with koko-aio (not with other easy shaders, such as crt-cwgw-fast, which are slower than koko-aio).
Means that with koko-aio, I can gladly switch to Metal and enjoy best-in-class performance in RetroArch. So it seems, testing will continue, for sure.







