Thanks Emmanuel,
Yes I would like to optimize the speed and security of x11. i’ve already written the code to manage events and clicks, but I was worried about rendering and eventually 3d acceleration (which matters a lot).
The goal is to specialize for a given hardware (always the same) and minimize electric consumption and possible delays (hard real time is a coming requirement for that system, which, fortunately, is already tackled in this custom system).
Wayland, is the direction but way too broad and uses xml, which is too slow to parse (even with a very good parser. I just have enough time for array enumeration on the same cache line).
So I evolve on a -very- specific -and specialized- need.
I had a look at drm and egl. They seem to do what I need.
In the end, I will have to fiddle with EGL + DRM + MESA, right?
–?
Jog
25.09.2015, 00:22, “Emmanuel Gil Peyrot” :> On Thu, Sep 24, 2015 at 02:59:32PM +0200, deco33000 Jog wrote:
?Hello,
?System : freebsd 10.2. 64-bit.
Disclaimer: I know pretty much nothing about non-Linux systems, but I
hope you will find this information useful.
?I have a very specific need (I cannot develop too much) and I need to remove as much code as possible out of a system.
?My goal is to recreate a -very minimal- x11, even lighter than Wayland. But I am worried that lot of graphics rely on it (obviously).
What are your actual requirements? And in which way isn?t Wayland
adapted for them?
?Is it possible to use the SDL withotu x11 to create simple GUIs? If yes, are there graphic brand you advise?
?Will I be able to do light 3d rendering?
SDL?1.2 did have fbdev support, but this driver is bad and doesn?t
support anything you?d expect from a modern display API: you will
always get tearing, you can?t control the framerate, you can?t use 3D
nor 2D acceleration? Really, don?t bother.
DRM is the way to go, I did start a SDL?2.0 DRM backend long ago but I
never went anywhere with it, this would be what you want.
As for the GPU, on Linux anything supported by Mesa is good to go, I
personally use an Intel one.
?I thought about mesa and egl. What your experience with those?
If you want to use OpenGL or OpenGL?ES on anything but X11, the API
used to get the context is EGL, this is what Weston uses for its DRM
compositor for example, and what Wayland clients use to display
anything 3D.
?I know it may sound silly to get rid of x11 but I would be hearing from experts (you).
I don?t think it is any silly.
But I don?t see the point in reinventing Wayland either, you should
look into it, even though I?m quite sure no compositor runs out of the
box on FreeBSD.
?Thanks
?–
?Jog
?_______________________________________________
?SDL mailing list
?SDL at lists.libsdl.org
?http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
Emmanuel Gil Peyrot
,
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org