'KMSDRM slower than x11. Same Code, same Mesa version, slower application performance

I wrote an SDL2 application and have build Mesa from source (22.0.1). If I start the application within x11 SDL selects x11 as video driver.

When I set multi-user.target and start the application at system boot SDL selects KMSDRM as video driver.

In both cases used Mesa version is the one I'm expected, 22.0.1 (the default system one is 20.3.5), but with x11 the code runs smoothly (FPS are the same as video refresh), with KMSDRM the app is slower.

I can't figure out why, maybe is KMSDRM the problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source