Jump to content
  • Advertisement
Sign in to follow this  

Unit Vison and Detection

This topic is 2883 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have been working on a game for quite some time and since I recently increased the amount of objects (ships and planets) I have run in to performance issues. I need some way to quickly find if "enemy" ships are within range so I know weather or not to draw them. I have read in a couple places that KD trees could be used but other places say that is not efficient for a dynamic set. I am currently just using a grid and checking against all objects relatively close to each individual ship which worked on a smaller scale but is pretty inefficient.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!