跳到正文

SBW Optimized

作者:VellEagle

This mod optimizes the rendering of vehicle entities loaded by the “Superb Warfare Mod.”

收藏

截图

介绍

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

SBW Optimized was formerly known as SBW Mesh Loader. Although the name has changed, all the features of the original SBW Mesh Loader have been fully carried over to SBW Optimized. Updating will not result in the loss of any features from the original SBW Mesh Loader, so please feel free to update from SBW Mesh Loader to SBW Optimized.

 

SBW Optimized is a client-side rendering optimization mod for Superb Warfare. It makes Superb Warfare vehicles much lighter to render, and it includes the mesh-model loader used by Superb Warfare addons (formerly SBW Mesh Loader).

⚠ This mod does not add any tanks or fighter jets by itself. To add tanks and jets, install Superb Modern Combat together with this mod.

🧪 This mod is in beta. It may behave unexpectedly.

🚫 Please do not report bugs from SBW Optimized to the Superb Warfare servers under any circumstances. Report them in the comments section of this mod or on Vell’s Mods info server.


What it does

Faster Superb Warfare vehicles (automatic)

All Superb Warfare vehicles, both cube models and mesh models, are rendered with VBOs (Vertex Buffer Objects). Each vehicle part is uploaded to the GPU once. After that, each frame only has to tell the GPU where each part is, instead of re-processing every vertex on the CPU.

  • No setup needed. It works with Superb Warfare and its addons without changing them.
  • Looks the same as before. Glass and other semi-transparent parts keep correct depth sorting, hidden faces are culled, and glowing, hidden, and animated parts behave as usual.
  • Light changes are free. Vehicles never need to be rebuilt when they drive into shadow or light.
  • Correct vanilla shading. Without a shader pack, face shading matches vanilla. Oculus shader packs are supported.
  • Smart batching. Tiny parts stay on Minecraft’s normal batched path, where they are cheaper to draw.

Mesh-model loader for addons (formerly SBW Mesh Loader)

  • Loads Blockbench poly_mesh models for Superb Warfare addons and renders them with VBOs.
  • Automatically merges parts that never move, so each model needs as few draw calls as possible.
  • Bones with translucent in their name are drawn with correct transparency.
  • Includes a tank track system that draws a whole track loop in a single draw call.

Configuration

config/sbwoptimized-client.toml. Changes apply while the game is running.

Option Default Description
vehicleVbo true Turn the vehicle optimization on or off (handy for comparing FPS)
smallChunkVertexThreshold 128 Parts with this many vertices or fewer use Minecraft’s normal rendering
fixVanillaLighting true Match vanilla face shading when no shader pack is used

Requirements

  • Minecraft 1.20.1 / Forge 47+
  • Superb Warfare (a version with mesh model support)

Client-side only. Install it on the client. It does nothing on a server and is not required there.

If you used SBW Mesh Loader before, remove it. SBW Optimized replaces it.


For addon developers

If you release a Superb Warfare addon that uses mesh models through this mod’s loader, you must list SBW Optimized as a dependency.

For usage examples, see the Superb Modern Combat source code. Moving from SBW Mesh Loader only requires changing the package names (com.example.sbwmeshloader.core → com.velleagle.sbwoptimized.meshloader).


License

Released under the GPL-3.0 License.


*This project uses generative AI to create code.

常见问题

SBW Optimized 支持哪些 Minecraft 版本?

SBW Optimized 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

SBW Optimized 怎么安装?

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

评论

登录后评论和评分

VellEagle 的其他作品

查看全部 →