Build Your Own Arcade Controls Forum

Main => Monitor/Video Forum => Topic started by: FinnJävel on May 20, 2017, 07:26:13 am

Title: Universal GLSL
Post by: FinnJävel on May 20, 2017, 07:26:13 am
This is probably a dumb question, as I have just started to play around with glsl but is there (or can there even theoretically be) a way to load a glsl shader as windows boots (as abackground process mayhaps)? So that all windows programs (in cab use frontends and emulators) would have the same scanlines, curvature etc.
Title: Re: Universal GLSL
Post by: mourix on May 22, 2017, 03:18:54 pm
I've attached a simplified block diagram of an emulator's screen chain. First the game gets rendered natively, then it gets processed with output specs like GLSL and output to the screen afterwards. All of this is tightly integrated to prevent slowdown or lag at the user's side.

If you theoretically wanted to put one shader over the entire screen, you'd have to record the output at step 3 and run it through the entire chain again. This would needs lots of processing power and lead to unacceptable lag.

Your best bet is to use Retroarch. It uses converted emulator cores with its own video output chain, so all the games in there can be used with a single shader. It's not a full system thing but it will save you time.
Title: Re: Universal GLSL
Post by: FinnJävel on May 24, 2017, 03:14:39 pm
Wow. That was thorough and to the point. Thanks for that, Mourix.
Guess I'll have another go at RA and just make a CRT-distorted theme for Mala.