I didn't test it, but I highly doubt compressing each packet on its own with zlib will grant you better results then this.gajop wrote:How does network's compression compare to https://springrts.com/wiki/Lua_VFS#Zlib ?
Spring library initiative
Moderator: Moderators
Re: Spring library initiative
Re: Spring library initiative
Why is this better than to have it as just a widget? I mean widgets can be turned off and therefore puts more responsibility to the user instead of the game. Is it just because there is a desire to keep this option always available?Silentwings wrote:There's a widget(/gadget combo) that allows players to watch each others camera - to do so it has to send a large volume of data over the network; about doubles the size of the replay file, for raw data. For many games it's the ~only lua that causes a large volume of network traffic, so the two things have probably evolved together a bit.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Spring library initiative
Exactly that.Is it just because there is a desire to keep this option always available?
Re: Spring library initiative
I think in general that a library is a good initiative. I think what really wanted to say is to be careful with the dependencies, because if libraries depend on too many things they defeat their purpose. For example, if you make a library of trees that depend on roots it's okay, but if you have a tree that depends on a car then it's not so good. I think everybody knows this but I still think it's good to point out.
Re: Spring library initiative
That was sarcasm?hokomoko wrote:You'd find yourself wasting your time on a system that delivers worse results (not to mention mouse movement controls camera as well, so you're probably going to send much much more data than you have thought)PicassoCT wrote:what would happen if we would transfer only the keystrokes and calculate the resulting camera from that..
brb springs git repo
Spring transfers commands of the players, so by having a initial camera send, and the input of the players, influencing the camera filtered out, you get the same thing you get with spring, a deterministic chain of steps from which you can derive the cameras position and direction.
And you dont have to communicate.
You can use whats there allready.
QED
Re: Spring library initiative
No.PicassoCT wrote: That was sarcasm?
Spring transfers commands, not raw mouse/keyboard input.PicassoCT wrote: Spring transfers commands of the players, so by having a initial camera send, and the input of the players, influencing the camera filtered out, you get the same thing you get with spring, a deterministic chain of steps from which you can derive the cameras position and direction.
And you dont have to communicate.
You can use whats there allready.
QED
So it's a data you don't have.
Re: Spring library initiative

Sorry, then - i missunderstood, and thought this to be tech-trollin.
Consider me schooled
:)