You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My app uses video encoding, which is really only performant in release mode, and I use naia to send the compressed packets. It's definitely a good idea to prioritize keeping the conditioner out of production builds, but I would like to retain the option of having it enabled for --release.
I think it would be worthwhile (as an alternative) to include an example of how to disable it in the demos.
demos/bevy/shared/src/shared.rs
pubfnshared_config() -> SharedConfig<Channels>{// Set tick rate to ~60 FPSlet tick_interval = Some(Duration::from_millis(20));// Use conditioner in debug mode#[cfg(debug_assertions)]let link_condition = Some(LinkConditionerConfig::average_condition());// Not in release mode#[cfg(not(debug_assertions))]let link_condition = None;SharedConfig::new(SocketConfig::new(link_condition,None),CHANNEL_CONFIG,
tick_interval,None,)}
connorcarpenter
changed the title
Release builds should not include LinkConditionerConfig
Production builds should not include LinkConditionerConfig
Nov 15, 2022
Conditionally compile LinkConditionerConfig so that no conditioning is enabled for release builds
The text was updated successfully, but these errors were encountered: