Alternate Current is an efficient and non-locational redstone dust implementation. Its main focus lies in reducing the lag caused by redstone dust, by optimizing the power calculations and reducing the number of shape and block updates emitted. As a side effect of these changes the block update order of redstone dust networks is predictable and intuitive rather than locational and chaotic.
Performance
MSPT contributions of redstone dust are up to 30 times lower with Alternate Current, all the while maintaining a high level of Vanilla parity. Its low number of code modifications make it minimally invasive, so it's an easy drop-in replacement for Vanilla redstone dust.
Check out the GitHub page for a detailed explanation of Alternate Current's improvements.
Why is redstone dust so laggy?
There are two main reasons why redstone dust is laggy: unnecessary updates and unnecessary calculations, both of which are caused by the fact that redstone dust updates recursively. A redstone wire can update its power level over half a dozen times before settling on the final value, doing expensive calculations and emitting copious amounts of shape and block updates each time. On top of that, many shape and block updates are completely redundant.
How does Alternate Current fix that?
Alternate Current fixes these issues by doing power calculations of the entire network before updating the power levels. Each wire will check power from non-wire components just once and power from other wires just twice. Power sources within the network are identified, and the power is spread from there. This makes the calculations more efficient and the update order more intuitive. Shape and block updates are only emitted when the final power level is reached, and each wire emits no redundant updates.
本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。
操作
创作者
待认领资源
成为此资源的创作者
其他链接
最近更新资源
阿卡迪亚的天启:天选之歌
热度 752 | 1 周前更新
机械动力:航空学 - All of Create - Aeronautics
热度 731 | 1 周前更新
天空开拓者:耕云纪元
热度 608 | 1 周前更新
更好的MC Better MC [FORGE] BMC4
热度 570 | 1 周前更新
剑痕纪元
热度 2109 | 1 周前更新
咒术回战(咒术战斗) - Jujutsu Kaisen (Sorcery Fight)
热度 3659 | 2 周前更新
机械动力:工业与牧歌 - Create: Industry and Pastoral
热度 4959 | 2 周前更新
虚饰作品-Fictional
热度 5003 | 3 周前更新
猎杀:历史 1949 - Hunt: History 1949
热度 2325 | 3 周前更新
更好的MC Better MC [NEOFORGE] BMC5
热度 2513 | 3 周前更新
ATM10:空岛 - All the Mods 10: To the Sky
热度 1126 | 3 周前更新
方块宝可梦x纪元(Cobblemon x Era)
热度 5837 | 3 周前更新
评论区 (0)
登录 后才能发表评论
快来发表第一条评论吧!