[0.15.x] rechart slower than in 0.14.x

Bugs that are actually features.
Post Reply
osldgoth
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Feb 26, 2015 3:52 am
Contact:

[0.15.x] rechart slower than in 0.14.x

Post by osldgoth »

My EMC mod calls the game.forces.player.rechart() function. In 0.14.x, the function takes about 20 seconds to work, while in 0.15.x it takes 2 minutes 23seconds* to work on the same save(attached). have you devs un-optimized something or is it all the new map overlay stuff that was added that is slowing it down?

* 7 times slower!
Attachments
Marathon.zip
rechart slower
(28.28 MiB) Downloaded 59 times

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

Re: [0.15.x] rechart slower than in 0.14.x

Post by Rseding91 »

In 0.14 it was bugged so that the number of players changed how fast it would re-chart. that was fixed and now it's a constant speed regardless of the player count.

Your map happens to have exactly 7 players In it so a 7x slowdown is exactly expected.
If you want to get ahold of me I'm almost always on Discord.

User avatar
db48x
Fast Inserter
Fast Inserter
Posts: 106
Joined: Wed Mar 13, 2013 12:15 pm
Contact:

Re: [0.15.x] rechart slower than in 0.14.x

Post by db48x »

If the speed no longer varies based on the player count, why is a 7x slowdown expected?

User avatar
db48x
Fast Inserter
Fast Inserter
Posts: 106
Joined: Wed Mar 13, 2013 12:15 pm
Contact:

Re: [0.15.x] rechart slower than in 0.14.x

Post by db48x »

Oh, you're saying that the game is supposed to rechart a fixed number of chunks per tick, but that in 0.14 it actually recharted a fixed number of chunks per tick per player? That would seem to fit your explanation.

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

Re: [0.15.x] rechart slower than in 0.14.x

Post by Rseding91 »

db48x wrote:Oh, you're saying that the game is supposed to rechart a fixed number of chunks per tick, but that in 0.14 it actually recharted a fixed number of chunks per tick per player? That would seem to fit your explanation.
Yes.
If you want to get ahold of me I'm almost always on Discord.

osldgoth
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Feb 26, 2015 3:52 am
Contact:

Re: [0.15.x] rechart slower than in 0.14.x

Post by osldgoth »

Would you consider speeding rechart up then? not that my mod will call it very often. with my computer, 7x faster didn't slow the game ticks any (perhaps on less powerful machines it does effect the fps?). 2-3 times faster should be fine. do you have any other options? I could make my own rechart function and let it run as fast as I want...

Post Reply

Return to “Not a bug”