Skip to main content

Module platforms

Module platforms 

Source
Expand description

§Platforms

Freya supports multiple desktop platforms plus experimental Android support, each with a specific graphics backend configuration. The rendering is powered by Skia through the skia-safe bindings.

§Supported Platforms

PlatformGraphics Backend
LinuxVulkan (preferred), OpenGL (fallback)
WindowsVulkan (preferred), OpenGL (fallback)
macOSMetal
Android (experimental)OpenGL

§Rendering Backends

§Vulkan (Linux, Windows)

The default and preferred rendering backend on Linux and Windows. Vulkan provides modern, high-performance GPU-accelerated rendering. Freya will use Vulkan when available.

§OpenGL (Linux, Windows)

Used as a fallback on Linux and Windows when Vulkan is not available or not supported by the hardware. For debugging purposes, you can force OpenGL by setting the FREYA_RENDERER environment variable:

FREYA_RENDERER=opengl cargo run

§Metal (macOS)

The best graphics backend for macOS.

§OpenGL (Android)

Used to render on Android, where Freya draws through Skia’s OpenGL backend.

§Android

Android support is highly experimental.

Building for Android requires the Android SDK, the NDK and cargo-ndk. See the android example for a complete project setup and step-by-step build instructions.