Hi, i've tryied Ember(latest version form git) today. First - great job. It's rather unplayable but you feel the potential. I have question about camera, when i move my avatar , sometimes , after a while he skip back to earlier position. Is this caused by a lack of synchronization? I mean client update position of avatar, then server set the "real" postion of avatar/model calculated(predicted?) from earlier information from client . It is very annoying at all. And I am curious.
Hi, the issue here is to do with getting entity updates from the server. Basically, we want to do client side prediction for the user controller entity, so that when you start to move, you don't have to wait for the server to respond but can move the entity immediately. The problem however is that after a while (depending on your ping) the server will send a position update. Since we're already moving, we should in most cases ignore this update (since the entity in the client by this time has moved to a new position). The problem is just to recognize the movement updates which we should ignore and those we shouldn't ignore. If the use walked into an obstacle for example (which the client didn't recognize, but the server did), we should honor the update from the server. But if the update from the server is for a position which is a result of the clients movement we should ignore it. The issue here was however that this code didn't really work as it should (leading to strange movement behavior), and I therefore disabled it in a recent commit. We need to investigate that code better and fix it, so it's a known bug.