跳到正文

VSSW Client Fix

作者:feuerdrache0

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

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Fixes significant FPS drops that occur when multiple idle ships with thrusters are within render range. Tested with 20+ ships carrying 94 thrusters — total ship block entity rendering cost drops from ~34% of the client frame to ~17%.


What does it fix?

Every thruster on every VSSW ship runs an expensive renderTick() call every frame, even when the ship is completely idle with no thrust. This method performs a VS2 ship matrix lookup (getClientShip()) and several quaternion transforms — multiplied across dozens of thrusters across many ships, this adds up fast.

VSSW Client Fix skips renderTick() entirely for thrusters on ships beyond a configurable distance from the player, eliminating the per-frame VS2 overhead for ships you can’t meaningfully interact with.


Features

  • Automatic thruster culling — thrusters on distant ships skip their expensive per-frame VS2 ship matrix lookups
  • Particle cleanup — the particle cube HashSet is cleared for culled thrusters, preventing stale particles from rendering
  • Single config value — just set cullDistance in blocks, done
  • Client-side only — install only on your client, no server changes needed
  • Compatible with Embeddium / Radium / Sodium — uses a Forge event + targeted Mixin, no conflicts with the Embeddium rendering pipeline

Configuration

After first launch, edit config/vssw_client_fix.properties:

 
 
properties
# Thrusters on ships beyond this distance (in blocks) skip their
# expensive per-frame VS2 ship matrix lookups. Default: 100
# Set to 99999 to disable.
cullDistance=100.0

Restart required after changing the config.


Requirements

Dependency Version
Minecraft 1.20.1
Forge 47.x
Valkyrien Skies 2 Any
Valkyrien Space Star Wars (VSSW) 0.6.x

常见问题

VSSW Client Fix 支持哪些 Minecraft 版本?

VSSW Client Fix 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

VSSW Client Fix 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

feuerdrache0 的其他作品

查看全部 →