Last chance—the February Sale ends on 2/22 at 9:59 AM EST!

Network Clock

Elemental Code - Code Plugins - Nov 3, 2023

Simple network synced clock

  • Supported Platforms
  • Supported Engine Versions
    5.2 - 5.3
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.

Network Clock for Unreal Engine is a solution to address time synchronization challenges in multiplayer games. Designed to seamlessly synchronize client time with server time, it eliminates inaccuracies caused by network latency, ensuring a fair and consistent gaming experience for all players.


This plugin improves Unreal Engine's "GetServerWorldTimeSeconds" by actively synchronizing the client clock, compensating for network latency with client-side techniques, and offering customizable settings for precise time synchronization, ensuring a smoother, more responsive multiplayer gaming experience.

Technical Details

Features:

  • Real-time Synchronization: Achieve near-perfect synchronization between the server and client clocks, allowing players to interact with the game world in real-time.
  • Timestamp Management: Precisely timestamp server updates and events, enabling accurate event ordering and validation, regardless of network-related delays.
  • Round-Trip Time (RTT) Measurement: Automatically measure and factor in the round-trip time between clients and the server, allowing for intelligent time adjustments.
  • Latency Compensation: Implement advanced client-side interpolation and prediction techniques, providing a smoother and more responsive gaming experience, even in the presence of latency.
  • Flexible Configuration: Tailor the plugin to suit your game's specific requirements with customizable settings for time update frequency and clock adjustment thresholds.

Code Modules:

  •  Network Clock (Runtime)

Number of Blueprints: 2

Number of C++ Classes: 2

Network Replicated: Yes

Supported Development Platforms: Windows

Supported Target Build Platforms: Windows

Documentation: https://github.com/miltoncandelero/NetworkClockPlugin

Important/Additional Notes: Tested only on Windows but should work on any supported platform as it only uses out-of-the-box unreal engine features.