mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
dbf6429026
This commit switches the priority of EGL and Vulkan so that EGL is always tried first. This is because our EGL backend performs significantly better than the Vulkan one, and we want the most performant experience to be the default. Our hypothesis is that the EGL backend is benefitting from lots of optimization within the OpenGL driver that Vulkan drivers expect applications to perform themselves. Rather than invest a bunch of time optimizing the Vulkan backend right now, this change lets us focus on other priorities. Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
17 lines
289 B
Go
17 lines
289 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
//go:build linux || freebsd || openbsd
|
|
// +build linux freebsd openbsd
|
|
|
|
package headless
|
|
|
|
import (
|
|
"gioui.org/internal/egl"
|
|
)
|
|
|
|
func init() {
|
|
newContextPrimary = func() (context, error) {
|
|
return egl.NewContext(egl.EGL_DEFAULT_DISPLAY)
|
|
}
|
|
}
|