Valkyrien Skies (Forge/Fabric)

Valkyrien Skies (Forge/Fabric)

3M Downloads

When I try to add tfcambiental, an addon for TFC, on top of TFC+VS2, the vehicles in VS2 experience bugs.

wglpython opened this issue · 6 comments

commented

This issue occurs when only Valkyrien Skies and addons are installed and no other mods

  • I have tested this issue and it occurs when no other mods are installed

Minecraft Version

1.18

Mod Loader

Forge

Issue description

2~NSQ Z$%G`SE@G@LF$2509

2023-12-08.22-47-40.mp4

When a player stands on a vehicle in VS2, the rendering loading becomes extremely laggy, and it only functions properly when the player is not on the vehicle. I am the developer who previously submitted the compatibility code for TFC and VS2, but this time I can't figure out the cause of the issue.

Issue reproduction

2~NSQ Z$%G`SE@G@LF$2509
use it

Logs

No response

commented

However, what is puzzling is that there are no error messages in the log.

commented

Can run a Spark profile? https://spark.lucko.me/

That will tell us which parts of the code are running slow.

commented

是否可以运行 Spark 配置文件?https://spark.lucko.me/

这将告诉我们代码的哪些部分运行缓慢。

https://spark.lucko.me/Zfd056Sjnz
thx bro

commented

Its the com.lumintorious.tfcambiental.api.EnvironmentalTemperatureProvider.calculateEnclosure() function thats lagging the server. See the flame graph below, I got it from looking at the spark you posted https://spark.lucko.me/Zfd056Sjnz?hl=12203

Screenshot 2023-12-20 001400

commented

Does TFC lag if your player moves very fast in general? I made a mixin to fix calculateEnclosure. Or maybe a newer version of TFCAmbiental broke the mixin and it no longer works? Can you send a log?

commented

如果你的玩家总体上移动得非常快,TFC会滞后吗?我做了一个mixin来修复calculateEnclosure。或者,也许较新版本的 TFCAmbiental 破坏了混合,它不再起作用?可以发送日志吗?

i think probably a question for TFCAmbiental