pustalorc / baseclustering Goto Github PK
View Code? Open in Web Editor NEWUnturned Plugin to cluster/group Buildables & Structures, which allows to define what a player base is.
License: GNU Lesser General Public License v3.0
Unturned Plugin to cluster/group Buildables & Structures, which allows to define what a player base is.
License: GNU Lesser General Public License v3.0
This is going to be documented here, as DiFFoZ reported it as happening, and it is a known issue but not obvious at first due to the deferred and multi-threaded nature of buildable processing.
To be clear: the problem lies within the clustering part of the plugin, as its extremely inefficient at this moment for one-to-one changes, but works much better in bulk.
However, it still takes quite some time to finish processing, and of course, spikes the CPU up due to its inefficiency.
Currently, the following actions must be caught for clustering to work as intended:
From that, the clusters should do one of the following actions:
Additionally, any of the following actions should happen where necessary:
The code that handles all of this is split in a couple locations:
Cluster shrinking, splitting and returning: https://github.com/Pustalorc/BaseClustering/blob/master/API/BaseClusters/BaseCluster.cs#L281
Cluster expansion, merging and stealing: https://github.com/Pustalorc/BaseClustering/blob/master/API/BaseClusters/BaseClusterDirectory.cs#L525
If anyone has any ideas for optimizing or improving this entire workload, feel free to open a PR or comment here.
๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.