ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pygame-users
pygame-users
Re: [pygame] Fastest (x,y) distance calculation
by Zak Arntson other posts by this author
Sep 12 2003 5:52PM messages near this date
Re: [pygame] Fastest (x,y) distance calculation | Re: [pygame] Fastest (x,y) distance calculation
First off, thanks to everyone for their suggestions! I'm still looking
into how I want to optimize this stuff.

>  I'd personally just go
>  for the BSP (maybe something more hash-like might be more appropriate
>  in pure python?) at this point, because the other two have some fringe
>  cases that probably aren't worth dealing with.
> 
>  -bob

I investigated BSP trees, but it looks like it would be difficult to
maintain them on the fly for a large number of moving objects. For the
static Temples, it's no problem. But I eventually want to have up to 100
(or more, if I can optimize properly) moving objects that each know who
the nearest object is.

Or are BSP trees the way to go?

---
Zak Arntson
www.harlekin-maus.com - Games - Lots of 'em
Thread:
Zak Arntson
Rene Dudfield
Niki Spahiev
Magnus Lie Hetland
Pete Shinners
Bob Ippolito
Zak Arntson
Magnus Lie Hetland
Nicola Larosa

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved