Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2021 18:40:31 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Evgeniy Khramtsov <evgeniy@khramtsov.org>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: Poor OpenGL performance under Xorg
Message-ID:  <lf84-nkzk-wny@FreeBSD.org>
References:  <sg2g-dqim-wny@FreeBSD.org> <YKfinspcKWHDq3Zr@vax.khramtsov.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Evgeniy Khramtsov via freebsd-x11 <freebsd-x11@freebsd.org> writes:

>> While investigating Wayland performance for light gaming I've noticed an
>> anomaly with OpenGL under Xorg which doesn't translate to Vulkan under
>> Xorg or OpenGL under Xwayland. With DRI3 both Xwayland and Xorg should
>> be similar, especially in fullscreen when compositing is disabled.
>> 
>> See https://reviews.freebsd.org/P501
>> 
>> Is this a flaw in benchmark or GPU driver?
>
> Does it happen without libglvnd?

Yep, tested both in 12.2 jail and 14.0 host.

> My guess would be that libglvnd dlopen() or dlsym() the GL libs, while
> vulkan-loader might not be affected by what libglvnd does.

dlopen/dlsym are mainly called on GL init. "LD_DEBUG=1 glmark2" shows
very few relocations between demos, mostly outside of libGL such as
libpng.so for loading new textures.

> Does Xorg dlopen() libs?

Yes, when loading extensions (e.g., glx, glamoregl) and DDX drivers
(e.g, modesetting, xf86-video-intel, xf86-input-libinput).

I can't bisect: no known good state and no other systems to compare.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?lf84-nkzk-wny>