Performance
Game Scenario 2
This a Battle Game designed to showcase the performance differences between optimized and non-optimized RPC nodes in the Sonic blockchain. The game demonstrates how blockchain optimizations improve skill-casting responsiveness and transaction success rates.
Overview
The Battle Game is a multiplayer action game where players cast skills during combat. Each skill cast is recorded as a blockchain transaction, and its cooldown is managed on-chain. This scenario highlights the impact of RPC node optimizations on skill responsiveness and transaction reliability.
You can access this game segment through the following URL:
https://game2.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 RPC optimizations.
- Enhanced responsiveness, reducing skill activation delays during gameplay.
Repository Structure
Code Directory
- Game Code:
Contains the implementation of the Battle Game, including game logic and multiplayer support.
Blockchain Contract Code
- Program Code:
Contains the smart contract deployed on the Sonic blockchain to manage on-chain transactions for skill-casting and cooldown updates.