Networking is not an area where performance is important — if it were, games were even worse and LÖVE shouldn't exist at all!
And as far as interpreted languages go, Lua is pretty much the fastest. If you write good code, Lua can even be faster than some compiled languages!
Unnamed Space RTS
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Unnamed Space RTS
Help us help you: attach a .love.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Unnamed Space RTS
I'd advise to reconsider your assertions.
Most of the time spent on networking isn't spent on the calculations themselves, but on the line: the time it takes for an information package from going to computer A to computer B. Assuming that certain obvious precautions are taken (sending everything in one package instead of several, to avoid overheads, for example) processing speed doesn't seem too important on my eyes.
You currently using lua for rendering 60-100 frames per second. Before you spend lots of time implementing a different network schema, I suggest you do some testing with what is already available (Lube)
Most of the time spent on networking isn't spent on the calculations themselves, but on the line: the time it takes for an information package from going to computer A to computer B. Assuming that certain obvious precautions are taken (sending everything in one package instead of several, to avoid overheads, for example) processing speed doesn't seem too important on my eyes.
You currently using lua for rendering 60-100 frames per second. Before you spend lots of time implementing a different network schema, I suggest you do some testing with what is already available (Lube)
When I write def I mean function.
Re: Unnamed Space RTS
I'll admit, I haven't run any benchmarks. I was actually going to before I really started with RakNet. I do like RakNet, though. Either way, I've still got stuff to do before I get into that - networking is still far off in this project.
Re: Unnamed Space RTS
A developer would have to confirm this, but I believe Love networking is based on LuaSockets which is actually written in C then linked into Lua. So the actual time critical stuff is C based.
RakNet is cool though (though it has commercial limitations).
RakNet is cool though (though it has commercial limitations).
Who is online
Users browsing this forum: No registered users and 4 guests