On Tue, 24 Jun 2003 07:46:39 -0500
"Curtis L. Olson" <[EMAIL PROTECTED]> wrote:

[snip]
 
> Think about this another way ... do a profile of flightgear.  I bet
> you will find that the graphics rendering portion of FlightGear takes
> 90-95% of the entire application work load.  If you can't find a way
> to split that up (which is nigh unto impossible since this is all
> involving opengl which inherently resists threading without a *huge*
> amount of effort and complexity[1]) then threading the other 5-10% of
> the work isn't going to gain you a whole lot.

For the record, the top 20 functions as reported by oprofile-0.5.3 are:

Cpu type: PIII
Cpu speed was (MHz estimation) : 807.98
Counter 0 counted CPU_CLK_UNHALTED events (clocks processor is not halted)
with a unit mask of 0x00 (No unit mask) count 400000
%       symbol name

1.02981 ssgSelector::select(unsigned)
1.03343 FGHitList::IntersectBranch(ssgBranch*, double (*) [4], double*,
double*)
1.07417 ssgEntity::dirtyBSphere() 
1.10563 ssgEntity::getTraversalMask()
1.13437 FGInstrumentLayer::transform() const 
1.15995 SGPropertyNode::hash_table::get(char const*)
1.35369 ssgLeaf::cull(sgFrustum*, float (*) [4], int)
1.47658 slEnvelope::applyToVolume(unsigned char*, unsigned char*, int, int)
1.53362 sgXformPnt3(float*, float const*, float const (*) [4])
1.60288 ssgVtxTable::getNumColours()
1.77896 ssgBranch::recalcBSphere()
2.05825 sgdMakeNormal(double*, double const*, double const*, double const*)
2.1051  SGPropertyNode::hash_table::bucket::get_entry(char const*, bool)
2.2873  sgFrustum::contains(sgSphere const*) const
2.69288 SGPropertyNode::hash_table::hashcode(char const*)
3.03894 ssgVtxTable::getNumVertices()
3.16909 ssgSimpleState::apply()
3.2234  ssgVtxTable::draw_geometry()
4.77468 ssgBranch::cull(sgFrustum*, float (*) [4], int)
4.77513 ssgEntity::cull_test(sgFrustum*, float (*) [4], int)

Bernie

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to