A display list is useful for static geometry which is why it makes sense for the model object.&nbsp; It does not make much sense for the Geos that allow the changing of the vertex data (sphere, cylinder, etc) since the compiling of the list has to be done for each change which adds overhead.&nbsp; <br>
<br>I think someone did make an example of building a display list per gemhead and then calling the list for rendering in another.<br><br><div class="gmail_quote">On Sun, Apr 13, 2008 at 11:40 AM, Thomas Grill &lt;<a href="mailto:gr@grrrr.org">gr@grrrr.org</a>&gt; wrote:<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>
i really have next to no GEM knowledge, but i was always asking<br>
myself whether GEM compiles the GL commands to display lists.<br>
If yes, is that structured by using separate gemheads, if no, why<br>
isn&#39;t it used?<br>
If display lists are used i would think it shouldn&#39;t make a lot of<br>
difference which language is used for the GL commands (apart from<br>
changing parameters maybe).<br>
gr~~~<br>
<br>
<br>
Am 13.04.2008 um 16:38 schrieb Frank Barknecht:<br>
<br>
&gt; Hallo,<br>
&gt; cyrille henry hat gesagt: // cyrille henry wrote:<br>
&gt;<br>
&gt;&gt;&gt; luagl is not as fast as C, but it&#39;s already much faster than using<br>
&gt;&gt;&gt; lots of separators or double gemheads.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regarding Gem-externals: Does anyone have a simple template project<br>
&gt;&gt;&gt; how to write and compile a custom Gem external? This could be very<br>
&gt;&gt;&gt; useful, but I&#39;m a bit confused how to do this in a simple way.<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; use a gem object (like cube).<br>
&gt;&gt; search and replace &quot;cube&quot; by the name of your object in both the<br>
&gt;&gt; ccp and h<br>
&gt;&gt; file.<br>
&gt;&gt; use this makefile (adjust the name of the file / src directory).<br>
&gt;&gt; it should compile.<br>
&gt;<br>
&gt; Thanks a lot Cyrille. I made a little &quot;benchmark&quot; of a [linebuffer]<br>
&gt; object in luagl vs. a quickly hacked C++ version (warning, very ugly<br>
&gt; code!! Includes bugs I didn&#39;t care to fix for now.)<br>
&gt;<br>
&gt; In this case, Lua does compare quite well with the C++ version on my<br>
&gt; machine.<br>
&gt;<br>
&gt; Ciao<br>
&gt; --<br>
&gt; &nbsp;Frank Barknecht &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _<br>
&gt; ______footils.org__&lt;lua-c-<br>
&gt; gemtest.tgz&gt;_______________________________________________<br>
&gt; <a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>
&gt; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/" target="_blank">http://lists.puredata.info/</a><br>
&gt; listinfo/pd-list<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br>