LCD display and RPC at the same time?

What is the best way to show live camera image on the LCD display and transfer data from the OpenMV Pure Thermal to a computer via RPC at the same time?

I managed to implement this by first making a custom version of rpc_slave.loop() without its while True, and then calling this custom method inside the while True of LCD display script (such as this). However, the image on the LCD display is lagging a lot and I guess the RPC data transfer is not reliable anymore.