Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Fiedler <[email protected]>
  • Loading branch information
gafferongames authored Dec 30, 2023
1 parent ab60b37 commit a9f2435
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ Once you process all acks, clear acks on the endpoint:
reliable_endpoint_clear_acks( endpoint );
```
Update each endpoint once per-frame, so it keeps track of network connection stats like latency, packet loss and bandwidth sent, received and acked:
And make sure to update each endpoint once per-frame, so it keeps track of network connection stats like latency, packet loss and bandwidth sent, received and acked:
```c
reliable_endpoint_update( endpoint, time );
```

See the [stats.c](stats.c) example for more details.

When you are finished with an endpoint, destroy it:

```c
Expand Down

0 comments on commit a9f2435

Please sign in to comment.