Another fast CRT shader

The only benchmarking I was able to do is on desktop GPUs, which have different bottlenecks and performance concerns than mobile GPUs. On my HD3000, it was slightly faster than crt-pi with either of them commented.

With both commented, it’s basically just misc/scanline.glsl, so you’re probably better off just using it directly :stuck_out_tongue:

1 Like

Ahh! Thanks, hunterk. Now I understand!

Curvature is nice to play with, but it’s not fullspeed on my non-overclocked PI3, causing small hiccups once in a while (as I said, I am on double-buffered graphics). Maybe overclocking the GPU I could avoid those while keeping curvature. I’ll have to experiment :slight_smile:

I love this shader, it works very well with all the cores in a low-end gpu. They should add it in upcoming Lakka updates.

1 Like

I really like this shader :slightly_smiling_face: It’s possible add some bloom effect?

Not without wrecking performance, unfortunately.

1 Like

Fake lottes is by far the best shader for low end computers like my 2009 macbook. Thanks as usual, hunter!

1 Like

It also runs full speed on an old windows XP laptop, dual core, GMA x4500. Also runs full speed crt-pi, zfast-crt if anyone is interested. Personally i prefer crt-pi on that screen, looks better on 720p.

1 Like

For some reason, ‘fakelottes’ (version that is bundled with the latest Lakka) wrecks the perfomance of the Genesis Plus GX core (while both crt-pi and crt-nes-mini work just fine) on RPi 4. Can anyone suggest why that may be the case?

hi where can i get this shader, wanna try

It should be with the rest of the shaders. [shader dir]/crt/fakelottes

Hi hunterk: i think i have found an error in fakelottes.

    //vec2 omega = vec2(3.1415 * OutputSize.x, 2.0 * 3.1415 * TextureSize.y);
    vec2 omega = vec2(3.1415 * OutputSize.x, 3.1415 * OutputSize.y)

i only get sideways scanlines with my change. (texturesize->outputsize)

[EDIT] knowing full well i may have misunderstood what SCANLINE_SINE_COMP_B was intended to do… But on my box, it just brightens/darkens the image with fakelottes on my Jetson Nano.

My variant is here if anyone wants to check out the horizontal scanline action and maybe tell me what I have misunderstood, if anything.

fastlottes.glsl

Thanks - cheers

fakelottes: 9.9% gpu on Jetson Nano fastlottes: 8.0% gpu on Jetson Nano

I’m loving this shader @hunterk Does it turn vertical automatically with certain cores?

I don’t understand the option for turning vertical being ‘commented out by default’

How do a verticalise it in Retroarch?

Thanks.

open the shader file (crt/shaders/fakelottes.slang) in a text editor and delete the // in front of this line:

4 Likes

Hello, I try to improve performance of this shader in my GPD XD (which use gl graphics only) : please, is there any parameter I can remove to improve the performance and keeping the grid as it is ? So far, my GPD XD is getting really hot while playing with this shader. Thank you very much for your kind help

The mask is the part that uses the most resources. You can comment that out, but that’s about it.

1 Like

I hope to try and feedback the results, a big thanks for your help !

1 Like

This is the best looking lightweight shader I’ve found, although CRT-Pi is a little faster on my Android, it has very dark scanlines, a very faint mask but produces very strong moire. I gave up trying to configure it.

This one works very well even with the default settings. Thanks!

1 Like

I’ve been using this a lot more than I expected, it’s great considering how light and easy to run it is. Thank you for making it.

3 Likes

For the GLSL (OpenGL) version two new shaders based on Fakelottes has been added, with the same nice looking mask and scanlines combined with a smooth border and rounded corners. Could this be ported to Slang too, please?

This makes it look even better IMO.

1 Like

Hello guys! I’m about to get Anbernic RG406V, which has a 960×720 screen resolution, and I’d love your suggestion on which version of the shader would be best suited for this device - would you recommend using fakelottes-geom-mini or fakelottes-geom for a 720p screen? Does ‘mini’ means it’s made for handhelds? Geom (not mini) says in description about sub-HD res

Thanks in advance for your advice and for creating such a fantastic-looking shader!