1
0
Fork 0
forked from len0rd/rockbox

Patch #4829 from Fredrik Öhrn - Coldfire assembler blit_display() function for H300 and move the palette data into IRAM. Each of these gives about a 1fps speed improvement.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9038 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2006-03-15 01:27:13 +00:00
parent 789e01bd06
commit b3358bd1a2
3 changed files with 166 additions and 5 deletions

View file

@ -87,9 +87,15 @@ enum {
FlipXY = 0x03
};
fb_data palette[256]; /* Color palette */
int vchar_to_x_[1024];
int vchar_to_y_[1024];
/* Putting this in IRAM actually slows down the iPods, but is good for
the Coldfire
*/
#ifdef CPU_COLDFIRE
fb_data palette[256] IBSS_ATTR; /* Color palette */
#else
fb_data palette[256]; /* Color palette */
#endif
void init_PacmanMachine(int dip)
{
@ -129,8 +135,6 @@ void init_PacmanMachine(int dip)
x = 27 - ((i-0x40) >> 5);
y = 2 + ((i-0x40) & 0x1F);
}
vchar_to_x_[i] = x;
vchar_to_y_[i] = y;
if( (y >= 0) && (y < 36) && (x >= 0) && (x < 28) )
vchar_to_i_[i] = y*28 + x;
else