4 ms·
My first though was: "I could make a game with this". And the first thing on my todo-list would be "server rendering", so that the server only send the client w
by z3t4 11y ago
My first though was: "I could make a game with this". And the first thing on my todo-list would be "server rendering", so that the server only send the client what the player see.
- 10098 11y agoI suppose it could help somewhat (at least the client wouldn't have to keep that huge world in memory), but now you have to deal with sending input to a remote server over an unreliable connection, and also being able to steadily render and compress about 180mb of data per second on the server side, and get it back to the client within a second to achieve 30fps @ 1928x1080. I think this will definitely be noticeable (I remember experiencing a noticeable delay with OnLive even though the connection was pretty good). The real solution would probably be finding an effective way of dealing with memory on the client side. I don't know what the state of the art in javascript land is but big environments like this are better streamed from disk into memory portion by portion rather than putting it there all at once (i'm pretty sure there is no standard api that lets you do something like this).
- z3t4 11y agoThere's a few optimizations techniques that you can apply, like sorting. You keep track of all the points the player is currently looking at, and sort them. Then when the world state is updated, the server check all clients whether to send the new update or not.
- yoklov 11y agoThis isn't really feasible using current technology, at least not if you care about player experience. Input lag is killer, and users are far less forgiving of it than with something like netflix, where lag between the server sending data and the client receiving data is fine (Keep in mind that most pixels change most frames in a first-person 3d game, so it doesn't compress all that well either). Even a couple frames of lag is noticeable at 30fps, and isn't really something players forgive. Not to mention, players tend to expect 60fps now... There's also not really a lot of benefit to doing something like this. Maybe you run better on computers that have worse graphics cards (and I don't actually think you will), but you'll run worse on computers with worse internet connections. You also are now spending a lot more on servers because every player needs a nontrivial portion of a server machine.
- tokenizerrr 11y ago> There's also not really a lot of benefit to doing something like this If you have any kind of multiplayer game: It would make cheating harder, and make some kind of cheats impossible.