-
Notifications
You must be signed in to change notification settings - Fork 189
Open
Description
Performance can be greatly increased here. I just pulled a few lines of C# code here from my own implementation, it is based on http://www.cs.ucf.edu/~jmesit/publications/scsc%202005.pdf
ConvFactor = 1.0f / CellSize;
Width = (int)(Max / CellSize);
int Hash(float x, float z)
{
return (int)((x * ConvFactor)) + (int)((z * ConvFactor)) * Width;
}Metadata
Metadata
Assignees
Labels
No labels