Page 1 of 1

Lua to C# Translator

Posted: Fri Nov 05, 2021 12:44 am
by VoodooDetective
I've been looking for every bit of performance I can get out of our game, so I spent the past couple days writing a Lua to C# translator that supports a VERY limited subset of Lua functionality.

I figured I'd share it in case it's useful to anyone else: https://github.com/Sahasrara/Lua2CSharp

I've seen a >90% increase in performance at times. Not that it was all that time consuming before.

Re: Lua to C# Translator

Posted: Fri Nov 05, 2021 7:54 am
by Tony Li
Thanks!

Another alternative is to switch to NLua. It's a faster Lua implementation, but it requires some one-time extra setup steps.