mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-30 23:15:32 +01:00 
			
		
		
		
	Send player position 10 times a second instead of 5. Uses more bandwidth but looks much better.
This commit is contained in:
		| @@ -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(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user