<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi Robert,<div><br></div><div>I used 3.2.3 to load the obj files and converted it into ive format. In 3.2.3 I load the ive file, build my scenegraph and I get 60 fps. When I now load the same ive file into 3.4.0, build my scenegraph, I get the slow down. </div><div><br></div><div>- There must be something which is causing the slow down in OpenSceneGraph</div><div>- The obj loader is creating a lot of primitive sets, which is not optimal. In near future I will try to fix that issue.</div><div><br></div><div>I created a test file. Simply do an "osgviewer SlowDownTest.zip".</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-03-08 9:45 GMT+01:00 Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andre,<br>
<span><br>
On 8 March 2017 at 08:40, Andre Normann <<a href="mailto:andre.normann@gmail.com" target="_blank">andre.normann@gmail.com</a>> wrote:<br>
> hopefully I am getting closer. I find out, that the source model might be<br>
> the problem. I exported an obj file from Bentley Microstation and imported<br>
> into OpenSceneGraph. When I now export the scene into an osg file, I see a<br>
> lot of PrimiteSets (e.g. > 1000). So I will end up with a lot calls to<br>
> DrawElementsUShort. When I load the obj file into 3dsmax convert it into a<br>
> fbx file and reexport it from OpenSceneGraph into an osg file, I have only<br>
> one PrimitiveSet with one DrawArrays call. This file is working well in<br>
> 3.4.0 with sharing nodes.<br>
><br>
> So I guess there might be a problem with sharing osg::Geometry which has a<br>
> lot of primitive sets. In 3.2.3 it was working well. What do you think?<br>
<br>
</span>It sounds like data import path is the crucial part, perhaps changes<br>
to the .obj plugin between 3.2.3 and 3.4.0 are what is causing the<br>
difference.<br>
<br>
Doing an:<br>
<br>
osgconv myfile.obj myfile.osgt<br>
<br>
In 3.2.3 and 3.4.0 will tell you the differences that the plugin and<br>
any optimization passes are making.<br>
<br>
Is there any chance you could share an example of one of these .obj<br>
files that is causing the performance problems?<br>
<span class="m_-1127744207293345500HOEnZb"><font color="#888888"><br>
Robert.<br>
</font></span></blockquote></div><br></div>
</div></div></div><br></div>