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

Anything that prevents you play the game properly. Do you have issues with paying for the game, downloading it or properly running it on your computer? Let us know here.
Post Reply
AlienX
Fast Inserter
Fast Inserter
Posts: 103
Joined: Wed May 17, 2017 7:13 pm
Contact:

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

Post 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?

User avatar
Distelzombie
Filter Inserter
Filter Inserter
Posts: 336
Joined: Tue May 02, 2017 4:27 pm
Contact:

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

Post by Distelzombie »

It can happen if the server has to generate new chunks.
Complete 2-Lane system as a Blueprint-Book! The perfect OCD reactor? Testing chained science lab efficiency Please use real prefixes and proper rounding!

AlienX
Fast Inserter
Fast Inserter
Posts: 103
Joined: Wed May 17, 2017 7:13 pm
Contact:

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

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 11857
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3402
Joined: Tue May 13, 2014 11:06 am
Contact:

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

Post by DaveMcW »

Rseding91 wrote:the game can't respond faster to input than it's ticking.
Multi-thread the map screen! :D

Post Reply

Return to “Technical Help”