How do radars influence visible chunks updates?

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
User avatar
husnikadam
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon May 21, 2018 1:56 pm
Contact:

How do radars influence visible chunks updates?

Post by husnikadam » Thu Nov 28, 2019 3:26 pm

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 217 times
aJQTquS7EI.gif
aJQTquS7EI.gif (88.18 KiB) Viewed 217 times

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

Re: How do radars influence visible chunks updates?

Post by orzelek » Thu Nov 28, 2019 5:28 pm

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

User avatar
husnikadam
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon May 21, 2018 1:56 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by husnikadam » Thu Nov 28, 2019 5:50 pm

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: 277
Joined: Mon Jul 09, 2018 2:40 am
Contact:

Re: How do radars influence visible chunks updates?

Post by DaleStan » Thu Nov 28, 2019 7:06 pm

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
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon May 21, 2018 1:56 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by husnikadam » Fri Nov 29, 2019 9:56 am

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 154 times

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

Re: How do radars influence visible chunks updates?

Post by Klonan » Fri Nov 29, 2019 10:42 am

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: 2306
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by darkfrei » 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?

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

Re: How do radars influence visible chunks updates?

Post by Klonan » 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

User avatar
husnikadam
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon May 21, 2018 1:56 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by husnikadam » Fri Nov 29, 2019 11:02 am

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: 2306
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: How do radars influence visible chunks updates?

Post by darkfrei » 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?

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

Re: How do radars influence visible chunks updates?

Post by Klonan » Fri Nov 29, 2019 11:40 am

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”

Who is online

Users browsing this forum: Google [Bot]