mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00

Skia now uses GPU-accelerated painting on Linux if Vulkan is available. Most of the performance gain is currently negated by reading the GPU backend back into RAM to pass it to the Browser process. In the future, this could be improved by sharing GPU-allocated memory across the Browser and WebContent processes.
7 lines
181 B
CMake
7 lines
181 B
CMake
if (NOT APPLE)
|
|
find_package(Vulkan QUIET)
|
|
if (Vulkan_FOUND)
|
|
set(HAS_VULKAN ON CACHE BOOL "" FORCE)
|
|
add_compile_definitions(USE_VULKAN=1)
|
|
endif()
|
|
endif()
|