Page 1 of 1
reading keyboard faster? unable to control by keyboard (lag)
Posted: 03 Oct 2008, 18:16
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%...
Re: reading keyboard faster? unable to control by keyboard (lag)
Posted: 03 Oct 2008, 18:17
by Hoi
The mouse is controlled by something someway, which makes it undependant of game speed, lag, ect.
Re: reading keyboard faster? unable to control by keyboard (lag)
Posted: 03 Oct 2008, 18:18
by imbaczek
these are all valid requests, but currently the only solution is "don't do that."
Re: reading keyboard faster? unable to control by keyboard (lag)
Posted: 03 Oct 2008, 18:22
by Hoi
And if you press pause and then wait for some time, it eventually pauses.
Re: reading keyboard faster? unable to control by keyboard (lag)
Posted: 03 Oct 2008, 18:24
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.
Re: reading keyboard faster? unable to control by keyboard (lag)
Posted: 16 Oct 2008, 22:32
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.