lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Uh... World of warcraft is not a real time application ... And is not deterministic in any way.

For real time apps I can't say I've used lua but I suspect that disabling the gc and initializing lua with a custom allocator will get you very deterministic. you don't really have scheduling issues since everything runs in a single thread. The only thing I can think of that might vary widely in timing is tables. Might either have to do some analysis there or simply avoid them. Beyond that from what I've seen things are pretty consistent.

Sent from my Verizon Wireless BlackBerry


From: Brett Cameron <brett.r.cameron@gmail.com>
Sender: <lua-l-bounces@lists.lua.org>
Date: Sat, 16 Oct 2010 12:54:39 +1300
To: Lua mailing list<lua-l@lists.lua.org>
ReplyTo: Lua mailing list <lua-l@lists.lua.org>
Subject: Re: Real-time application

Alex,
 
Check out http://lua-users.org/wiki/LuaUses (and elsewhere). For instance, Lua is used for several games that certainly have aspects of real-time about them. My son is in fact ugrading one such game (World of Warcraft) as I type...
 
Brett


 
2010/10/16 Alex de Magalhães <alex@lisha.ufsc.br>
Hey everyone,

Could anyone tell me if it's possible to make real-time applications in Lua? If it's not, then why? I know that GC usually impacts RTC, but I don't know if there are other sources of trouble. Has anyone tested the impact of GC in real-time Lua applications, if there is any?

Well, that's all for now. I hope to hear from you soon.

Sincerely,
Alex