Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
227 stars 123 forks source link

changed sort to use qsort per advice from Ricardo. #324

Closed totallyeviljake closed 11 years ago

totallyeviljake commented 11 years ago

The qsort operation improves the sprite batch sort by 10x - see this in Ricardo's performance matrix. Need to update our performance tests to match the new cocos2d-x performance tests too.

totallyeviljake commented 11 years ago

We should add this qsort to the CCNode and CCSprite classes. Any place where there are large arrays of nodes should use qsort.