跳到正文

Scorched Guns X EMF: Lag Fix

作者:manofkott

Client-side fix for Scorched Guns' Entity Model Features compat: caches its reflection lookups that ran every frame per entity, eliminating heavy FPS drops near villagers and other EMF-animated mobs.

收藏

介绍

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

ScorchedGuns EMF Compat Fix

A small client-side fix for Scorched Guns when used together with Entity Model Features (EMF), e.g. with Fresh Animations.

What it fixes

1. FPS drops near villagers and other animated mobs

Scorched Guns’ EMF compat looks up an EMF class via reflection every frame, for every body part of every EMF-animated entity, without caching the result. On current EMF versions that lookup fails every time, and each failure throws an exception. The more animated mobs are on screen, the worse it gets: we measured drops from 60 to 10 FPS in villages.

This mod caches those lookups, so the work happens once per game session instead of thousands of times per frame.

2. Weird first-person arms while holding a gun (EMF 3.x + Fresh Animations)

Scorched Guns 1.5 only recognises EMF 2.x. On EMF 3.x its entire EMF compat silently switches off, which leads to:

  • Fresh Animations’ player add-on animating your first-person arms on top of the gun, so they end up rotated and offset against the gun model
  • the third-person aiming pose being overridden by Fresh Animations
  • the is_scguns_gun_held animation variable never being registered for resource packs

This mod bridges Scorched Guns’ EMF compat to EMF 3’s API, which brings all of it back: clean gun arms in first person, a proper aiming pose in third person, and Fresh Animations still running for everything else.

Requirements

  • Minecraft 1.21.1, NeoForge
  • Scorched Guns 1.5
  • Entity Model Features (optional: without EMF this mod simply does nothing)

Client-side only. It is not needed on the server.

Compatibility

  • Patches only Scorched Guns’ own EMF compat class (OptionalClientCompat) and doesn’t touch any other Scorched Guns logic.
  • EMF 2.x setups keep Scorched Guns’ original behaviour, with only the caching applied.
  • If a future EMF version changes its API, the EMF 3 bridge switches itself off with a single log warning instead of crashing.

常见问题

Scorched Guns X EMF: Lag Fix 支持哪些 Minecraft 版本?

Scorched Guns X EMF: Lag Fix 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Scorched Guns X EMF: Lag Fix 怎么安装?

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

评论

登录后评论和评分

manofkott 的其他作品

查看全部 →