mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
Kernel: Don't enable write-combine for the Bochs framebuffer device
While write-combine greatly improves performance on bare metal, QEMU appears to perform significantly worse when enabling it.
This commit is contained in:
@@ -59,8 +59,10 @@ ErrorOr<Memory::Region*> FramebufferDevice::mmap(Process& process, OpenFileDescr
|
||||
"Framebuffer",
|
||||
prot,
|
||||
shared));
|
||||
if (auto result = m_userspace_framebuffer_region->set_write_combine(true); result.is_error())
|
||||
dbgln("FramebufferDevice: Failed to enable Write-Combine on Framebuffer: {}", result.error());
|
||||
if (m_write_combine) {
|
||||
if (auto result = m_userspace_framebuffer_region->set_write_combine(true); result.is_error())
|
||||
dbgln("FramebufferDevice: Failed to enable Write-Combine on Framebuffer: {}", result.error());
|
||||
}
|
||||
return m_userspace_framebuffer_region;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user