Page 1 of 1

[Devs Question] Why is scrolling the map hooked to the UPS?

Posted: Wed May 31, 2017 8:00 pm
by AlienX
Hi,
I just have a general question really.

When scrolling the map via the keyboard, or the mouse - the lower the headless client's UPS (aka, the Multiplayer Waiting Icon is flashing) the harder it is to scroll the map.

I'm just wondering why the scrolling of the map is linked to the state of the game, and not just completely client sided?

Re: [Devs Question] Why is scrolling the map hooked to the UPS?

Posted: Thu Jun 01, 2017 6:11 pm
by Distelzombie
It can happen if the server has to generate new chunks.

Re: [Devs Question] Why is scrolling the map hooked to the UPS?

Posted: Thu Jun 01, 2017 6:51 pm
by AlienX
The server has pre-generated chunks for the map so the server is not overloaded by people exploring.
It just seems odd that the scrolling of the map is connected to the UPS.

Re: [Devs Question] Why is scrolling the map hooked to the UPS?

Posted: Sat Jun 03, 2017 1:42 am
by Rseding91
Because the view position is updated each time the game processes keyboard/mouse input and that happens at the same rate as the game is updated since doing it faster doesn't help because the game can't respond faster to input than it's ticking.

Re: [Devs Question] Why is scrolling the map hooked to the UPS?

Posted: Mon Jun 05, 2017 5:39 am
by DaveMcW
Rseding91 wrote:the game can't respond faster to input than it's ticking.
Multi-thread the map screen! :D