Hi,
here I'm back with my favorite topic... :)
First, let me explain a little bit what we're doing:
We have an editing software (we'll release a beta
version soon, stay tuned!) where you can see small
previews of various materials. Those previews are
rendered in an ad-hoc offscreen context. The previews
are rendered frequently, e.g. when loading a
new model, when a material property changes etc.
Each time we render a preview, we recreate
the geometry on which we apply the material.
We observed, that doing this in an endless loop
saturates the memory:
while( true )
{
load geometry;
apply material
render
destroy geometry
}
We figured out that disabling the creation of the
Displaylist solved the problem:
setDlistCache(false);
So, I'm not sure whether this is a bug or a feature,
the ddlists apparently get never freed, although the
corresponding geometry has been deleted!
If you need a small demo reproducing the effect, I'll
compile something for you to test, but I just want to
know if anybody can explain what "setDllistCache"
implies (the manual just states "turns off ddlist creation",
but the term "Cache" confuses me :)
Thank you & Regards,
Toni
--
Ing. Antonio Bleile
Seac02 S.r.l.
via Avogadro 4
10121 Torino Italia
Tel. +39.011.197.006.52
Fax +39.011.197.006.53
E-mail [EMAIL PROTECTED]
Sito www.seac02.it
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users