Skip to content
项目

关于

GGRS 是对 GGPO 的重新构想,为 Rust 带来了 P2P 回滚网络。回滚到未来!

系统与基础设施

这些数字如何统计

实测星标增长

24小时
+1
7天
+3
15天
+5
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

GGRS LOGO

crates.io GitHub Workflow Status

P2P Rollback Networking in Rust

GGRS (good game rollback system) is a reimagination of the GGPO network SDK written in 100% safe Rust 🦀. The callback-style API from the original library has been replaced with a much saner, simpler control flow. Instead of registering callback functions, GGRS returns a list of requests for the user to fulfill.

If you are interested in integrating rollback networking into your game or just want to chat with other rollback developers (not limited to Rust), check out the GGPO Developers Discord!

Live Demonstrations

GGRS has two demo apps — one written with macroquad, the other with bevy. Both use matchbox for WebRTC-based matchmaking.

Note: The hosted matchmaking server is currently offline, so the links below will not find opponents automatically. You can still open the link in two separate browser windows on the same machine to test locally.

Projects using GGRS

Getting Started

To get started with GGRS, check out the following resources:

  • Docs — guide covering setup, sessions, the main loop, requests/events, time sync, and more
  • Examples — runnable P2P, spectator, and sync-test demos
  • API Documentation

Development Status

GGRS is fairly stable. The core functionality for multiple players and spectators has not changed significantly in recent versions. See the Changelog for the latest changes, including those not yet published to crates.io. If you want to contribute, check out existing issues and the contribution guide!

Useful Links

Bevy Plugin

The authors of GGRS are also maintaining a bevy plugin. Check it out:

WASM support through WebRTC sockets

If you are interested to run a GGRS application in your browser, check the amazing Matchbox project! The matchbox sockets are compatible with GGRS through a feature flag:

Godot Wrapper

Godot is a popular open-source game engine. marcello505 is developing a wrapper for GGRS. Find the repository here:

Other Rollback Implementations in Rust

Also take a look at the awesome backroll project, a completely async rollback library. Special thanks to james7132 for a lot of inspiration and fruitful discussion.

Licensing

GGRS is dual-licensed under either

at your option.

探索相关项目

加载中…