AnnulusGames / Lua-CSharp

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

performance report with xlua or tolua ? #35

Open killop opened 3 weeks ago

killop commented 3 weeks ago

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

AnnulusGames commented 3 weeks 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 3 weeks 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 3 weeks 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 3 weeks ago

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