Commit Graph

18270 Commits

Author SHA1 Message Date
hiker
76354bb08c Added description on how the main loop with regards to physics works. 2018-01-24 08:38:11 +11:00
hiker
b4d9e03e5c On GUI-less servers the frame rate can be <1ms. Previously the minimum
time-step size was 1 ms, which resulted in the world time advancing
faster than real time.  This caused problems in the communication
and synchronisation with clients.
2018-01-23 08:30:23 +11:00
hiker
a34b014fb5 Assign events to closest time step. 2018-01-16 08:53:45 +11:00
hiker
8d7ff2a948 Store event time explicitly, which makes network replay much easier.
Simplified update updateReplayAndGetDT function.
2018-01-16 08:43:59 +11:00
hiker
7b21bb16e6 Remove debug output. 2018-01-11 08:21:40 +11:00
hiker
7fd0754bfe Improve script to handle any dimensional data (e.g. scalars as well). 2018-01-11 07:59:18 +11:00
hiker
f6abdefe05 Removed debug output. 2018-01-10 18:37:56 +11:00
hiker
4c6a226968 Fixed index for steering events - physical replays now appear to be identical
to the original recording.
2018-01-10 18:37:12 +11:00
hiker
f5af65f4ef Increased precision of written time step sizes, since otherwise
the floating point differences will cause a different number of
physics time steps to be taken (which causes replay differences).
2018-01-10 18:10:39 +11:00
hiker
bb9f2c6385 Fixed loop structure (which only worked with a single kart *blush*). 2018-01-09 08:00:17 +11:00
hiker
f242120cd1 Fixed difference from one replay to the next (caused by returning the
actual measured DT in certain cases instead of the recorded one).
2018-01-09 07:56:10 +11:00
hiker
8e8567f6ee In case of networking there might be no history frame for a given time -
restructure loop so that it is not always executed at least once in
networking, but is done once in case of history replay.
2018-01-04 09:02:03 +11:00
hiker
547e59e866 Avoid storing history information during a rewind. 2018-01-04 09:01:24 +11:00
hiker
cdf3dd8062 Prevented a crash when aborting STK (audio thread is not shut down
in this case, but is getting deleted - but the audio thread might
still try to insert an update event during that time).
2018-01-04 08:58:37 +11:00
hiker
373ec0f242 Made the history files use events for players (will break physics replay
for AIs for now). Useful for network debugging.
2018-01-03 16:29:35 +11:00
hiker
c1a3d281f6 Merge remote-tracking branch 'origin/master' into game_protocol 2017-12-19 11:57:31 +11:00
hiker
9addcc4a55 Fixed handling of steering etc events: they are now properly
done at the closest time stamp, previously they were typically
exectuted too early on the server.
2017-12-19 11:14:33 +11:00
hiker
4d02e736f7 Started to add smoothing of errors - atm only for position, not angle. 2017-12-18 23:13:59 +11:00
hiker
51fd0c1e8e Don't limit number of physics steps in networking, since otherwise
physics results can diverge.
2017-12-18 23:08:40 +11:00
Deve
2b8737a75b Remove known issues from android readme.
We can use github issues for it.
2017-12-12 23:07:01 +01:00
hiker
f0d07a2de4 Execute rollback detection only on client; added comments
for potential future improvements.
2017-12-11 18:01:33 +11:00
Benau
a55e7d204a Fix wrong newline in linux terminal 2017-12-11 11:00:06 +08:00
Benau
dc562103c5 Remove wrong commit 2017-12-10 00:12:35 +08:00
Benau
f70af4677c Add direct conversion to map for xml nodes 2017-12-09 16:06:43 +08:00
hiker
2f747cf614 Remove REQUIRED_LOGIN #ifdef which is not needed anymore with the new menu. 2017-12-09 00:57:08 +11:00
hiker
825deed8dd Merge remote-tracking branch 'origin/master' into game_protocol
Fixed various conflicts.
2017-12-09 00:56:30 +11:00
hiker
eea6196231 Merge branch 'buffer-log-messages' 2017-12-07 09:43:56 +11:00
hiker
ebcab8d4e0 Fixed compiler warning. 2017-12-07 09:43:27 +11:00
hiker
5b296b08f9 Merge remote-tracking branch 'origin/master' 2017-12-07 09:43:09 +11:00
hiker
2810d2ad7d Merge remote-tracking branch 'origin/master' into buffer-log-messages 2017-12-07 09:39:29 +11:00
hiker
55d0df7bad Added option to buffer log messages (which can reduce debug output
overhead).
2017-12-04 11:32:09 +11:00
auria.mg
1afb62c97d Bring back the ability to skip the unlock cutscense, fixes #3069 2017-12-03 18:44:50 -05:00
Benau
d9937d7b33 Fix physical object from meta library 2017-12-03 23:58:17 +08:00
hiker
7744b056ea Merge branch 'master' of github.com:supertuxkart/stk-code 2017-12-04 00:41:28 +11:00
Benau
7ab8477a53 Reserve onReset of scripting method for library nodes (unused atm) 2017-12-02 15:24:36 +08:00
Benau
3607c7d520 Adjust irrlicht CSkinnedMesh class for .spm
The last frame in .spm is usable
2017-12-02 15:24:05 +08:00
Benau
2161efd9c4 Allow configure animation set through scripting 2017-12-02 02:36:43 +08:00
Benau
60a3890c78 Add support for meta library objects 2017-12-01 13:59:00 +08:00
hiker
3093803762 Add support for a 'prefix' to be printed for all log messages. 2017-11-30 17:49:45 +11:00
hiker
4f5b4aed0b Change the bld directories to be looked for to all include -64; changed
name of installer and only include 64-bit redistributable.
2017-11-30 17:48:34 +11:00
hiker
ae57be8f3b Changed version number to be git, added 32bit to installer name, and only include
the 32 bit redistributable.
2017-11-30 17:47:24 +11:00
hiker
efde9ac501 If more than one state arrived in one timestep for a client, rewind
to the latest one (not the earliest).
2017-11-28 17:26:00 +11:00
auria.mg
48aded5f6d Login screen : proper post-login redirection 2017-11-27 18:07:42 -05:00
auria.mg
579a4aa3cc Improve the way to enable/disable the networking menu, use the --online switch that previously existed 2017-11-26 21:54:48 -05:00
auria.mg
4f528c258d Disable new networking menus, will be enabled back in the networking branch 2017-11-26 21:48:45 -05:00
hiker
0b6e793df6 Script to print the per-timestep interpolated error plus maximum
and average error when comparing client and server debug output.
2017-11-27 08:32:44 +11:00
auria.mg
d92476ae70 First implementation prototype of the new netwoking UI, as discussed. 2017-11-25 18:51:49 -05:00
hiker
b08e2f56e1 Make the number of state updated the server sends configurable. 2017-11-24 18:33:26 +11:00
hiker
37ee602f28 Added state type to debug output. 2017-11-24 18:15:39 +11:00
hiker
7508b5db8b Fixed index in debug output and compiler warning. 2017-11-24 18:10:55 +11:00