Hacker News new | ask | show | jobs
by tetrep 4453 days ago
Problem: Lag + collision detection = characters slide. Solution: Turn off collision detection.

I was sincerely hoping for an actual technical solution for dealing with peer-to-peer networking and lag. I feel somewhat cheated out of the time it took me to read that article. While it did explain the problem very nicely, the solution was to just disable the feature outright.

2 comments

Well, the first paragraph did say

> The solution we finally managed to come up with is also a good example of how very incorrect workarounds can actually be a really good solution to a complex problem.

So you knew they were presenting a "very incorrect workaround"---which, counterintuitively, worked better than some of the more "correct" things they tried.

>So you knew they were presenting a "very incorrect workaround"

It actually made it a bit more enticing, I was expecting a horrific chain of gotos or some other cliche programming paradigm being completely violated for the sake of pragmatism.

What we got instead was, "This is a hard problem, let's just not solve it." which was written up with a title of "How we solved a hard problem"

They did solve the problem, the solution was to turn of collision detection.
> While it did explain the problem very nicely, the solution was to just disable the feature outright.

To be fair, they did solve the problem. If it isn't noticeable during gameplay and doesn't create unwanted degenerate actions from players, they succeeded in fixing the bug, even if the technical aspect is simple.