mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 15:12:04 +00:00
sandbox: Slow down the LCD sync rate
There is seldom a need to refresh at 100Hz and it uses a lot of CPU. Reduce the rate to 10Hz which seems to be adequate. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7aa9dbd0ab
commit
7c19e4cbfe
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ int video_sync(struct udevice *vid, bool force)
|
|||
struct video_priv *priv = dev_get_uclass_priv(vid);
|
||||
static ulong last_sync;
|
||||
|
||||
if (force || get_timer(last_sync) > 10) {
|
||||
if (force || get_timer(last_sync) > 100) {
|
||||
sandbox_sdl_sync(priv->fb);
|
||||
last_sync = get_timer(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue