mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Made hashing faster in MapPolygonMesh::GetGeometryCRC()
This commit is contained in:
parent
f7db9d0ab7
commit
2d133b6910
1 changed files with 6 additions and 0 deletions
|
@ -2776,7 +2776,13 @@ unsigned int MapPolygonMesh::GetGeometryCRC() const
|
|||
unsigned int crc = 0;
|
||||
for( i = 0; i < verts.Num(); i++ )
|
||||
{
|
||||
#if 0
|
||||
crc ^= StringCRC( ( verts[i].xyz * ( i + 1 ) ).ToString() );
|
||||
#else
|
||||
crc ^= FloatCRC( verts[i].xyz.x * ( i + 1 ) );
|
||||
crc ^= FloatCRC( verts[i].xyz.y * ( i + 1 ) );
|
||||
crc ^= FloatCRC( verts[i].xyz.z * ( i + 1 ) );
|
||||
#endif
|
||||
}
|
||||
|
||||
for( i = 0; i < polygons.Num(); i++ )
|
||||
|
|
Loading…
Reference in a new issue