Speedups for plotYUV and related functions
|Reported by:||SF/robinwatts||Owned by:||fingolfin|
|Game:||Broken Sword 1|
This patch accelerates the plotYUV1x, plotYUV2x and plotYUV3x functions used for the MPEG playback on all platforms.
The algorithm is fundamentally unchanged, just various additions are moved out from the inner loop, and various additions removed. Finally the loops are reversed to count down towards zero (as on most architectures testing against 0 is cheap/free).
Specifically this patch has been tested with Broken Sword 1 on WinCE, and found to make a significant improvement in speed.
There is no rocket science here - the algorithm hasn't changed at all - it's just an optimised coding.
Ticket imported from: #1705747. Ticket imported from: patches/749.