LUA
Moderator: Moderators
afaik basic python is one of the slowest interpreted languages around.All I know when it comes to interpreted languages right now is python (which isn't much faster than Java).
http://osnews.com/story.php?news_id=5602&page=3
good idea though, it would be good to support basically any other language to allow more people to work on an AI
Python is entirely interpreted though. Such slowness is expected if you have to parse all of the tokens again when you load the program up again. When using compiled python files (which python now uses by default now), you get quite a performance boost. Lua is still a better choice for game scripting, because its a lot lighter weight than python is.
The fact of the matter is that all interpreted languages are slow, so your best bet is just going with the one that is the fastest. Impliment it so that it isn't consulted every single cpu cycle and you are in luck. =)
The fact of the matter is that all interpreted languages are slow, so your best bet is just going with the one that is the fastest. Impliment it so that it isn't consulted every single cpu cycle and you are in luck. =)
BF2 also has the worst engine backend I've ever seen in a game. It ran twice as worse as Doom 3 while struggling to get graphics that rivalled Unreal... just Unreal. As in Unreal I. Come on, I ran Doom 3 at medium settings at 800x600 and HL2 at high across the board, except water, with 2xAA at 1024x768, and those games are around a year old already! BF2 has no excuse for such a shitty engine.
- [K.B.] Napalm Cobra
- Posts: 1222
- Joined: 16 Aug 2004, 06:15
- [K.B.] Napalm Cobra
- Posts: 1222
- Joined: 16 Aug 2004, 06:15
-
- Posts: 201
- Joined: 30 Apr 2005, 01:06
No, Lua has absolutely nothing to do with C.Cheery wrote:I think python is more like it's own language. LUA looks like a ripoff of C -language, which is hard to learn.
Lua has the advantage of being lighter and faster than Python, but is less powerful.
Another lightweight language which can be nearly as fast as Lua and is slightly better equipped while retaining its lightness is Squirrel .
Very true. I think that Spring is (much) more CPU intensive than the average game, and I don't believe that's because of lack of optimization.still, a number of apps using python doesn't mean it's fast enough for a game like spring.
- PauloMorfeo
- Posts: 2004
- Joined: 15 Dec 2004, 20:53