backroll

Crates.iobackroll
lib.rsbackroll
version0.6.0
sourcesrc
created_at2021-05-29 08:21:16.248945
updated_at2022-11-13 06:06:32.377161
descriptionA pure Rust async implementation of GGPO.
homepage
repositoryhttps://github.com/HouraiTeahouse/backroll-rs
max_upload_size
id403449
size121,054
James Liu (james7132)

documentation

README

backroll-rs

crates.io Documentation License Discord

Backroll is a pure Rust implementation of GGPO-style rollback networking.

Development Status

This is still in an early beta stage. At time of writing, the public facing API is stable, and has undergone limited testing. There may still be notable bugs that have not been found yet.

Differences with the C++ implementation

  • (Almost) 100% pure safe Rust. No unsafe pointer manipulation.
  • Type safety. backroll-rs heavily utilizes generics and associated types to avoid serialization overhead and potentially unsafe type conversions when saving and loading game state.
  • Abstracted transport layer protocols - integrate and use any transport layer library you need. Comes with a raw UDP socket based implementation.
  • Configurable at runtime - Many of the hard-coded constants in GGPO are exposed as configuration parameters during session initialization.
  • Reduced memory usage - Backroll's use of generics potentially shrinks down the sizes of many data types.
  • Vectorized input compression scheme - Backroll utilizes the same XOR + RLE encoding, but it's written to maximize CPU utilization.
  • Multithreaded I/O - All network communications run within an async task pool. I/O polling is no longer manual, nor blocks your game's execution.
Commit count: 125

cargo fmt