Performance
Game Scenario 1
This a Snake Game designed to demonstrate the performance differences between optimized and non-optimized RPC nodes in the Sonic blockchain.
Overview
The Snake Game is a simple interactive game where the player’s moves are synchronized on-chain. This scenario highlights the impact of blockchain performance optimizations on gameplay. It provides a comparative analysis of transaction success rates and responsiveness under identical game environments with and without RPC optimizations.
You can access this game segment through the following URL:
https://game1.hypergrid.dev/
-
Optimized RPC Node Performance:
-
Unoptimized RPC Node Performance:
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 optimizations.
- Improved responsiveness and stability during gameplay.
Repository Structure
Code Directory
- Game Code:
Contains the implementation of the Snake Game, including the game logic and user interface.
Blockchain Contract Code
- Program Code:
Contains the smart contract deployed on the Sonic blockchain to manage on-chain transactions for the game.