Increase video size
Put named pipe tx and rx on separate timers
Keep unprocessed buffer data available
Reuse rx buffer
Some code disabled to try to find performance problem
Fill buffer every frame
Trying to optimise frame rate
Found slow code
Rename project files