Rendering CopyChannels taking absurd amount of time

Profiler: https://i.imgur.com/IseoABA.png

I’m building a Voxel game and trying to get the performance into the playable region. It’s going ok, but now my problem is I’m getting occasional lag spikes with very long frame times (200ms+) with almost all the processing time going into a “CopyChannels” green rendering segment. Any ideas on how to avoid this or split over multiple frames?

Found out the problem; there was a memory leak in mesh updating