promotional bannermobile promotional banner

VSSW Performance Fix

A server-side performance addon for Valkyrien Skies Space War 0.6.18

VSSW Performance Fix

AI was used in the making of this project


A server-side performance addon for Valkyrien Skies Space War 0.6.18. The VSSW projectiles were lagging the game pretty hard, so here is a mod that fixes this!

Proven results

Tested live on a Forge 1.20.1 server while spamming laser cannons from a flying ship:

Metric Before After
VSSW server tick usage 3.56% 0.51%
Projectile tick cost 3.43% negligible
Sync packet overhead 3.52% 0.07%
Improvement ~7× faster

The projectile system went from dominating the server tick to being smaller than CC:Tweaked's tick handler.

What it fixes

1. Sync packet flood — Every projectile sent a SyncProjectilePacket to every player on the server, every physics tick (up to 4× per game tick). With 10 projectiles and 5 players this produced ~3000 packets/second. Fixed by replacing sendToAllPlayers with distance-gated, throttled sends.

2. Distance-based ticking — Every projectile ticked at full rate regardless of whether any player could see it. Fixed by bucketing projectiles into three tiers based on nearest player distance: full rate within 96 blocks, half rate within 192 blocks, and 1/4 rate beyond that.

3. Global projectile cap — No upper bound on simultaneous projectiles. Rapid-fire turrets can flood the server with thousands of live projectiles. Fixed with a configurable cap (default: 200).

4. Linear energy shield scan — Every projectile scanned all connector block entities in the world every physics tick to find shields. Fixed with a spatial grid cache that returns only nearby candidates.

5. Redundant chunk force-loading — Projectiles triggered disk I/O on already-loaded chunks every tick. Fixed by skipping the ticket if the chunk is already present.

6. Turret rotation spam — Every turret sent a block-entity sync packet every tick even when stationary. Fixed by suppressing setChanged() when rotation hasn't changed.

Configuration

On first launch, config/vssw_perf_fix.properties is created with all defaults. Edit and restart to tune:

 
 
properties
# Tick rate tiers (blocks)
distanceTick.nearThresholdBlocks=96.0
distanceTick.midThresholdBlocks=192.0
distanceTick.farTickInterval=4

# Global cap
cap.maxProjectiles=200

# Sync packets
packets.syncIntervalTicks=3
packets.syncChunkRange=8

Requirements

  • Minecraft 1.20.1 — Forge 47.x
  • Valkyrien Skies Space War 0.6.18
  • Server-side only — clients do not need this mod

The VSSW Performance Fix Team

profile avatar
  • 1
    Followers
  • 5
    Projects
  • 8.6K
    Downloads

More from feuerdrache0View all

  • SWFA Figura Sync project image

    SWFA Figura Sync

    • 31
    • Mods

    Small mod that puts the correct figura avatar pack into the figura folder on startup!

    • 31
    • May 5, 2026
    • Mods
  • VSSW Client Fix project image

    VSSW Client Fix

    • 119
    • Mods

    A client-side performance fix for Valkyrien Space Star Wars (VSSW) on Forge 1.20.1.

    • 119
    • April 9, 2026
    • Mods
  • Star Wars Fleet Assault project image

    Star Wars Fleet Assault

    • 1.2K
    • Modpacks

    Minecraft server that brings fleet battles to minecraft using Valkyrien Skies!

    • 1.2K
    • March 18, 2026
    • Modpacks
    • +4
  • TACZ: BG project image

    TACZ: BG

    • 6.9K
    • Modpacks

    A minecraft server aiming to bring a decimation-style shooter to the players using Timeless and Classics Zero!

    • 6.9K
    • October 4, 2025
    • Modpacks
    • +3
  • SWFA Figura Sync project image

    SWFA Figura Sync

    • 31
    • Mods

    Small mod that puts the correct figura avatar pack into the figura folder on startup!

    • 31
    • May 5, 2026
    • Mods
  • VSSW Client Fix project image

    VSSW Client Fix

    • 119
    • Mods

    A client-side performance fix for Valkyrien Space Star Wars (VSSW) on Forge 1.20.1.

    • 119
    • April 9, 2026
    • Mods
  • Star Wars Fleet Assault project image

    Star Wars Fleet Assault

    • 1.2K
    • Modpacks

    Minecraft server that brings fleet battles to minecraft using Valkyrien Skies!

    • 1.2K
    • March 18, 2026
    • Modpacks
    • +4
  • TACZ: BG project image

    TACZ: BG

    • 6.9K
    • Modpacks

    A minecraft server aiming to bring a decimation-style shooter to the players using Timeless and Classics Zero!

    • 6.9K
    • October 4, 2025
    • Modpacks
    • +3