mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
WindowServer: Don't re-open screen device immediately after opening it
The Screen constructor already calls open_device(), so there's no need to call it again right after creating a new Screen in apply_layout(). This makes the first screen compose happen ~50ms earlier on my machine.
This commit is contained in:
parent
693423bbe8
commit
fac6d220c3
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ bool Screen::apply_layout(ScreenLayout&& screen_layout, String& error_msg)
|
|||
return false;
|
||||
}
|
||||
|
||||
need_to_open_device = true;
|
||||
need_to_open_device = false;
|
||||
}
|
||||
|
||||
if (need_to_open_device && !screen->open_device()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue