This a Massive Multiplayer Game designed to demonstrate the performance differences between optimized and non-optimized RPC nodes in the Sonic blockchain. This game showcases how blockchain optimizations handle high throughput and concurrency in a multiplayer environment.


Overview

The Massive Multiplayer Game is a dynamic game where multiple players interact within the same scene. Player movements are synchronized on-chain, with each move recorded as a blockchain transaction. This scenario highlights the Sonic blockchain’s ability to support a large number of concurrent players and frequent updates, comparing the results from optimized and non-optimized RPC nodes.

You can access this game segment through the following URL:
https://game3.hypergrid.dev/

Key Metrics

  • Transaction Execution Failure Rate:
    • Unoptimized RPC Node: ~10% failure rate.
    • Optimized RPC Node: ~5% failure rate.
  • Performance Improvements:
    • Reduced transaction execution failure rate by 50% through RPC optimizations.
    • Enhanced scalability, supporting a significantly higher number of players with smoother updates.

Repository Structure

Code Directory

  • Game Code:
    Contains the implementation of the Massive Multiplayer Game, including game logic and multiplayer synchronization.

Blockchain Contract Code

  • Program Code:
    Contains the smart contract deployed on the Sonic blockchain to manage on-chain transactions for player movements and interactions.