mirror of https://github.com/minetest/minetest.git
Send player position 10 times a second instead of 5. Uses more bandwidth but looks much better.
This commit is contained in:
parent
e0eaed5fdb
commit
d37d6daba9
|
@ -658,7 +658,7 @@ void Client::step(float dtime)
|
||||||
{
|
{
|
||||||
float &counter = m_playerpos_send_timer;
|
float &counter = m_playerpos_send_timer;
|
||||||
counter += dtime;
|
counter += dtime;
|
||||||
if(counter >= 0.2)
|
if(counter >= 0.1)
|
||||||
{
|
{
|
||||||
counter = 0.0;
|
counter = 0.0;
|
||||||
sendPlayerPos();
|
sendPlayerPos();
|
||||||
|
|
Loading…
Reference in New Issue