hiker
fdd551a730
Fixed debug compilation.
2017-07-24 23:56:34 +10:00
hiker
ea3f9f8945
Merge branch 'master' into game_protocol
2017-07-24 21:12:36 +10:00
hiker
46bc3493b4
Coding style changes to profiler. Replaced ";" as separator with " "
...
(which is gnuplot friendly), and also added column number to header
to make it easier to know which column is what field.
2017-07-24 16:54:45 +10:00
hiker
48de916f68
Added non-interpolated physics position to debug output.
2017-07-24 16:53:51 +10:00
hiker
721cebc325
Added timestamp to debug output.
2017-06-27 19:02:03 +10:00
hiker
59ae3e8e63
Added documentation.
2017-06-22 17:39:56 +10:00
hiker
95016d03f4
Removed unnecessary loop.
2017-06-22 17:32:27 +10:00
hiker
60bbd4951a
Added more debug output.
2017-06-22 09:54:55 +10:00
hiker
dd9e361289
Stop startup time being accelerated in network games (which results
...
in client and server to become out of synch).
2017-06-14 08:28:06 +10:00
hiker
283f3b94d3
Fixed tiem correctoin (which was in the wrong direction).
2017-06-14 08:27:34 +10:00
hiker
72e7c5a4cb
Updated unit testing for latest code changes, removed old/commented
...
out code.
2017-06-08 09:29:42 +10:00
hiker
08cd8bf235
Added debug output.
2017-06-08 09:17:34 +10:00
hiker
f772c090ec
If a state from the server is received in the future (which can happen
...
if the server is forced to a rewind), make sure to still replay
the state.
2017-06-07 22:09:22 +10:00
hiker
0cc3a2d63f
Removed unnecessary call.
2017-06-07 18:57:24 +10:00
hiker
48bbdc0e07
Determine end of rewind period by reaching the latest TimeStepInfo
...
(i.e. the one that was just added for the upcoming timestep that
first needed to do the rewind) instead of comparing world time
and end time - the latter is prone to floating point differences,
causing rewinds to 'rewind' the timestep that has yet being computed.
2017-06-07 09:33:40 +10:00
hiker
a13856c6d1
Adjust DT on client (due to server requests) at time DT is computed
...
(to keep consistent DT across all further calls, esp. avoid
issues with rewinding getting different DT).
2017-06-05 09:46:34 +10:00
hiker
f32a1961e2
Minor bugfix.
2017-06-05 09:06:12 +10:00
hiker
3747427c5f
ixed handling of adding states to time step info to minimise
...
rewindw by assigning new events to existing time step info events.
2017-06-05 08:54:52 +10:00
hiker
34af963cc1
Fixed incorrect server-start-delay (caused by the start delay
...
being delivered in a different thread, so adding DT in the main
thread was not the right time step).
2017-05-29 15:08:32 +10:00
hiker
742be06c21
Removed code duplication by using macros.
2017-05-22 12:38:21 +10:00
hiker
fb5a600787
Remove 'duplicated' input events (e.g. auto-repeat might send
...
'accelerate' events over and over). This reduces traffic to
the server and other clients (and fixed a bug caused by rewinding
those events in the wrong order).
2017-05-17 09:19:19 +10:00
hiker
54fdd2d586
Add prefix for log messages during a rewind.
2017-05-16 22:01:32 +10:00
hiker
6162be9432
Add support for a 'prefix' to be printed for all log messages.
2017-05-16 22:00:35 +10:00
hiker
17751631f1
Protocol data structure uses now finer grained locks, avoiding that
...
asynchronous updates or event delivery can be delayed by synchronous
updates/event deliveries to a different protocol.
2017-02-15 09:57:38 +11:00
hiker
efeea8eeb2
More debug output.
2017-02-15 09:50:00 +11:00
hiker
69658c557b
Refactored the event/state handling to make it somewhat faster by
...
avoiding creating smaller time steps on the server when events
from clients are received, and also made it easier to handle
duplicated states (i.e. server rewinds and sends a second state
for a certain time).
Still work in progress though.
2017-02-09 09:03:15 +11:00
hiker
ffff62ff52
Removed debug code.
2017-02-01 18:06:36 +11:00
hiker
9df07ac0c2
Rearranged code somewhat to make it easier to read - only cosmetic changes.
2017-01-31 18:25:30 +11:00
hiker
d8706e2319
Added log message when server starts a race on clients.
2017-01-30 09:29:58 +11:00
hiker
a3b959cee9
Avoid that the server replays states saved in the previous frame.
2017-01-30 08:58:00 +11:00
hiker
6cc795fc60
Use a std::list instead of std::vector for the list of events. This allows
...
not to lock the whole event queue while an event is being delivered, which
allows more parallelism (especially the asynchronous eventss queue is not
locked while e.g. the world is loaded, which can take several seconds).
2017-01-30 08:54:23 +11:00
hiker
dfc5c1499c
Added separate log message for disconnecting clients.
2017-01-30 08:52:41 +11:00
hiker
cebf24f3af
Don't use the time during a rewind to determine if a client needs
...
to slow down.
2017-01-27 23:45:25 +11:00
hiker
5690eb0edd
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-01-26 23:14:43 +11:00
deve
62bcf52f9c
Add a possibility to select team without a keyboard for single player mode
2017-01-26 10:23:45 +01:00
deve
99b2cd7e57
Some corrections in team selection events
2017-01-26 10:22:31 +01:00
deve
85f153f0d5
Move changing a team to separate function to avoid code duplication
2017-01-26 09:21:35 +01:00
Deve
49a77a8f48
Add a possibility to disable touch steering in options.
...
It may be useful if someone wants to play with external keyboard.
The multitouch_mode parameter will be also used to choose between steering with buttons and using accelerometer.
2017-01-25 21:50:11 +01:00
hiker
2ca7a1468e
Fixed compiler warning.
2017-01-25 22:17:06 +11:00
hiker
37af3a3690
Fixed coding style issues (same should be done with speedweight objects).
2017-01-25 22:16:40 +11:00
hiker
3edff9523e
Fixed compiler warning.
2017-01-25 22:16:40 +11:00
hiker
7ad0a0cf69
Fixed coding style issues (same should be done with speedweight objects).
2017-01-25 21:55:16 +11:00
hiker
ecc4e30cbe
Fixed compiler warning.
2017-01-25 21:51:26 +11:00
deve
9ede4d2185
Merge branch 'master' of https://github.com/supertuxkart/stk-code
2017-01-25 10:29:18 +01:00
deve
fea3b1b3e5
Set curl nosignal option.
...
It fixes the crash under cygwin and should also fix a crash when c-ares/threaded resolver are not available in curl library.
Fixes #2753
2017-01-25 10:28:48 +01:00
hiker
0e6daf9319
Fixed compiler warning.
2017-01-25 18:19:37 +11:00
hiker
096d68c361
Merge remote-tracking branch 'origin/master' into game_protocol
2017-01-25 18:15:24 +11:00
hiker
426cbaaff5
Added '--auto-connect' command line option to automatically connect
...
a client to the first LAN server it finds and start a race - strictly
for debuggint ;)
2017-01-25 14:29:48 +11:00
auria.mg
6e8480379b
Add support of headlight models to karts
2017-01-23 20:14:42 -05:00
Arthur-D
925d756454
Adding some replays from Kitoko, thanks! Also removing a few so as to keep a low number of replays, and renamed easy replay files to novice.
2017-01-23 23:44:34 +01:00