LabVIEW optimizes Touch Panel VIs for data size, speed, and code size, in that order.
Touch Panel VIs use cooperative multitasking. Therefore, you can design Touch Panel VIs to have parallel loops on the block diagram. One loop runs for a time slice of approximately 50 ms, and then another loop runs for a time slice. Touch Panel VIs automatically use cooperative multitasking when you use two or more nodes that a wire does not connect. However, Touch Panel VIs with parallel loops run slower than VIs with serial loops.
If you set the execution priority of a Touch Panel VI to subroutine, LabVIEW serializes execution of the VI. The Touch Panel VI runs faster, but the user interface does not get any CPU time, and the application might become unresponsive. Place a Wait Until Next ms Multiple function on the block diagram to accommodate this limitation.
Using subVIs in VIs can affect parallel execution, which affects performance.
Using 2D front panel controls instead of 3D front panel controls in Touch Panel VIs can increase performance because 2D front panel controls have quicker refresh rates than 3D front panel controls.