mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
XduooX3 Slow down greylib framerate
halves cpu usage Change-Id: I3797b01ecd2f7615acfed53a77d8a1f51e947c8b
This commit is contained in:
parent
35371df671
commit
1a8939cc3d
1 changed files with 4 additions and 1 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#include "system.h"
|
||||
#include "cpu.h"
|
||||
#include "string.h"
|
||||
#include "kernel.h"
|
||||
|
||||
/* LCD pins */
|
||||
#define PIN_BL_EN (32*4+0)
|
||||
|
|
@ -435,9 +436,11 @@ void lcd_grey_data(unsigned char *values, unsigned char *phases, int count)
|
|||
void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases,
|
||||
int x, int by, int width, int bheight, int stride)
|
||||
{
|
||||
if(!display_on)
|
||||
static long last_tick = 0;
|
||||
if(!display_on || TIME_BEFORE(current_tick, last_tick + 2))
|
||||
return;
|
||||
|
||||
last_tick = current_tick;
|
||||
const int column_high = get_column_high_byte(x);
|
||||
const int column_low = get_column_low_byte(x);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue