[ scummvm-Patches-1705747 ] Speedups for plotYUV and related functions

SourceForge.net noreply at sourceforge.net
Mon Apr 23 12:21:36 CEST 2007


Patches item #1705747, was opened at 2007-04-23 10:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1705747&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Robin Watts (robinwatts)
Assigned to: Nobody/Anonymous (nobody)
Summary: Speedups for plotYUV and related functions

Initial Comment:
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.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1705747&group_id=37116




More information about the Scummvm-tracker mailing list