mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
SSE3 hsMatrix44 multiplication
This commit is contained in:
@ -416,7 +416,7 @@ hsBool plDrawableSpans::IBoundsInvalid(const hsBounds3Ext& bnd) const
|
||||
}
|
||||
|
||||
//// SetTransform ////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef HAVE_SSE
|
||||
static inline hsMatrix44 IMatrixMul34(const hsMatrix44& lhs, const hsMatrix44& rhs)
|
||||
{
|
||||
hsMatrix44 ret;
|
||||
@ -477,6 +477,7 @@ static inline hsMatrix44 IMatrixMul34(const hsMatrix44& lhs, const hsMatrix44& r
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef MF_TEST_UPDATE
|
||||
plProfile_CreateCounter("DSSetTrans", "Update", DSSetTrans);
|
||||
@ -520,13 +521,13 @@ plDrawable& plDrawableSpans::SetTransform( uint32_t index, const hsMatrix44& l2w
|
||||
#endif // MF_TEST_UPDATE
|
||||
for( i = 0; i < spans->GetCount(); i++ )
|
||||
{
|
||||
#if 0
|
||||
#ifdef HAVE_SSE
|
||||
fLocalToWorlds[ (*spans)[ i ] ] = l2w * fLocalToBones[ (*spans)[ i ] ];
|
||||
fWorldToLocals[ (*spans)[ i ] ] = fBoneToLocals[ (*spans)[ i ] ] * w2l;
|
||||
#else
|
||||
fLocalToWorlds[ (*spans)[ i ] ] = IMatrixMul34(l2w, fLocalToBones[ (*spans)[ i ] ]);
|
||||
fWorldToLocals[ (*spans)[ i ] ] = IMatrixMul34(fBoneToLocals[ (*spans)[ i ] ], w2l);
|
||||
#endif
|
||||
#endif // HAVE_SSE
|
||||
}
|
||||
#ifdef MF_TEST_UPDATE
|
||||
plProfile_EndTiming(DSMatTransT);
|
||||
|
Reference in New Issue
Block a user