That&#39;s quite disappointing. <br><br>I&#39;m looking forward to seeing further news about &quot;game mode,&quot; I guess.<br><br><div class="gmail_quote">2009/6/2 Kimmo Hämäläinen <span dir="ltr">&lt;<a href="mailto:kimmo.hamalainen@nokia.com">kimmo.hamalainen@nokia.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<div class="im"><br>
On Wed, 2009-06-03 at 00:53 +0200, ext Qole wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jun 2, 2009 at 3:04 PM, David Greaves &lt;<a href="mailto:david@dgreaves.com">david@dgreaves.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;         I understood that GL wasn&#39;t going to be available to the apps<br>
&gt;         on the device...<br>
&gt;         something about the window manager permanently taking the only<br>
&gt;         viewport?<br>
&gt;<br>
&gt;         I am not sure if this is a beta-phase bug or a hardware or<br>
&gt;         GLES issue.<br>
&gt;<br>
&gt;         David<br>
&gt;         --<br>
&gt;         &quot;Don&#39;t worry, you&#39;ll be fine; I saw it work in a cartoon<br>
&gt;         once...&quot;<br>
&gt;<br>
&gt;<br>
&gt; I think you are referring to the following two posts, both by Kimmo<br>
&gt; Hämäläinen. I don&#39;t believe they say that GL won&#39;t be available, but<br>
&gt; that there will be a performance hit<br>
<br>
</div>OpenGL is not available in the device but OpenGL ES2 is. Notice that<br>
this is a big problem when porting OpenGL applications from the desktop<br>
PC world.  Some kind of OpenGL to OpenGLES conversion layers are<br>
possible but with some FPS cost, I assume.<br>
<div class="im"><br>
&gt;  because the apps will have to go through Hildon-Desktop to render,<br>
&gt; rather than rendering directly.<br>
<br>
</div>Yes, about 30% penalty with the compositor, but I&#39;m working on &quot;non-<br>
composited&quot; or &quot;game mode&quot; for hildon-desktop that allows shutting down<br>
the compositor and rendering directly to the screen (without killing<br>
hildon-desktop).  I still need to get it working with dialogs and menus<br>
popping on top of the non-composited application, but I guess it&#39;ll work<br>
in the end somehow.<br>
<br>
BR; Kimmo<br>
<div><div></div><div class="h5"><br>
&gt;<br>
&gt; <a href="http://lists.maemo.org/pipermail/maemo-developers/2009-" target="_blank">http://lists.maemo.org/pipermail/maemo-developers/2009-</a><br>
&gt; March/018639.html<br>
&gt;<br>
&gt;         As Kate has already proven, multi-context works.<br>
&gt;         But as long as you have hildon-desktop running in the<br>
&gt;         background, you<br>
&gt;         will not render directly to the screen even if you use<br>
&gt;         Clutter/QtGraphicsView/EGL+OpenGLES2.0/whatnot in your<br>
&gt;         application. When<br>
&gt;         hildon-desktop is running, it is the only one drawing on the<br>
&gt;         screen<br>
&gt;         (with the exception of XVideo). So, killing hildon-desktop is<br>
&gt;         the only<br>
&gt;         way to get direct rendering to the screen at the moment. (We<br>
&gt;         might have<br>
&gt;         something more elegant for this in the future...)<br>
&gt;<br>
&gt; <a href="http://lists.maemo.org/pipermail/maemo-developers/2009-" target="_blank">http://lists.maemo.org/pipermail/maemo-developers/2009-</a><br>
&gt; March/018645.html<br>
&gt;<br>
&gt;         Keeping the compositor around has some performance impact,<br>
&gt;         because after<br>
&gt;         the application draws to an offscreen pixmap (the window), the<br>
&gt;         X server<br>
&gt;         sends Damage events (saying &quot;this part of the pixmap changed&quot;)<br>
&gt;         to<br>
&gt;         hildon-desktop, and hildon-desktop asks the 3D HW to use this<br>
&gt;         pixmap in<br>
&gt;         a OpenGL texture and draw it to the screen. So, there is some<br>
&gt;         extra<br>
&gt;         delay (maybe 10-25ms) after the application&#39;s drawing is<br>
&gt;         visible.<br>
&gt;<br>
&gt;         Second implication is that you cannot use HW accelerated<br>
&gt;         zooming and<br>
&gt;         moving of textures for the whole graphical pipeline. You can<br>
&gt;         use it for<br>
&gt;         drawing into your window, but when hildon-desktop draws to the<br>
&gt;         screen,<br>
&gt;         it cannot use it (e.g. it cannot say &quot;move this content to<br>
&gt;         there&quot;). It<br>
&gt;         will just get a big damage area that is updated by updating<br>
&gt;         the OpenGL<br>
&gt;         texture content.<br>
&gt;<br>
&gt;         Third implication: to save memory, we are using the texture-<br>
&gt;         from-pixmap<br>
&gt;         GL extension to allow the X server and 3D HW share the pixmap<br>
&gt;         data. This<br>
&gt;         means that while 3D HW is accessing the pixmap data (while<br>
&gt;         transferring<br>
&gt;         it to the 3D chip), X server cannot access it. Thus, while the<br>
&gt;         compositor is updating the screen, it is slowing down X<br>
&gt;         drawing.<br>
&gt;         However, it&#39;s not mandatory to use texture-from-pixmap, but<br>
&gt;         then you are<br>
&gt;         paying the price in increased RAM usage.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; enthusiast, n. &quot;One whose mind is wholly possessed and heated by what<br>
&gt; engages it; one who is influenced by a peculiar fervor of mind; an<br>
&gt; ardent and imaginative person.&quot;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>enthusiast, n. &quot;One whose mind is wholly possessed and heated by what engages it; one who is influenced by a peculiar fervor of mind; an ardent and imaginative person.&quot;<br>