Everything related to the code /
Tout ce qui touche au code
-
zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
-
Contact:
Post
by zuzuf » Sat Jan 09, 2010 10:05 pm
I've added a KDTree class which implements an abstract (it can be units or anything else) KdTree structure and used it to speed up target detection.
A game with lots of long range weapons regularly checking for targets ran slowly with the old brute force algorithm but now it runs nicely with 2000 vs 2000 units (Berthas

) in debug mode

.
=>;-D Penguin Powered
-
xpoy
- Posts: 669
- Joined: Mon Sep 22, 2008 3:55 am
Post
by xpoy » Sun Jan 10, 2010 6:01 am
What the hell!!!!
Who is online
Users browsing this forum: No registered users and 7 guests