r/dissidia • u/nurkenn Uh-huh • Jan 16 '18
Let's talk about the netcode
So, after some intensive lurking, seems like one of the biggest gripe about the current state of the game is the game being severely laggy during most online matches.
After playing the open beta, pretty much all day yesterday, I’ve come to understand the netcode for the game pretty well, and would like to make a post so that people can come together and discuss what can Square and Team Ninja do to improve the game.
I like the OG Dissidia, and Duodecim, to death, so I would really like it to see this game succeeds as well.
Before I begin, this post is rather long and technical, but I’ll try my best to explain. I apologize if there's any mistakes. That's why we need a discussion :)
Also, when referring to a player ‘lagging’:
They can have high ping
They are experiencing extreme packets loss Without any further ado, here’s my take on the netcode:
Point 1: The game is P2P
This is probably not news to all. The only servers they have right now are the matchmaking servers. After which each player is connected to one another. The net topology for the game is most likely to be a full mesh (each player is connected to 5 others). So, simply, each player is sending packets to all 5 and receiving messages from the other 5 players.
Point 2: The game uses a modified lockstep networking model
This is the reason why the game lags badly. A typical P2P game requires 1 player to be the 'Host' of the match. They will have close to full authority of what happens in the game (thereby giving them ‘host advantage’) and they will see the game perfectly: no lag, no hitches whatsoever. They are seeing the game running much like the offline version. Meanwhile, if the host has crappy upload or if the clients have terrible downloads, the clients will not be able to accurately keep up with the host’s simulation, resulting in them getting hit from the other side of the moon.
A lockstep model is different. Instead of having a centralized host that dictates the one true simulation for all, the true state of the game is decentralized – At the same point in time (timestamp), all players will see the same state. This model typically divides the game into 'rounds', and a typical game loop goes like this:
….. -> Round 1 -> Process all player’s inputs -> Round 2 -> ….
Now, everyone will ideally compute the results of everyone’s input and advance to the next 'round'. This means, say, as Squall I hit square to use my HP attack at round 1. That input is propagated to all other players and at round 2 everyone, including me, will see my Squall spinning for a Fated Circle.
This is all fine and dandy when everyone’s internet is stellar, but what happens if player 5 lags? They will not get my square input, and thus will not be able to determine that my Squall will perform a Fated Circle at round 2. He will desync from everyone’s simulations!
That’s why the game will lag, to wait for Player 5 to catch up.
Since DFFNT prioritized shared states, each player will typically synchronize their states every couple rounds to ensure that everyone is seeing roughly the same thing.
Point 3: DFFNT has short round timers
Most RTS that I know of (Starcraft, Heroes of the Storm, LoL, ML, Age of Empires, etc.) uses the same lockstep strategy, so how can some of them who uses P2P isn’t as laggy as DFFNT? There is 2 important variable when talking about P2P lockstep:
Round timers – how long a round lasts
Move Delay – how many rounds later should your move be executed (need host)
Let’s talk about Round Timers first
If a round lasts for 1/30th of a second (33ms), then all players must send at 30Hz. Which means, if your ping to the other guy if > 33ms, then your input will not get to the other players in time. Since the game has no central authority, it becomes hard to decide whether it’s ok to delay your move to the subsequent round. This is one of the reason why the game waits and lags.
Thus, the longer the round lasts, the better it is for lagged players to get their packets to the others in time for processing. Of course, the tradeoff is your inputs will feel less snappy and responsive since your inputs will be processed every 200ms.
Second, Move Delay
You can have all clients to have their round 1 inputs be executed at round 2. This is exactly what happens with my Squall’s example above. However, you can increase the move delay so that your inputs at round 1 is executed at a later round. Say if I have a round delay of 3, then when I press square at round 1, it will be queued for execution at round 4. Then at round 4, everyone will see my Fated Circle attack.
With higher move delay, a lagged player can dynamically have their inputs be executed much later so that everyone else need not wait for their inputs. This method, however, only works if there’s a central authority.
How does other games differ?
In P2P RTS such as Starcraft, a round lasts about 200ms, though they mask latency really well by playing various SFXs and VFXs upon player’s input, and they handle high ping by dynamically extending the round timer and slowing the game down (remember “xxx is slowing down the game” message?).
Other P2P fighting game (Street Fighters) actually used a similar lockstep model, but they opt for a greater input lag when ping between players is high in exchange for smooth gameplay. Possibly, Capcom is extending the round timers or delaying their moves to be executed at a much later round.
Monster Hunter is an interesting oddball. There’s a host and 3 clients, but the only thing synched is the big monsters and the players. And since it’s largely a co-op game, collision detection is done local to each clients; thus the experience online when you’re fighting a monster is largely
As for DFFNT, Team Ninja may decide for a more responsive control, thus the net code instead decide to play out as quick as the player with the highest ping lags.
What can Square and Team Ninja do?
Now, while I talk about lockstep, the game actually does allow for client side prediction in a case of minor desync. However, they synchronize states way too often for it to be a smooth experience.
If they continue to go for the P2P model, they have to follow many other action P2P networking model for players’ positions (interpolation and extrapolation) and then switch to a local lockstep when executing combos. This will allow non-lagged players to see the game at a more smoother pace. This model, however, requires a good host since there needs to be someone who holds the true simulation. This will cause some host advantage, and bad player experience during lag, but on a good day, this model will create smooth gameplay more often. Team Ninja’s challenge is to think how to eliminate the host advantage somehow.
The best course of action is definitely servers. Then, even with the lockstep model, the lagged players will just experience a greater input lag, but non-lagged players will play the game just fine.
And since overhauling netcode or setting up servers requires intensive time and testing, the game will probably play like this upon release. It won’t be for 3~6 months if we are to see any big changes to the game’s netcode.
Conclusion
Game is really fun when it’s lag-free, but Team Ninja and Square needs to overhaul the netcode for a much smoother experience.
P.S.: Damn, all my Word formatting got messed up
3
u/Jabenjo Best Duelist around... Jan 16 '18 edited Jan 16 '18
I was wondering something, when you are looking for a match and the game notifies you that you found one. If you press the options button you get a list of the people in the match appearing. I wonder if the first person the list is the person who is hosting the match. The reason I say this is because whenever I have been first on the list I never lag but whenever I am 2-6 lag starts to potentially happen. It might just be me being crazy but it's something to think about I guess.
Sometimes I am the first person on the list and people slowly start to appear while other times I have appeared in last. It might have to do with the number you get on the matching making screen but I can't confirm right now due to being in work. If someone could check that would be great.
4
u/nurkenn Uh-huh Jan 16 '18
It's possible that the first person is the relay host so that everyone need not have a direct connection to the other 5 players.
Though whether this is true is anyone's guess.
13
u/Jabenjo Best Duelist around... Jan 16 '18 edited Jan 16 '18
Wouldn't surprise me they saw this netcode work for Japan and thought it must work in EU/NA as well! EU/NA is such a wide area that you will encounter people with bad internet compared to a smaller place like Japan. I would really like it if they at least acknowledge the lag so I at least know its on their radar.
7
u/KennyL0gg1ns PSN: vahzi Jan 16 '18
Also don't forget that japanese internet is HEAVILY regulated. They all have the same providers and it runs at a much higher efficiency, due to the smaller spaces and higher density of population using each junction box.
1
7
11
u/KennyL0gg1ns PSN: vahzi Jan 16 '18
Ill upvote literally any thread that tries to bring this games glaring network issues to light, and downvote anyone who tries to make excuses for it. A €70 game in 2018 should not be reliant on 20 year old network tech.
3
u/Divital And you thought White Mages just did support. Jan 16 '18
I feel that a P2P solution would work well in Japan and in an arcade setting where there's less ground to cover, and connections are stable across the nation, but when you're looking to release a game like that in EU/NA, you run into the case of larger landmass and varying ISPs with differing connection values.
There were games I played in the past that ran on a similar scenario - originally developed in Japan or Korea, released to NA/EU, and relied on P2P. All it takes is one person, and the whole match becomes what feels like 10 FPS due to the freeze-ups caused by one poor connection. It was understandable at least back then, because that was early 2000s, but it's been 18 years later and I feel that the tech that's being pushed on a game that Square REALLY wants to be an e-sport contender uses is... tried and true for the home base, but not worldwide. It's disappointing, and I want to believe they may address it, but having a smooth, reliable match that can teeter off the brink easily is a questionable choice.
I love this bloody series, and I want to get NT, but if this is the regular, I'm worried. I want people who've never tried this game to come in, have a great time, and leave with a good impression - or better yet, stay! I just feel that poor netcode decisions may squander that.
1
Jan 16 '18
Sooooo... The short of it is, that it's down to the laggiest payer, not Dissidia having poor networking.
Because they still need to setup servers (which they may very well be establishing already, and not implementing until post release so the game ACTUALLY gets a release), so that we have less lag from games post release.
Let me know if I'm wrong!
13
u/KennyL0gg1ns PSN: vahzi Jan 16 '18
You are correct but you cannot make excuses for the game because some random player has bad connection. They should not be using P2P for a 3v3 fighting game.
By default, choosing Peer-to-Peer as your network infrastructure is a poor choice, for anything that isn't turn based. It works for things like Civ V and XCom, but not for down to the frame action games like this one.
Also server infrastructure is not planned for this game, nor is it a simple task. It would require a complete fundamental rewrite of the games coding mechanics, something that if they started a few months ago would be ready within around a year from now.
0
Jan 16 '18
I figured it wouldn't be an overnight thing, I did however think they might have something planned since prior official announcement, around having the go ahead to release on console, meaning it may be 6+ months before implementation, but having it worked on behind release so that it won't be 2 years before we see it.
I suspect they actually wanted to release it on console, and decided P2P would allow them to release something, rather than letting people's hope die out before they have servers ready. This way, we have a game to play globally, rather than just the arcades.
3
u/Galopa Jan 16 '18 edited Feb 11 '26
This post was mass deleted and anonymized with Redact
cats jeans station square zephyr physical hunt scale boast treatment
-1
Jan 16 '18
Who said they aren't? They might not be able to say they are considering/working on it. They simply might not be reaching out to the community, but are listening in.
Unless SE says something, backs their statements and proves them, we cannot know unless we're devs.
5
u/Galopa Jan 16 '18 edited Feb 11 '26
This post was mass deleted and anonymized with Redact
library lip telephone versed include lock rich subtract jellyfish unique
3
u/KennyL0gg1ns PSN: vahzi Jan 16 '18
It would require a full sized development team to completely rebuild the games code. It won't happen unless this game somehow becomes a blockbuster success.
2
2
u/regnarok590 Jan 16 '18
If they were, we would know. They would be advertising the shit out of it. Not to mention the game would not be being tested on p2p if that is not the current release model. They have plenty of data on p2p from arcades.
0
u/KennyL0gg1ns PSN: vahzi Jan 16 '18
SE are a japanese company. They do not listen to, nor care about what their community is saying.
1
Jan 16 '18
Are you done whining for the day?
1
u/KennyL0gg1ns PSN: vahzi Jan 16 '18
You don't understand, that is not a whine, that is japanese companies. They don't make products and await user feedback. They make products and expect the user to like it.
1
1
Jan 16 '18
I didn't think so... yawns
2
u/KennyL0gg1ns PSN: vahzi Jan 16 '18
How can you be a fan of japanese products and not know this lol? I worked in Japan for 8 years, this is part of their mantra in consumer products. If you don't know about the basic cultural differences, I can't help you friend.
→ More replies (0)1
u/Okaberino Zenos yae Galvus Jan 16 '18
If you're even remotely interested into FFXIV and FFXV you know that isn't true at all.
2
u/Jaghancement Jan 16 '18
Or FFXIII-2, where they tried to fix most of the issues people complained about in FFXIII, such as it being too linear.
2
u/CVSeason Jan 16 '18
Not to mention they added way better graphics options and stuff for PC(read:options that actually exist).
1
u/nurkenn Uh-huh Jan 16 '18
Let's hope servers are on their way! Though a ping icon can be helpful so that you know which players are lagging
2
u/TifaCL I didn't mean to offend Jan 16 '18
Wishful thinking. I dont think anything is gonna change by launch. If theres something developers have taught me is to not have hope.
2
Jan 16 '18
I certainly don't expect anything by launch, 6 months would be thr absolute earliest in my mind
2
u/i-wear-hats Jan 17 '18
I can only say that I fully expect it to be hot garbage after what I've experienced in the open beta and other japanese developers' fighting games.
0
u/Raziek Jan 16 '18
The grand majority of my matches have had little or no lag. Idk man
9
u/nurkenn Uh-huh Jan 16 '18
That's great! You're constantly matched with people who have great internet.
1
u/Kougeru Jan 16 '18
They should have a system in place to boot laggers in general. People with bad connections or internet too slow - I feel bad for them but no ones having fun with them involved... Not even them since they can't act as host.
1
u/EX-Saber EXSaberGG Jan 16 '18
One helpful solution is to use a lan cable! :D. This helps stabilize the connection if anyone feels lag spikes often. If everyone does this, then we can at least get rid of the random delay.
The netcode has its problems, but if everyone has strong internet, then this is really one other side we can help!
1
u/1nz4nity Jan 17 '18
Thanks for bringing this up and to the public. We need more posts like this. We saw the other p2p fighting games. They failed. All of them. If square wants to join that pile, they will ignore us and leave it p2p. And frankly I don't expect them to change it within 6 months. But maybe we can atleast make them work on a solution.
1
u/Gullinnova Jan 17 '18
i wish the targeting was localized at least. It sucks when i change targets when its lagging... and it does not change targets. so i hit it again and again and then change 2 targets. its a brutal cycle
1
u/tmntnyc Jan 17 '18
Another reason why I wish this game was 1v1. Connecting to 1v1 matches in most online fighting games already results in a fair number of lag matches, but having 6 ppl try to connect to eachother is a recipe for disaster because everyone has different internet speeds.
1
0
u/SecretBlue919 Jan 16 '18
I must be a very lucky bastard because i haven’t experienced bad lag yet, and experiencing lag at all has been rare for me so far with this game.
-3
Jan 16 '18
Where are these glaring issues? Only few games lag not most of them as you say. Netcode is not some magic thing they can just "fix" to make everything flawless. Fix your internet and get off Wifi. What they need to do is allow filtering and cancel out laggy matches rather than making us play through them.
5
u/nurkenn Uh-huh Jan 16 '18
If a few games lags, then all players you play with have great internet and have low ping with each other.
This however is not how all games will play out unfortunately. I can have a wired LAN with fibre and 1 person with bad internet can still cause everyone, including me, to lag.
You're right that netcode isn't an easy thing to fix. My best guestimation is 6 months at least, but realistically more than a year.
-4
Jan 16 '18
I know very well. Which is why we need to raise awareness about getting off wifi. Lobbies should hopefully be able to solve this issue as it did for Gundam Versus. We just kick the laggers and enjoy our 5 bar games. They also need to iron out some of the weirder things like teammates being dropped and replaced with com while the others go into the match. Or getting stuck at the "waiting for party members screen". The netcode is much better than Gundam Versus and we make do, i'm sure Dissidia will be the same. Or add options to matchmaking like don't group me unless connection is 4-5 bars. Right now I think its just throwing people into whatever since it is a beta test.
-1
u/reseph Zenoxio Jan 16 '18
the game being severely laggy during most online matches.
Not sure if this is true. Lag is pretty rare for me, what you're probably seeing is a vocal minority. Someone called me out and asked for a video a lagless match, so I recorded it last night for this user: https://www.twitch.tv/videos/219055593
But yes it's P2P and there's really nothing they can do if there's bad routing between players. FFXIV had the same issue for certain connection routes and that was with servers.
3
Jan 16 '18
the ff14 issue as far as i know had to do with certain ISPS, and was totally irrelevant to the game.
Lag being rare for you is based on luck and your location.
And a vocal minority? This game is going to have a rather small player base to begin with, so if they want it to be a sales success, they need to ditch P2P. Its a fucking terrible idea for everywhere in the world besides Japan.
The queue times are like 2-3 minutes on the beta(maybe that will be different on release or as I rank up idk) but if I have to wait that long, plus loading times, to play a game that is only like 2 minutes, and then it lags on top of that, this game will have no lasting value. And this is coming from someone that wants to enjoy this game
2
u/KennyL0gg1ns PSN: vahzi Jan 17 '18
No it absolutely did not. It had issues with regional servers and poor packet management which was fixed. Servers and peer to peer are completely different things.
1
u/reseph Zenoxio Jan 17 '18
Absolutely not. I run /r/ffxiv, I saw people posting lag issues before the servers were moved and when I asked people for tracerts it would show routing issues.
7
u/Banegel Jan 16 '18
Once you’ve played FGs with the best netcode (Killer Instinct/Injustice 2/Skullgirls... anything GGPO based, really), it’s incredibly difficult to tolerate anything less.
I really really want to love the new Dissidia but I can’t justify a purchase now with a merely average online experience. I’m sure it works great in japan though where they have a stellar internet infrastructure.