Re: Scrolling Graphics Questions
Posted: Tue Nov 01, 2016 12:28 pm
Hi Stew,sorchard wrote: I think you can get most of the 7% improvement without having a huge program, if you copied for example 128 or 256 bytes per loop.
I have tested with 4x32 = 128 and the speed gain is not visible on screen.
The 'con' of this method is that as I need to scroll the whole screen except for a line
this means 191 files being moved (32 bytes x row)
Going up to 128 needs 191/4 = 47 times and then I have to add the three last ones
because 4 * 47 = 188
Trying to go further to 256 would imply: 8 * 23 times = 184, so I would have to add SEVEN more!
If I try to reuse the ones coded into the block, then I have to introduce test and branch, so
losing the gains ...
I think that the full unrolled version was not visibly faster, but of course it used less cycles
to be dedicated to other actions of course, but the size was a high cost!
cheers
pere