胡佳骏 6527a8ed46 BaseInit | 1 năm trước cách đây | |
---|---|---|
.. | ||
Data~ | 1 năm trước cách đây | |
Editor | 1 năm trước cách đây | |
Plugins | 1 năm trước cách đây | |
Runtime | 1 năm trước cách đây | |
Editor.meta | 1 năm trước cách đây | |
LICENSE | 1 năm trước cách đây | |
LICENSE.meta | 1 năm trước cách đây | |
Plugins.meta | 1 năm trước cách đây | |
README.md | 1 năm trước cách đây | |
README.md.meta | 1 năm trước cách đây | |
README_zh.md | 1 năm trước cách đây | |
README_zh.md.meta | 1 năm trước cách đây | |
RELEASELOG.md | 1 năm trước cách đây | |
RELEASELOG.md.meta | 1 năm trước cách đây | |
Runtime.meta | 1 năm trước cách đây | |
package.json | 1 năm trước cách đây | |
package.json.meta | 1 năm trước cách đây |
HybridCLR is a almost perfect full-platform native c# hot update solution for Unity with complete features, zero cost, high performance, and low memory**.
HybridCLR expands the ability of il2cpp, making it change from pure AOT runtime to 'AOT+Interpreter' hybrid runtime, and then natively supports dynamic loading of assembly , so that the games packaged based on il2cpp backend can be executed not only on the Android platform, but also on IOS, Consoles and other platforms that limit JIT efficiently in AOT+interpreter hybrid mode, completely supporting hot updates from the bottom layer.
HybridCLR not only supports the traditional fully interpreted execution mode, but also pioneered Differential Hybrid Execution technique. That is, you can add, delete, or modify the AOT dll at will, and intelligently make the changed or newly added classes and functions run in interpreter mode, but the unchanged classes and functions run in AOT mode, so that the running performance of the hot-updated game logic basically reaches the original AOT level.
Welcome to embrace modern native C# hot update technology! ! !
HybridCLR is inspired by mono's mixed mode execution technology, and provides additional AOT runtimes such as unity's il2cpp The interpreter module is provided to transform them from pure AOT runtime to "AOT + Interpreter" hybrid operation mode.
More specifically, HybridCLR does the following:
HybridCLR is a native c# hot update solution. In layman's terms, il2cpp is equivalent to the aot module of mono, and HybridCLR is equivalent to the interpreter module of mono, and the combination of the two becomes a complete mono. HybridCLR makes il2cpp a full-featured runtime, natively (that is, through System.Reflection.Assembly.Load) supports dynamic loading of dlls, thereby supporting hot updates of the ios platform.
Just because HybridCLR is implemented at the native runtime level, the types of the hot update part and the AOT part of the main project are completely equivalent and seamlessly unified. You can call, inherit, reflect, and multi-thread at will, without generating code or writing adapters.
Other hot update solutions are independent vm, and the relationship with il2cpp is essentially equivalent to the relationship of embedding lua in mono. Therefore, the type system is not uniform. In order to allow the hot update type to inherit some AOT types, an adapter needs to be written, and the type in the interpreter cannot be recognized by the type system of the main project. Incomplete features, troublesome development, and low operating efficiency.
2023.2.0ax
version is also supported, but not released to the public.HybridCLR has been widely verified as a very efficient and stable solution for hot update of Unity.
The official versions of extremely stable 1.x, 2.x, and 3.x are currently released, which are sufficient to meet the stability requirements of large and medium-sized commercial projects. At present, at least thousands of commercial game projects have been integrated, and hundreds of them have been launched on both ends. The online projects include MMORPG, heavy card, heavy tower defense and other games. Most top game companies (such as Tencent and NetEase) are already using HybridCLR.
You can read the game projects in top game companies those are using HybridCLR and has been launched.
walon : Founder of Code Philosophy (code philosophy)
Graduated from the Department of Physics of Tsinghua University, won the CMO gold medal in 2006, a member of the National Mathematical Olympiad Training Team, and was recommended to Tsinghua University for basic courses. Focus on game technology, good at developing architecture and basic technical facilities.
HybridCLR is licensed under the MIT license