Averaging and Maximum Intensity Projection (MIP) for the live B-Scan view and live En Face view can be optimized.
Have a look at the functions "updateDisplayedBscanFrame" and "updateDisplayedEnFaceViewFrame" in cuda_code.cu.
Maybe a parallel reduction approach could be used here to optimize the calculations.