Performance Tuning

Performance Tuning

BuildersWand is designed to be efficient, but server performance can vary based on configuration, hardware, and usage patterns. This guide helps you optimize the plugin for your specific server setup and usage requirements.

Anti-Lag System

Configuration

performance:
  anti-lag:
    enabled: true                 # Enable anti-lag features
    max-blocks-per-tick: 100      # Maximum blocks processed per tick
    max-processing-time: 10       # Maximum processing time per tick (ms)
    operation-delay: 2            # Delay between large operations
    spread-operations: true       # Spread operations across multiple ticks

Anti-Lag Features

  • Block Limiting: Limits blocks processed per server tick

  • Time Limiting: Limits processing time per tick

  • Operation Spreading: Spreads large operations across multiple ticks

  • Queue Management: Queues operations when limits are reached

Tuning Guidelines

Low-End Servers (2-4GB RAM, 2-4 cores):

Mid-Range Servers (4-8GB RAM, 4-8 cores):

High-End Servers (8GB+ RAM, 8+ cores):

Memory Management

Configuration

Memory Optimization

Selection Caching

  • Caches recent selections to avoid recalculation

  • Automatically cleans up old selections

  • Limits cache size per player

Memory Limits

  • Prevents excessive memory usage

  • Automatically frees memory when limits are reached

  • Monitors memory usage in real-time

Tuning Guidelines

Conservative Memory Settings:

Balanced Memory Settings:

Aggressive Memory Settings:

Rendering Optimization

Configuration

Rendering Settings

Low-End Servers:

Mid-Range Servers:

High-End Servers:

Particle Optimization

Processing Optimization

Configuration

Processing Features

Async Processing

  • Processes operations in background threads

  • Reduces main thread load

  • Improves server responsiveness

Batch Updates

  • Groups multiple block updates together

  • Reduces server tick impact

  • Improves overall performance

Chunk-Based Processing

  • Processes blocks by chunks

  • Reduces memory fragmentation

  • Improves cache efficiency

Tuning Guidelines

Conservative Processing:

Balanced Processing:

Aggressive Processing:

Usage Restrictions

Rate Limiting

Restriction Guidelines

Strict Restrictions (Low-End Servers):

Moderate Restrictions (Mid-Range Servers):

Loose Restrictions (High-End Servers):

Physics Optimization

Configuration

Physics Settings

Performance-Focused:

Balanced:

Realistic:

Server-Specific Optimizations

Small Servers (1-10 players)

Medium Servers (10-50 players)

Large Servers (50+ players)

Performance Testing

Testing Commands

Performance Metrics

Monitor these key metrics:

  • TPS (Ticks Per Second) - Should stay above 18

  • Memory Usage - Should not exceed 80% of available RAM

  • CPU Usage - Should not exceed 80% of available CPU

  • Block Processing Rate - Should match your settings

Troubleshooting Performance Issues

Common Problems

High CPU Usage:

  1. Reduce max-blocks-per-tick

  2. Increase operation-delay

  3. Enable spread-operations

  4. Reduce particle counts

High Memory Usage:

  1. Reduce max-cached-selections

  2. Decrease cache-cleanup-interval

  3. Lower max-memory-usage

  4. Enable more frequent cleanup

Low TPS:

  1. Reduce processing limits

  2. Enable async processing

  3. Increase operation delays

  4. Limit concurrent operations

Lag Spikes:

  1. Enable operation spreading

  2. Reduce batch sizes

  3. Increase cleanup frequency

  4. Monitor for memory leaks

Performance Profiles

Minimal Performance Impact

Balanced Performance

Maximum Performance

This comprehensive performance tuning guide ensures BuildersWand runs efficiently on your server while providing the best possible user experience.

Last updated