SSE2: Add FIXME_SSE2 notes

--HG--
branch : sse2
hg/feature/sse2
kaetemi 11 years ago
parent 5f54f75802
commit e8852d630e

@ -83,7 +83,7 @@ public:
); );
// a vertex // a vertex
struct CRGBAVertex struct CRGBAVertex // FIXME_SSE2
{ {
#if USE_SSE2 #if USE_SSE2
float X, Y, Z; float X, Y, Z;

@ -53,6 +53,7 @@ class CPlane;
* \author Nevrax France * \author Nevrax France
* \date 2000 * \date 2000
*/ */
NL_ALIGN(16)
class CMatrix class CMatrix
{ {
public: public:
@ -363,6 +364,10 @@ private:
float Scale33; float Scale33;
uint32 StateBit; // BitVector. 0<=>identity. uint32 StateBit; // BitVector. 0<=>identity.
#if USE_SSE2
void setMulMatrixSSE2(const CMatrix &m1, const CMatrix &m2);
#endif
// Methods For inversion. // Methods For inversion.
bool fastInvert33(CMatrix &ret) const; bool fastInvert33(CMatrix &ret) const;
bool slowInvert33(CMatrix &ret) const; bool slowInvert33(CMatrix &ret) const;

@ -36,11 +36,16 @@ class IStream;
* \author Nevrax France * \author Nevrax France
* \date 2000 * \date 2000
*/ */
// NL_ALIGN(16) // FIXME_SSE2
class CVector class CVector
{ {
public: // Attributes. public: // Attributes.
float x,y,z; float x,y,z;
/*#ifdef USE_SSE2 // FIXME_SSE2
float w; // Padding
#endif*/
public: // const. public: // const.
/// Null vector (0,0,0). /// Null vector (0,0,0).
static const CVector Null; static const CVector Null;

@ -494,7 +494,7 @@ void CMeshMRMGeom::applySkinWithTangentSpace(CLod &lod, const CSkeletonModel *sk
On a P4-2.4Ghz, for 40000 vertices skinned, both no precaching and asm On a P4-2.4Ghz, for 40000 vertices skinned, both no precaching and asm
saves 27% of execution time in the applyRawSkinNormal*() loop (ie 1 ms) saves 27% of execution time in the applyRawSkinNormal*() loop (ie 1 ms)
*/ */
#if defined(NL_OS_WINDOWS) && !defined(NL_NO_ASM) &&!defined(USE_SSE2) #if defined(NL_OS_WINDOWS) && !defined(NL_NO_ASM) &&!defined(USE_SSE2) // FIXME_SSE2
//#define NL3D_RAWSKIN_PRECACHE //#define NL3D_RAWSKIN_PRECACHE
#define NL3D_RAWSKIN_ASM #define NL3D_RAWSKIN_ASM
#endif #endif

@ -43,7 +43,7 @@
On a P4-2.4Ghz, for 40000 vertices skinned, both no precaching and asm On a P4-2.4Ghz, for 40000 vertices skinned, both no precaching and asm
saves 27% of execution time in the applyRawSkinNormal*() loop (ie 1 ms) saves 27% of execution time in the applyRawSkinNormal*() loop (ie 1 ms)
*/ */
#if defined(NL_OS_WINDOWS) && !defined(NL_NO_ASM) &&!defined(USE_SSE2) #if defined(NL_OS_WINDOWS) && !defined(NL_NO_ASM) &&!defined(USE_SSE2) // FIXME_SSE2
//#define NL3D_RAWSKIN_PRECACHE //#define NL3D_RAWSKIN_PRECACHE
#define NL3D_RAWSKIN_ASM #define NL3D_RAWSKIN_ASM
#endif #endif

Loading…
Cancel
Save