Forum Discussion
lazydodo
13 years agoHonored Guest
Shader Optimization.
I was playing with the shader and wondered if it could be optimized. Lets start with the standard Shader float2 HmdWarp(float2 in01) { float2 theta = (in01 - LensCenter) * ScaleIn; // ...
Anonymous
13 years agoNot applicable
Nice work. I tried to do this in OpenGL yesterday but somehow managed to slow things down. It's good to know the idea was sound and I'm merely a terrible programmer.
Would distorting the left and right eyes at the same time speed things up even more? Halving the number of times you sample the distortion map seems like a good thing, but I've no idea if any gains would be negated by the extra stuff that would need doing.
I'll give it a try tomorrow, but considering my previous attempt I'd be hesitant to draw any kind of conclusions based on the results.
Would distorting the left and right eyes at the same time speed things up even more? Halving the number of times you sample the distortion map seems like a good thing, but I've no idea if any gains would be negated by the extra stuff that would need doing.
I'll give it a try tomorrow, but considering my previous attempt I'd be hesitant to draw any kind of conclusions based on the results.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago