Re: [Plib-devel] [PATCH] crease for ac3d files and speedup
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-10-08 19:09:26
|
Mathias Fr=F6hlich wrote: > But not for functions only operating on ssg*'s datastructures like=20 > ssgVtxTable::getNumColours(), ssgBranch::recalcBSphere(), If recalcBSphere is being called in an otherwise static scene, there is something very seriously wrong - either with the application or with SSG. The system is only supposed to recalc the bounding sphere if it's been 'dirtied' by changing a low level vertex or moving a Transform node. The fact that: > ssgEntity::dirtyBSphere(), =2E..is also in your top ten list says there is certainly some kind of a bug. The only time the bsphere should be dirtied is for the (presumably rare) moving models and things that move vertices around outside of SSG. Since moving models are usually put into the tree very near the top in most applications, those are very unlikely to cause much CPU time consumption. This needs to be tracked down - recaclulating bounding spheres needlessly will *cripple* performance. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++= -----END GEEK CODE BLOCK----- |