GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Only partial rendered with GLSL

Open nocaseguy opened this issue 14 years ago • 1 comments

Hi Brad. I've created my own fragment shader instead. For normal task like brightness/contrast/overlay it seems to be okay. But there is 1 heavy duty shader which takes about 3 seconds with fullsize texture to process, it only can render like 3/4 of the texture, the un-rendered part will be white. But if I downsize to about 1200x1200, it can render 100% Do you suggest any idea? Thanks!

nocaseguy avatar Nov 27 '12 01:11 nocaseguy

Unfortunately, there really isn't a way around this short of making your shader run a lot faster. iOS has a watchdog timer in its OpenGL ES driver that will kill any single rendering operation that takes longer than a certain duration. This is why you'll see only certain tiles of your image being filtered.

There isn't a way to avoid this, so you'll need to make your shader faster, or split it into discrete rendering stages that each are shorter than the limit imposed by the watchdog timer.

BradLarson avatar Nov 28 '12 01:11 BradLarson