{"id":25399216,"url":"https://github.com/vsrstudio/resourceoptimizer","last_synced_at":"2025-06-25T07:34:13.645Z","repository":{"id":267956186,"uuid":"902877656","full_name":"VsrStudio/ResourceOptimizer","owner":"VsrStudio","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-13T19:12:24.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T21:36:32.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VsrStudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-13T13:03:46.000Z","updated_at":"2024-12-14T04:11:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"faf255c3-faa1-4b37-9f7b-8daa28acbc0f","html_url":"https://github.com/VsrStudio/ResourceOptimizer","commit_stats":null,"previous_names":["vsrstudio/resourceoptimizer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VsrStudio/ResourceOptimizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VsrStudio%2FResourceOptimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VsrStudio%2FResourceOptimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VsrStudio%2FResourceOptimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VsrStudio%2FResourceOptimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VsrStudio","download_url":"https://codeload.github.com/VsrStudio/ResourceOptimizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VsrStudio%2FResourceOptimizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261827427,"owners_count":23215745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-15T23:37:45.666Z","updated_at":"2025-06-25T07:34:13.632Z","avatar_url":"https://github.com/VsrStudio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ResourceOptimizer Plugin for PocketMine-MP\n\n## Description\n\nThe `ResourceOptimizer` plugin helps optimize resource usage on PocketMine-MP servers by managing memory, entities, and resources dynamically. It helps reduce lag caused by excess entities and resource usage by periodically cleaning up unused resources and removing inactive entities.\n\n### Features:\n- Clean up unused resources periodically.\n- Monitor and manage the number of entities in the world.\n- Automatically clean up resources if memory usage exceeds the specified limit.\n- Remove inactive or non-moving entities to free up resources.\n- Customizable configuration for different limits and behavior.\n\n---\n\n## Installation\n\n1. Download the latest version of the plugin from the releases section of this repository.\n2. Place the `ResourceOptimizer` plugin folder in the `plugins/` directory of your PocketMine-MP server.\n3. Start or restart your server to load the plugin.\n\n---\n\nUsage\n\nOnce installed, the plugin runs automatically based on the configuration settings. It will:\nMonitor the number of entities in the world.\nCheck memory usage of the world.\nClean up unused resources.\nRemove excess or inactive entities if the limits are exceeded.\nYou can check the plugin's logs to see when actions are taken, such as when excess entities are removed or when memory usage exceeds the limit.\n\n---\n\n## Configuration\n\nThe plugin uses a `config.yml` file that can be customized to suit your needs. Below is the default configuration file:\n\n### **config.yml**\n\n```yaml\nresource_cleanup_interval: 300 # Seconds, interval to clean up unused resources\nmax_entity_count: 1000 # Maximum number of entities allowed in the world before warning\nmax_world_memory_usage: 512 # MB, memory usage threshold for the world before warning\nenable_auto_cleanup: true # Enable automatic cleanup if resource usage exceeds limits\ncleanup_inactive_entities: true # Remove inactive or non-moving entities\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsrstudio%2Fresourceoptimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsrstudio%2Fresourceoptimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsrstudio%2Fresourceoptimizer/lists"}