Re: [osg-users] stutter while loading new scenery
Thanks Mathias, very useful infos which guides me what to learn next from FG/OSG. The ATI card seems to run into the same trouble which is gone as well now. Maybe a newer driver is fixing that. ATI Radeon HD 5870 fglrx 8.77.5 [Aug 25 2010] regards Wolfgang R. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47092#47092 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] stutter while loading new scenery
Hi, I'm fighting with some stutter issues using Flightgear (2.6 and OSG 3.0.1). In my scenario I can reproduce it and it seems to be related to tile loading. The frame rate is above 50 Hz but in one frame cycle it takes 678 msec. I extended OSG notify with a [usec][thread id] prefix and run it with DEBUG_FP level. Below the long lasting frame cycle. It starts at line 21. Up to line 246 it consumes 139 msec. The Create new ... TextureObjects lines up to 257 consume another 543 msec. Is this log showing something I can improve? Why is the time consuming part on the draw() thread (1818)? I would assume this could be done somehow in the background (I'm using DrawThreadPerContext). Thanks in advance Wolfgang R. 1... 2[1334570577612543][1817] cull() got SceneView 0x12e6f20 3[1334570577612702][1817] end cull() 0x12d9b90 4[1334570577612854][1817] DatabasePager::requestNodeFile(3546378.stg) updating already assigned. 5[1334570577619390][1818] end draw() 0x12d9490 6[1334570577619564][1818] draw() 0x12d9360 7[1334570577619652][1818] draw() got SceneView 0x12df9c0 8[1334570577620805][1818] end draw() 0x12d9360 9[1334570577621001][1818] draw() 0x12d9b90 10[1334570577621117][1818] draw() got SceneView 0x12e6f20 11[1334570577623045][1818] end draw() 0x12d9b90 12[1334570577624246][1817] PrecipitationEffect::update() 13[1334570577624423][1818] draw() 0x12d9490 14[1334570577624550][1817] Cell size X=20 15[1334570577624839][1817] Cell size Y=20 16[1334570577624995][1817] Cell size Z=5 17[1334570577625140][1817] PrecipitationEffect::update() 18[1334570577625239][1817] Cell size X=20 19[1334570577625326][1817] Cell size Y=20 20[1334570577625532][1817] Cell size Z=5 21[1334570577632117][1817] cull() = new frame 22[1334570577632320][1817] cull() got SceneView 0x12d9fb0 23[1334570577633588][1817] Doing add 24[1334570577634477][1817] Doing add 25[1334570577634573][1817] Doing add 26[1334570577634693][1817] Doing add 27[1334570577634779][1817] Doing add 28[1334570577635150][1817] Doing add 29[1334570577635280][1817] Doing add 30[1334570577635403][1817] Doing add 31[1334570577635489][1817] Doing add 32[1334570577635627][1817] Doing add 33[1334570577635751][1817] Doing add 34[1334570577635948][1817] Doing add 35[1334570577636053][1817] Doing add 36[1334570577636225][1817] In DatabasePager::requestNodeFile(/flightgear/fg26/install/fgfs/scenery/Terrain/e030n20/e036n26/LIME_hangarsemicircular.ac) 37[1334570577636362][1817] In DatabasePager::requestNodeFile(/flightgear/fg26/install/fgfs/scenery/Terrain/e030n20/e036n26/LIME_hangarsemicircular.ac) 38[1334570577636493][1817] In DatabasePager::requestNodeFile(/flightgear/fg26/install/fgfs/scenery/Terrain/e030n20/e036n26/LIME_hangarsemicircular.ac) 39[1334570577638329][1818] draw() got SceneView 0x12d9fb0 40[1334570577638390][1817] end cull() 0x12d9490 41[1334570577638482][1817] cull() 42[1334570577638611][1817] cull() got SceneView 0x12e05c0 43[1334570577639351][1817] end cull() 0x12d9360 44[1334570577639440][1817] cull() 45[1334570577639642][1817] cull() got SceneView 0x12e7740 46[1334570577639822][1817] end cull() 0x12d9b90 47[1334570577639947][1817] DatabasePager::requestNodeFile(3546378.stg) updating already assigned. 48[1334570577644473][1818] Created new 0x4db9620 TextureObject, _numOfTextureObjects 6 49[1334570577654321][1819] itr='/flightgear/fg26/install/fgfs/fgdata26' 50[1334570577655443][1819] FindFileInPath() : trying /flightgear/fg26/install/fgfs/fgdata26/Models/Buildings/cow-stable.osg ... 51[1334570577655824][1819] itr='/flightgear/fg26/install/fgfs/fgdata26' 52[1334570577656695][1819] FindFileInPath() : trying /flightgear/fg26/install/fgfs/fgdata26/cow-stable.osg ... 53[1334570577657007][1819] itr='/flightgear/fg26/install/fgfs/fgdata26' 54[1334570577658216][1819] FindFileInPath() : trying /flightgear/fg26/install/fgfs/fgdata26/Models/Buildings/cow-stable.ac ... 55[1334570577658401][1819] FindFileInPath() : USING /flightgear/fg26/install/fgfs/fgdata26/Models/Buildings/cow-stable.ac 56[1334570577658480][1819] osgDB ac3d reader: starting reading /flightgear/fg26/install/fgfs/fgdata26/Models/Buildings/cow-stable.ac 57
Re: [osg-users] stutter while loading new scenery
Hi Mathias, that was an incredible helpful response after 11min :D I was hunting for a couple of weeks to track it down. My first test shows no longer any stutter above my test threshold of 100msec. thanks and greetings from Munich Wolfgang R. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47077#47077 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] stutter while loading new scenery
Mathias Fröhlich wrote: Hi, ... So the problem is known and we are thinking about workarounds to that long standing problem that is more or less only visible with nvidia. I'm running Nvidia for test only (GTX560) but my main workstations have ATI. We need to connect several screens to each board. I'll test on these machines tomorrow. The stutter there was similar and I hope this switch will fix it as well. For this summer I'm looking forward to switch over to GTX680. In the end it's really about mipmapping. And one method to get around that is precomputing the mipmaps in the database pager thread. That's on my todo list for some time. But well, as flightgear is not my day job, this might also take some time. No idea what you're talking about ;) I'm just at the beginning to understand what OSG is doing actually. I hope I can spend some more time during the next months to become more familiar with it. And yes, it's really nice to see where flightgear is used today. Just last week we visited some extremely exciting VR and training devices at the MPI in Tübingen where we could see flightgear running. For interrest, what are you using flightgear for? ... can you tell that? We are working on a cockpit prototyping tool. FG is mainly used for the outside view only. The instruments and even the HUD is done in its own way. My personal interest is to enhance the quality of the outside view part. That means a mandatory = 60fps and maximum resolution. In other departments we run flight simulators with COTS components as well. It seems that they scale sometimes better by throwing more HW on it (more cores, multiple GPUs). But as I read within the discussions here that seems to be a not so simple topic. From my user point of view it is most disturbing to see the framerate. I would prefer to have this fix and in high resolution areas the LOD should drop. I did a short comparison to GenesisRT and their fixed framerate seems more natural to me. But anyway I like FG and saw a bunch of excelent features (property tree, IPC) to learn from. regards Wolfgang R. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47082#47082 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] switch colored display to grayscale
Hi, I'm new to OSG but need a switch by using flightgear. Is it somewhere simple to switch colored output to grayscale only? It would save me a lot of time. Thank you! Cheers, Wolfgang R -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=43925#43925 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org