Lua to C# Translator

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
VoodooDetective
Posts: 222
Joined: Wed Jan 22, 2020 10:48 pm

Lua to C# Translator

Post 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.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Lua to C# Translator

Post 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.
Post Reply