@sir would wlroots be useful to me if I'm looking to build a KMS+DRM+EGL environment for gaming, but not necessarily wayland related? I was looking to try out a game console-like design without relying on any specific windowing abstraction.
@jb55 yes, it would be useful for that. But if a game-console-like interaface is what you're going for, I would add Wayland to the equation, to give games a way to send you frames and a means of giving them input, so you can implement a dashboard kind of deal like most modern consoles have for backgrounding games and doing overlays and shit
@sir hmm perhaps, but I wasn't looking to do anything fancy like dashboards. my goal is making it really easy for devs to target: simple, stable, high performance apis for portability across all distros, avoiding some of the dynamic linking and packaging issues that plague linux gaming.
Not sure if that's possible but I'm exploring possibilities here.
@jb55 where does KMS/DRM/GBM fit into this? What will your application actually do? Or in other words, what responsibilities does your application have, which does the game have, and how do they talk to each other?
@sir I'm starting from goals and exploring possibilities. The goals are: a devkit where devs can ship a binary that can be expected to work with only wires into low level, stable kernel interfaces, without dynamic linking into any specific windowing system, no SDL2 needed. the binary really only needs to queue vulkan/opengl commands through dri/drm (if I'm reading this right, EGL has something to do with this?).
Still new to this, not sure if I'm coming at this in the right direction.
@sir so after doing a bunch more research I guess the main issue is that so much of the graphics driver stack is in userspace (mesa, libdrm), so you're kind of forced to dynamically link everything. I guess you can't really do what I was thinking.
perhaps kms-drm-egl-gbm game-console-like project would still be interesting nonetheless. At the very least I'm interested in how much perf is improved if any.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!