seoul: refresh console only if required

Speeds up kernelbuild by over 35% !!!
This commit is contained in:
Alexander Boettcher 2013-08-22 09:26:51 +02:00 committed by Norman Feske
parent 90823eaf1d
commit 6d5a66d8e7
1 changed files with 6 additions and 3 deletions

View File

@ -271,9 +271,12 @@ void Vancouver_console::entry()
Logging::printf("Deactivated text buffer loop.\n");
}
} else unchanged = 0;
cmp_even = !cmp_even;
} else {
unchanged = 0;
framebuffer.refresh(0, 0, _fb_mode.width(), _fb_mode.height());
}
cmp_even = !cmp_even;
} else if (_regs && _guest_fb && _regs->mode != 0) {
if (!revoked) {
@ -295,8 +298,8 @@ void Vancouver_console::entry()
revoked = true;
}
framebuffer.refresh(0, 0, _fb_mode.width(), _fb_mode.height());
}
framebuffer.refresh(0, 0, _fb_mode.width(), _fb_mode.height());
timer.msleep(10);
}