-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathTODO
55 lines (25 loc) · 1.38 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
DONE:
TODO:
----------------------------------------
---------------------------------------
Move single cube data into snapshot structure
Implement a buffer on the client of snapshots indexed by tick
Now bring the code for hermite interpolation back for the cube and smooth it out
Add code to watch how early the server is delivering snapshots to the client
If the client needs to slow down or speed up the iterator for interpolation,
implement this adjustment slowly over time, eg. +/- x ticks over y seconds.
Now we have three time streams:
- interpolated time (most in past)
- server RTT time (client side prediction rewinds to here)
- predicted client time (driven by the server telling the client to speed up or slow down)
----------------------------------------
----------------------------------------
Bring across interpolation delay.
Implement snapshot packets sent to client.
Bring across delta encoding stuff from snapshots and interpolation demo.
-----------------------------------------
At this point should have pure client/server implementation with RTT baked in.
Try running this over the internet to the real server instance running on linux.
Are small adjustments required to get it to work?
Probably... but make sure.
-----------------------------------------