Dolphin, the GameCube and Wii emulator - Forums

Full Version: OpenGL GLSL video plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

roig

Hello Winter Knight,

I want to know what's your progress on that Smile. I'm interested in helping you, but I will have free time in about 2 weeks. I want to see if it's possible to integrate OpenGL 3.1+ core profile instead of 2.1 with your GLSL video plugin.

Cu!
Hm, we're not really sure if using glsl instead of cg is sensible anyway..
First, it doesn't really offer any advantages; second, it most likely only slows Dolphin down due to the way we're setting constants etc.
So meh, not sure if you guys want to keep working on this :/

roig

Hello NeoBrain,

I don't touched the code yet, but are you sure that there are no advantages using GLSL with OpenGL? Both are the API standards that come "integrated".

Can you explain me better why it will slow down Dolphin? Just asking Smile.

To me, using GLSL for OpenGL and HLSL for Direct3D is the way to go, but I really never looked at CG so if you want to explain me why it should be better to use CG, please do it Tongue

Thanks!
Quote:<ector> using glsl would slow us down, we really use/abuse the fact that there's a single block of constants shared between all shaders
<ector> and there just isn't one in glsl
<ector> unless you use very modern extensions
<ector> and requiring opengl 4.0 seems silly

Apart from that, why would anyone want to do the (quite huge amount of) work enabling GLSL support if it doesn't really offer any interesting features? Maybe ATI's driver supports GLSL better than the stuff generated by Cg, that'd be a reason.. but idk if that's the case.
Squall Leonhart has started a thread regarding the merits of CGSL vs GLSL, and I've added my 2 cents. It's a more appropriate venue than here.

http://forums.dolphin-emu.org/showthread.php?tid=14815

darkpichu

Ok thanks man. Was looking for this.

Suicune

Where exactly do I put these? o.O
Pages: 1 2