Optimized distance calculation to use ints and avoid sqrt()
Renamed global variables and added descriptions
Reimplemented the endgame. Fixed occasional int overflow in FindNearestNeighborN2()
Added "Test" configuration. Starts from it's own main function and runs Update X times to gather reproducable profiling data
Removed depence on FindNearestNeighborN2. We can run 16k particles!
Added ability to split calculation of Nearest Neighbor into X frames. 8000 particles, 100k!
Reverted to using actual shorts for short2. 16k snakes at 124kb!
Tweaked the distance between each segment, this works much better.
Cleaned up a bit. Added optimization TODO's
Instrumented several parts of the update function. Split test code into separate file. Sim appears broken after 1 iteration
Added forgotten file
Fixed bug that allowed for stalemate. A snake would perpetually target an invalid target.
Fixed nodes being unable to chomp because delta time was too high (low fps)
Zipped attribs and position arrays together. ~15% improvement in Update() time. (1.3 to 1.1ms)
Removed division by 100000.0f from every deltaTime based calculation. 10% improvement in Update() time :D
Added another test scenario - Run through the whole sim. The other scenario plays the first update repeatedly.
Fixed compile warning (mostly casting)
Removed TODOs. Tweaked numbers