AnnulusGames / Lua-CSharp

High performance Lua interpreter implemented in C# for .NET and Unity
MIT License
184 stars 8 forks source link

performance report with xlua or tolua ? #35

Open killop opened 1 month ago

killop commented 1 month ago

is there any performance report with xlua or tolua https://github.com/topameng/tolua https://github.com/Tencent/xLua

AnnulusGames commented 1 month ago

I will create a benchmark in Unity in the near future.(For some reason xLua does not work in my environment, I am currently investigating...)

killop commented 1 month ago

on my point combine luau and unity should be the best choise: https://github.com/luau-lang/luau and we can compiler luau by zig :for https://github.com/SnorlaxAssist/zig-luau

AnnulusGames commented 1 month ago

The biggest advantage of Lua-CSharp is not its performance, but its strong integration with C#. Lua-CSharp is built on C#, so it is very easy to incorporate and works stably on any platform. In particular, there are very few libraries that provide complete async/await integration, which is a huge advantage, especially when writing scripts within a game.

killop commented 1 month ago

absolutely yes ! it is a hard task to optimize that c-lua(like x-lua and to-lua ) call unity c-sharp code