Poor opengl image processing performance

与世无争的帅哥 提交于 2019-12-06 04:09:50

Your bottleneck is the memory transfer from the CPU to the GPU. GPU allows you to boost performance when you need to do many parallel calculations on the same small amount of data that is stored in the GPU memory (for example draw the same scene 30 frames per second). When you need to transfer data back and forth from the main memory and GPU memory, most of the time is wasted on exactly that.

Try altering the pixelformat (i.e. BGRA instead of ARGB).

I'm not sure of the specifics, but a mismatch in what the card actually uses and what you want could produce disastrous performance.

(It's hard to help more without info on your dataset, the algorithms you're running and some hard benchmark data...)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!