Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
fix: LatencyTracerPayload buffers are now 2
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Jan 13, 2024
1 parent d9ce7ef commit 736bb66
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ This changelog follows the patterns described here: <https://keepachangelog.com/

Subheadings to categorize changes are `added, changed, deprecated, removed, fixed, security`.

## 0.8.9

### fixed

- Upped the `LatencyTracerPayload` buffer bound from 1 to 2, to avoid warnings when updates aren't in sync.

## 0.8.8

- First public release. Previous versions are untracked.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"

[workspace.package]
edition = "2021"
version = "0.8.8"
version = "0.8.9"
license = "MIT/Apache-2.0"
description = "A client-server library designed over WebRTC for Bevy"
repository = "https://github.com/vectorgameexperts/bevy-rtc"
Expand Down
2 changes: 1 addition & 1 deletion bevy-rtc/src/client/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl Plugin for RtcClientPlugin {
fn build(&self, app: &mut App) {
app.add_event::<SocketRecvEvent>()
.insert_resource(RtcState::default())
.add_bounded_protocol::<LatencyTracerPayload>(1)
.add_bounded_protocol::<LatencyTracerPayload>(2)
.add_state::<RtcClientStatus>()
.add_event::<ConnectionRequest>()
.add_event::<RtcClientEvent>()
Expand Down
2 changes: 1 addition & 1 deletion bevy-rtc/src/server/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl Plugin for RtcServerPlugin {
fn build(&self, app: &mut App) {
app.add_event::<SocketRecvEvent>()
.add_event::<RtcServerEvent>()
.add_bounded_protocol::<LatencyTracerPayload>(1)
.add_bounded_protocol::<LatencyTracerPayload>(2)
.add_state::<RtcServerStatus>()
.insert_resource(RtcState::new(
(Ipv4Addr::UNSPECIFIED, self.port).into(),
Expand Down
4 changes: 2 additions & 2 deletions demos/painting-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ fn main() {
app.add_plugins(MinimalPlugins)
.add_plugins(LogPlugin::default())
.add_plugins(RtcServerPlugin { port: 3536 })
.add_bounded_protocol::<ChatPayload>(1)
.add_bounded_protocol::<DrawLinePayload>(1)
.add_bounded_protocol::<ChatPayload>(2)
.add_bounded_protocol::<DrawLinePayload>(2)
.add_systems(
Update,
(
Expand Down
2 changes: 1 addition & 1 deletion demos/ping-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn main() {
.add_plugins(MinimalPlugins)
.add_plugins(LogPlugin::default())
.add_plugins(RtcClientPlugin)
.add_bounded_protocol::<PingPayload>(1)
.add_bounded_protocol::<PingPayload>(2)
.add_systems(
OnEnter(RtcClientStatus::Disconnected), // Automatically-reconnect
|mut connection_requests: EventWriter<ConnectionRequest>| {
Expand Down
2 changes: 1 addition & 1 deletion demos/ping-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fn main() {
.add_plugins(MinimalPlugins)
.add_plugins(LogPlugin::default())
.add_plugins(RtcServerPlugin { port: 3536 })
.add_bounded_protocol::<PingPayload>(1)
.add_bounded_protocol::<PingPayload>(2)
.add_systems(
Update,
|mut reader: NetworkReader<PingPayload>,
Expand Down

0 comments on commit 736bb66

Please sign in to comment.