forked from len0rd/rockbox
Greyscale library: Plugins can now put the management structure in IRAM for higher update speed. Use this in doom, mpegplayer, and zxbox. Made the api pointer part of the struct.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16066 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
43cc03457d
commit
a72499a125
15 changed files with 110 additions and 90 deletions
|
@ -257,6 +257,8 @@ static void time_remote_update(void)
|
|||
#endif
|
||||
|
||||
#if LCD_DEPTH < 4
|
||||
|
||||
GREY_INFO_STRUCT
|
||||
static unsigned char greydata[LCD_HEIGHT][LCD_WIDTH];
|
||||
|
||||
static void make_grey_rect(int width, int height)
|
||||
|
@ -312,7 +314,7 @@ static void time_greyscale(void)
|
|||
|
||||
grey_release();
|
||||
fps = calc_tenth_fps(frames_2, time_2);
|
||||
load = 100 - (100* frames_2 * time_1) / (frames_1 * time_2);
|
||||
load = 100 - (100 * frames_2 * time_1) / (frames_1 * time_2);
|
||||
rb->snprintf(str, sizeof(str), "1/1: %d.%d fps", fps / 10, fps % 10);
|
||||
log_text(str);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue