so all this is based on valgrind results. There are two 3d bounding boxes (I think  a global one and one per buffer). Instead of updating the global one and the local one with every point, I just update the local one, and once updated, use it to update the global one. SO two bounding boxes are merged at that specific line.