Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Send delayed events to peer early#1219

Merged
Vagabond merged 1 commit into
masterfrom
adt/early-input
Apr 23, 2025
Merged

Send delayed events to peer early#1219
Vagabond merged 1 commit into
masterfrom
adt/early-input

Conversation

@Vagabond
Copy link
Copy Markdown
Member

This is a fork of #1216 where the netcode input delay is hardcoded to 2 ticks, but we are able to send those inputs to the peer before they happen locally, thus reducing perceived lag and pop for the far side.

@Vagabond Vagabond force-pushed the adt/early-input branch 3 times, most recently from 9753ed6 to 4da1db2 Compare April 21, 2025 12:31
Comment thread src/controller/net_controller.c
Comment thread src/controller/controller.c Outdated
Comment thread src/game/scenes/arena.c Outdated
Allow delay of up to 10 frames on local input. This helps reduce the
jittery feel that can happen with laggy netplay. Additionally allow
delay to be set in local play as well so that people can develop muscle
memory for a given input delay.

Netplay delay is hardcoded to 2 ticks.
@Vagabond Vagabond merged commit c9fc31f into master Apr 23, 2025
8 checks passed
@Vagabond Vagabond deleted the adt/early-input branch April 23, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants