Another fast CRT shader

I made a fast CRT shader that combines the mask and curvature effects from CRT-Lottes with simple scanlines. I don’t have a RPi handy to do any actual benchmarking, but I get about 450 fps on my Sandy Bridge HD3000 integrated graphics. That’s about 10% slower than default CRT-Pi, but commenting either the mask or curvature options makes it run a little faster than CRT-Pi at default settings. Importantly, it should look pretty decent at non-integer scales.

It also has an option (commented out by default) to turn the scanlines vertical for TATE orientation.

The shader is called ‘fakelottes’ and is only available in glsl format at the moment. Here’s a shot of it at 3x scale:

I’m curious to hear how it runs on an actual RPi, if anyone has a chance to test it out.


Just tested it quickly, seems to run at full speed on the RPi.

1 Like

@hunterk: tested this on my Pi3. Works very good once I comment out the curvature and mask stuff! (Note I use double-buffering for low latency so my Pi has less CPU/GPU time!) To be able to get perfect scanlines (no patterns, etc) with uneven scaling, I changet these settings:

Scanline intensity: 0.10 Scanline Base Brightness: 0.98 Monitor gamma: 2.50

Of course, scanlines are not visible anymore on all-white screens, but who caes :smiley:

Also, are you sure it’s faster than crt-pi with curvature OR mask stuff disabled? Don’t you mean AND there? Thanks for this!

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:

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