How do radars influence visible chunks updates?

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
User avatar
husnikadam
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Mon May 21, 2018 1:56 pm
Contact:

How do radars influence visible chunks updates?

Post by husnikadam »

Hi, I've spotted an interesting behavior regarding map update framerate, in the first gif is a default behavior. Why is the second gif map update practically real time? There are significantly more radars in that area, but after reading wiki radar logic it still stays unclear to mee.
IA8n2VDb6K.gif
IA8n2VDb6K.gif (128.71 KiB) Viewed 2796 times
aJQTquS7EI.gif
aJQTquS7EI.gif (88.18 KiB) Viewed 2796 times

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: How do radars influence visible chunks updates?

Post by orzelek »

Was you avatar closer to one of the locations?
Player presence might affect update frequency.

User avatar
husnikadam
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Mon May 21, 2018 1:56 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by husnikadam »

no it wasn't, it's all influenced by a radar density, but I wasn't able to find "how many radars, performance influence" and so, because I really like the real time updates :)

Note: notice the blue line in the second gif, this is all just radars :)

DaleStan
Filter Inserter
Filter Inserter
Posts: 368
Joined: Mon Jul 09, 2018 2:40 am
Contact:

Re: How do radars influence visible chunks updates?

Post by DaleStan »

orzelek wrote:
Thu Nov 28, 2019 5:28 pm
Was you avatar closer to one of the locations?
husnikadam wrote:
Thu Nov 28, 2019 5:50 pm
no it wasn't
This seems exceedingly unlikely. What was the distance from your player to the two locations, and how did you measure that distance?

User avatar
husnikadam
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Mon May 21, 2018 1:56 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by husnikadam »

Watch please the following 30sec gif, there are firstly two attacks from the west with about 2 map updates per sec and then one big attack from the east with much faster update rate (just got small performance problems). A player is in the center.
Note: I use 10% pollution per biter cost, which causes huge attacks
Mi1ruY6Iq7.gif
Mi1ruY6Iq7.gif (903.02 KiB) Viewed 2733 times

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by Klonan »

The radar scans nearby sectors when they have consumed enough power, which is generally a double digit number of ticks

So more radars, it means this scanning update happens across more ticks, so its looks smoother

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by darkfrei »

Klonan wrote:
Fri Nov 29, 2019 10:42 am
So more radars, it means this scanning update happens across more ticks, so its looks smoother
So, can I make the mod with smooth scanning radars?

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by Klonan »

darkfrei wrote:
Fri Nov 29, 2019 10:44 am
Klonan wrote:
Fri Nov 29, 2019 10:42 am
So more radars, it means this scanning update happens across more ticks, so its looks smoother
So, can I make the mod with smooth scanning radars?
Sure

User avatar
husnikadam
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Mon May 21, 2018 1:56 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by husnikadam »

Interesting, thanks. Do you know if it may cause major performance issues? Like using more than a thousand of radars or so, if it's just a performance sinkhole or if is the smoothness worth it, as I said, I like it soooo much :D

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by darkfrei »

Klonan wrote:
Fri Nov 29, 2019 10:46 am
darkfrei wrote:
Fri Nov 29, 2019 10:44 am
Klonan wrote:
Fri Nov 29, 2019 10:42 am
So more radars, it means this scanning update happens across more ticks, so its looks smoother
So, can I make the mod with smooth scanning radars?
Sure
How about C++-solution with just radar_entity.smooth_near_scaning = true?

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by Klonan »

darkfrei wrote:
Fri Nov 29, 2019 11:10 am
Klonan wrote:
Fri Nov 29, 2019 10:46 am
darkfrei wrote:
Fri Nov 29, 2019 10:44 am
Klonan wrote:
Fri Nov 29, 2019 10:42 am
So more radars, it means this scanning update happens across more ticks, so its looks smoother
So, can I make the mod with smooth scanning radars?
Sure
How about C++-solution with just radar_entity.smooth_near_scaning = true?
Thats not really needed, just set energy_per_nearby_scan to 0

Post Reply

Return to “Technical Help”