I developed one plugins that access frame buffer and make certain region zeros in image.
This drops the fps from 120 to 30.
I accomplished this task using the following steps:
- Access buffer from GPU to CPU
- Convert RGBA to BGR using opencv
- Made a mask of ROI and multiply to BGR image using opencv
- Convert the BGR to RGBA
- Copy buffer from CPU to GPU
Only few steps impacting a lot.
Is it possible to access GPU buffer directly and possible to make some region zeros?
Please suggest the optimize way.