Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Clustering Algorithm for Spawnpoints #132

Merged
merged 33 commits into from
Apr 23, 2023
Merged

Conversation

TurtIeSocks
Copy link
Owner

@TurtIeSocks TurtIeSocks commented Apr 3, 2023

New API Args:

  • cluster_mode: Fast, Balanced, BruteForce
  • fast is now deprecated, but will set cluster_mode to Fast if cluster_mode is not set in API
  • cluster_split_level, similar to route_split_level, used for multi threading, determines S2 cell level, accepts 1-30
  • Recluster button in polygon popup
  • New clustering algorithm is more brute force, works well with a medium to high min_points
  • Provides anywhere from 25-40% increased performance (in terms of returned cluster count) depending on other settings
  • Can be very high CPU and RAM usage if you give it over 10,000 points! Definitely split up your areas if you run this one or set a higher cluster_split_level
  • Rename old "brute force" to balanced

New API Args:
- `cluster_mode`: `Fast`, `Balanced`, `BruteForce`
- `fast` is now deprecated, but will set `cluster_mode` to `Fast` if `cluster_mode` is not set in API
- `cluster_split_level`, similar to `route_split_level`, used for multi threading, determines S2 cell level, accepts 1-30
- Recluster button in polygon popup
- New clustering algorithm is more brute force, works well with a medium to high `min_points`
- Provides anywhere from 25-40% increased performance (in terms of returned cluster count) depending on other settings
- Can be very high CPU and RAM usage if you give it over 10,000 points! Definitely split up your areas if you run this one or set a higher `cluster_split_level`
- Rename old "brute force" to balanced
@vercel
Copy link

vercel bot commented Apr 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
koji ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2023 7:27pm

format!(
"|| [MYGOD_SCORE] {}",
self.total_clusters * min_points.unwrap_or(1)
+ (self.total_points - self.points_covered)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi GitHub!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants