game-speed-controller
CommunitySafely control game speed across multiplayer.
Software Engineering#unity#multiplayer#time-scale#time-synchronization#game-speed#network-variable#tick-throttling
AuthorSilac1995
Version1.0.0
Installs0
System Documentation
What problem does it solve?
The Game Speed Controller provides a robust framework to dynamically adjust and synchronize Time.timeScale in multiplayer environments, preventing tick throttling and ensuring consistent gameplay as speeds shift from paused to high-speed modes.
Core Features & Use Cases
- Server-authoritative time scaling: the host sets the speed via a central NetworkVariable and all clients apply the change consistently.
- UI and gameplay-safe updates: UI elements and gameplay logic subscribe to OnSpeedChanged and use unscaled time for animations to avoid glitches when speeds change.
- Tick-catch-up and instant hit detection: accumulation-based tick processing keeps AI and combat responsive and ensures hits at high speeds, while hitboxes can be checked immediately on spawn.
- Time synchronization & drift correction: time (day and normalized time) is synchronized across clients, with drift corrections to stay in sync.
Quick Start
Initialize the GameSpeedController in your multiplayer scene and invoke RequestSpeedChange(float newSpeed) to synchronize Time.timeScale across all clients.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: game-speed-controller Download link: https://github.com/Silac1995/My-World-Isekai-Unity/archive/main.zip#game-speed-controller Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.