Skip to content

移除 SIMD 启动参数并优化说明#98

Merged
wling-art merged 1 commit intoCubic-Project:mainfrom
Dreeam-qwq:chore/misc-description-update
Mar 20, 2026
Merged

移除 SIMD 启动参数并优化说明#98
wling-art merged 1 commit intoCubic-Project:mainfrom
Dreeam-qwq:chore/misc-description-update

Conversation

@Dreeam-qwq
Copy link
Copy Markdown
Contributor

杂项更新,修改一些描述。并且移除 SIMD 优化的这个参数。

这个启动 SIMD 模块的参数只在核心使用了一些 jdk.incubator.vector 包下的 SIMD 优化才真正有用。目前现有核心的 SIMD 优化都只有一个,那就是来自 Pufferfish 的地图颜色计算的 SIMD 优化。这个优化是能减少一点时间上的开销,但是完全没必要,使用 bukkit.yml 里的颜色缓存 (use-map-color-cache) 可以做到比这更快,几乎 0 开销调用。而且在某些不支持 AVX256/512等等 CPU 指令集的实例环境下,SIMD 的调用会退化到比原先方法还慢,反而成为了负优化。

所以直接去掉比较好,等以后有其他 SIMD 相关的优化出来了需要这个参数,再加回来。

@Dreeam-qwq Dreeam-qwq added the type: documentation Pull request for improvements or additions to docs contents label Mar 20, 2026
@wling-art wling-art changed the title 一些核心相关描述的杂项更新 移除 SIMD 启动参数并优化说明 Mar 20, 2026
@wling-art wling-art merged commit 02b6d4f into Cubic-Project:main Mar 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: documentation Pull request for improvements or additions to docs contents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants