reading keyboard faster? unable to control by keyboard (lag)

reading keyboard faster? unable to control by keyboard (lag)

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

reading keyboard faster? unable to control by keyboard (lag)

Post by TradeMark »

How come my mouse actions works even when im lagging like hell, but when i try to press pause button, or anything else, nothing happens until looooong time after?

So, could these keyboard things be readed as often as mouse stuff?

In replay i made game speed +26 or something, and in the end i couldnt pause the game anymore, i got messages like:
Delayed response from no name for frame 33256 (current 119034)
Im gonna take video from the replay, which why i made speed up.

Another solution could be to not send data to myself? it doesnt make sense im sending data to myself when im the only one playing that replay... like couldnt those things be just readed straight from the program, and skipping the network send/receive ? This would fasten the replays like 5000%...
Last edited by TradeMark on 03 Oct 2008, 18:18, edited 2 times in total.
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: reading keyboard faster? unable to control by keyboard (lag)

Post by Hoi »

The mouse is controlled by something someway, which makes it undependant of game speed, lag, ect.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: reading keyboard faster? unable to control by keyboard (lag)

Post by imbaczek »

these are all valid requests, but currently the only solution is "don't do that."
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: reading keyboard faster? unable to control by keyboard (lag)

Post by Hoi »

And if you press pause and then wait for some time, it eventually pauses.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: reading keyboard faster? unable to control by keyboard (lag)

Post by Auswaschbar »

TradeMark wrote:How come my mouse actions works even when im lagging like hell, but when i try to press pause button, or anything else, nothing happens until looooong time after?
Mouse actions are mostly unsynced, so you can click buttons while it lags like hell. Keyboard commands like pause work differently, they had to be send to the gameserver and need to arriva back at your end to actually take effect.
TradeMark wrote:In replay i made game speed +26 or something, and in the end i couldnt pause the game anymore, i got messages like:
Delayed response from no name for frame 33256 (current 119034)
Im gonna take video from the replay, which why i made speed up.
When you make the gamespeed to high, messages will queue up in your buffer and the client is not possible to catch up that fast. After you hit pause, the command is sent to the server which actually stops, but your client has to work on the data which is queued up.

edit: there is a command called skip for that purpose
TradeMark wrote:Another solution could be to not send data to myself? it doesnt make sense im sending data to myself when im the only one playing that replay... like couldnt those things be just readed straight from the program, and skipping the network send/receive ?
Spring doesn't use networking (in a UDP/IP way) in such situations, it uses a shared memory buffer which doesn't suffer from any lag and is, generally spoken, incredible fast.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: reading keyboard faster? unable to control by keyboard (lag)

Post by TradeMark »

Auswaschbar wrote:edit: there is a command called skip for that purpose.
i dont speed up to skip time, i speed up to see game faster. Still, skip doesnt solve anything, since i cant type while it lags.
Post Reply

Return to “Feature Requests”