I am using a pretty large (10000x1000) QCPColorMap in a real-time application. Updating the QCPColorMap data can cause the GUI to lag. Is it safe to allocate and fill the QCPColorMapData in another thread? The QCPColorMapData would then be passed back to the GUI thread and set onto the QCPColorMap.

Is there a better approach I should be taking?