StrangeLoopGames / EcoIssues

131 stars 21 forks source link

Client-side preview rendering to hide latency #6400

Open Dreepa opened 6 years ago

Dreepa commented 6 years ago

Currently: EDIT: When chopping wood pulp the impact, sound and VFX is not properly synched. The wood disappears a bit later, after the user action is finished (kind of laggy).

Problem: It feels unpolished. And it stops chopping flow (thinking to yourself: did it work? for some moments before going on to the next)

Suggestion: Preview outcome on client and properly sync the tool-impact, the sound and the deformation/destruction to make the haptic feel good and to increase flow.

ecoemmeck commented 6 years ago

This kinda sounds like the server isn't refreshing quick enough. Depending where / who the server is hosted by could be the issue here. But in saying that I've noticed some server lag with both the pickaxe and "devtool" Also note I haven't really noticed the lag since updating to 7.2.5

MarjieAVolk commented 6 years ago

We currently have client side predicting/assuming what will happen without input from the server, so that block pick up/placement should be rendered immediately (and then possibly it will be corrected by the server later, if it wasn't successful for some reason). So theoretically we should be able to get these lined up pretty precisely.

Dreepa commented 6 years ago

I have had another look, and it seems to be only some interactions. Most noticeable when hacking wood pulp. The axe impact happens, the sound is fired, but only some time later the wood pulp vanishes. Edited OP