[Y-devel] OpenGL and the drawing API

Jonathan Harper jonathan.harper at softhome.net
Wed Mar 17 04:42:59 GMT 2004


 >And there are other benefits besides eye-candy. For example, if you 
make every window of every app you have
 >open an opengl object, switching between these (even under high load) 
will be very quick, since opengl lets your
 >videocard handle this. Also, taking load of your CPU and putting it 
onto your GPU can't be a bad thing
 >(especially since the GPU's nowadays are more advanced in some cases 
as CPU's). Besides, the demand is
 >notably out there, so why not be ahead of the competition and 
integrate it? Off course, you still have to keep in
 >mind that older systems should work perfectly too.

This is exactly what I meant. While one could use OpenGL for 3D display, 
I don't see a 3D desktop as the way of the future. In fact, I kind of 
found looking glass a little silly, although attractive. Instead of 
using OpenGL to create a an entirely 3D desktop (which is clearly not 
Y's purpose), we can use OpenGL's drawing capabilities to create 
standard, but hardware-accelerated display engine.

 >Low end systems will always suffer. I mean, Y drags on my machine, and
 >it is a 2ghz laptop with a radeon m7(equivalent to a radeon 7500). I
 >would hate to see it unaccelerated on a slower system. I think we should
 >be clear on our intended target. If we try to be an ultra-efficient, run
 >on a toaster style gui, we will suffer on the high end. X, with a low
 >impact window manager, is better suited for bare-bones systems.

Y drags on your machine not because it's a heavy, resource-hungry hog, 
but because it's /currently/ a resource-hungry hog. In other words, we 
need some vesa drivers. Until then, it's going to be pretty damned slow 
regardless of your system. =)

 >But all this---at the same time, we want to be able to give the 
capabilities
 >of the future.... If we cant beat looking glass, or quartz, or 
anything like
 >that, its almost a guaranteed failure. What needs to be done, is an option
 >that turns this stuff on and off (at command prompt) so "starty --opengl
 >off" or something.

[and from Mark Thomas's reply:]

 >The buffer checks all the viewports to see whether it needs to work in
 >software mode, or whether it can use the hardware acceleration specific to
 >one or more of them. When a renderer encounters a buffer, it can then
 >either use the associated accelerated data, or the software fallback if
 >the accelerated data is unavailable. To make this more complex, this
 >should actually be implemented by the video driver since it is likely to
 >be implementation-specific. The generic buffer just provides hooks.

Kind of. They should run in parallel, instead of OpenGL on top of the 
standard display. This will not only reduce overhead for 
multimedia/games, but also creating a hardware-accelerated desktop 
without having to go through any intermediary. But because they run in 
parallel, this solves the problem of having, say, a graphics card that 
supports hardware acceleration, and another that does not. As Mark said, 
an intelligent buffer will determine whether to use a generic buffer or 
OpenGL. And, of course, an optimized generic buffer will allow the old 
P133 or an embedded system to replace X in those areas nicely.

I hope I'm headed in the right direction with this thread. If not, at 
least the discussion is good. =)

- Jonathan Harper



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved