Page 1 of 2

any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 4:44 pm
by Jesus8000
any tricks to increas FPS / UPS?
i am at 12 now^^

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 5:08 pm
by Koub
1) if you think your factory stresses a lot on something that could be optimized, post it here : viewtopic.php?f=5&t=17501
2 ) Replace your belts by underground belts
3) expand your defense perimeter far beyond your pollution cloud
4) use bots where it makes sense instead of inserters/belts
5) if you use warehouse mods, stop using them
6) Solar+accus are UPS friendly, a LOT more than nuclear, and more than steam
7) post a screenshot of your debug info here, if one thing among others sticks out, megabase gurus will find it.

2 bis) Alternatively, wait for 0.16.0 :mrgreen:

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 5:25 pm
by Jesus8000
1: done
2: later
3: too big edit: is the biter increase caused of the poulution the problem or the biters itself? so i have to build a wall 1 km away form my actually wall?
4: done
5: no edit::D i dont use this mod
6: 11 GW solar better than 5 power plants?> that could be optimized
7: wher can i find this debug info? f4?
8:thats what i am doing already:P

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 6:41 pm
by Rseding91
Jesus8000 wrote: 5: no
Reminds me of:

Image

You asked how to increase UPS and not using gargantuan chests is one way to do so. You don't need them and they hurt UPS. You either stop using them or don't ask for help to improve UPS.
Jesus8000 wrote: 6: 11 GW solar better than 5 power plants?> that could be optimized
11 GW of solar panels is: 'count of solar panels' * daytime = power produced - one multiplication and the entire solar field has been calculated. 5 reactors is already 5 times as expensive, then you add in all the heat pipes, water pipes, steam pipes, steam turbines and you're looking at 1000-4000 times more expensive than solar panels.

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 7:06 pm
by Koub
Jesus8000 wrote:3: too big edit: is the biter increase caused of the poulution the problem or the biters itself? so i have to build a wall 1 km away form my actually wall?
7: wher can i find this debug info? f4?
3) Whatever chunk your pollution touches, there is logic for absorption by biter nests + nests generating biters from pollution absorbed + biters attacking ...
If your pollution can never reach a biter nest, all this computation doesn't have to be done
7) yup the F4 thing with all the numbers on the left :).

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 7:33 pm
by Cribbit
You can turn off pollution and biters to improve FPS, but this disables achievements.

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 7:51 pm
by Jesus8000
Cribbit wrote:You can turn off pollution and biters to improve FPS, but this disables achievements.
i have all achievments^^ and i thought even so , the mods disable challances
thats the best idea by now:P

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 7:57 pm
by Jesus8000
Koub wrote:
Jesus8000 wrote:3: too big edit: is the biter increase caused of the poulution the problem or the biters itself? so i have to build a wall 1 km away form my actually wall?
7: wher can i find this debug info? f4?
3) Whatever chunk your pollution touches, there is logic for absorption by biter nests + nests generating biters from pollution absorbed + biters attacking ...
If your pollution can never reach a biter nest, all this computation doesn't have to be done
7) yup the F4 thing with all the numbers on the left :).
haha ^^ u wanna help me?
https://www.dropbox.com/s/09m4bir5bikig ... s.zip?dl=0
....

how can i kill all biters and delete pollution?

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 9:17 pm
by Koub
Console commands (but you will lose the ability to get achievements on this save.
I tried, removing pollution and killing all biters, I gained 2 UPS ... which is around 20% (I had 10.5, and ended with 12.5)
I think what is killing the CPU is all these HUGE busses.
This is madness
400k active entities, most of them probably moving on belts, I think that's your main UPS killer. Entity update is like 95% of the update cycle.
replace your huge busses with trains, or chained underground belts, and you should see a difference.

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 9:28 pm
by darkfrei
Jesus8000 wrote:how can i kill all biters and delete pollution?
https://wiki.factorio.com/Console#Kill_all_enemies

Code: Select all

/c local surface=game.player.surface
for key, entity in pairs(surface.find_entities_filtered({force="enemy"})) do
	entity.destroy()
end
https://wiki.factorio.com/Console#Remove_all_pollution

Code: Select all

/c game.player.surface.clear_pollution()

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 11:10 pm
by Jesus8000
darkfrei wrote:
Jesus8000 wrote:how can i kill all biters and delete pollution?
https://wiki.factorio.com/Console#Kill_all_enemies

Code: Select all

/c local surface=game.player.surface
for key, entity in pairs(surface.find_entities_filtered({force="enemy"})) do
	entity.destroy()
end
https://wiki.factorio.com/Console#Remove_all_pollution

Code: Select all

/c game.player.surface.clear_pollution()
thx ^^
exact 0,0 fps^^ still 12

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 11:49 pm
by keyboardhack
Koub wrote: 400k active entities, most of them probably moving on belts, I think that's your main UPS killer. Entity update is like 95% of the update cycle.
replace your huge busses with trains, or chained underground belts, and you should see a difference.
I profiles his save to see if that was the case and it's.
The numbers on the right, in the image below, represents the time used in percent on each entity per update.
Image

Re: any tricks to increas FPS / UPS?

Posted: Tue Oct 24, 2017 11:55 pm
by Jesus8000
oh thx
i already looked at thees numbers but i doesnt understand the meaning.
now its clear how i can fix my save^^
> with underground belts

in milli seconds right?

Re: any tricks to increas FPS / UPS?

Posted: Wed Oct 25, 2017 12:03 am
by keyboardhack
Forgot to say but it's in percent. it doesn't add up to 100% because other things like rendering also takes time.

Re: any tricks to increas FPS / UPS?

Posted: Wed Oct 25, 2017 12:09 am
by Zavian
How do you generate these profile reports? I've seen them occasionally, but I've never seen anyone mention how they were generated.

Re: any tricks to increas FPS / UPS?

Posted: Wed Oct 25, 2017 1:10 am
by Jap2.0
keyboardhack wrote:
Koub wrote: 400k active entities, most of them probably moving on belts, I think that's your main UPS killer. Entity update is like 95% of the update cycle.
replace your huge busses with trains, or chained underground belts, and you should see a difference.
I profiles his save to see if that was the case and it's.
The numbers on the right, in the image below, represents the time used in percent on each entity per update.
Image
In this case 0.16 belt optimizations will help a ton as well.
Zavian wrote:How do you generate these profile reports? I've seen them occasionally, but I've never seen anyone mention how they were generated.
I second this request.

Re: any tricks to increas FPS / UPS?

Posted: Wed Oct 25, 2017 1:31 am
by keyboardhack
Zavian wrote:How do you generate these profile reports? I've seen them occasionally, but I've never seen anyone mention how they were generated.
The report was created using Visual Studio performance profiler.

The basic steps are:
  • Install Visual Studio Community edition with the C++ parts.
  • Start factorio and run you save.
  • Start visual studios profiler.
  • Select the factorio process and run the profiler.
  • Wait ~10sec and then stop the profiler.
  • Create detailed report, select call tree, follow the method that takes the most time and you are done.

Installing visual studio is probably overkill if you just want to know what entities uses time in your save. It's almost always pretty obviously what uses the most time in the save. In the cases where it's not, it's usually a mod that does something wierd.

Re: any tricks to increas FPS / UPS?

Posted: Wed Oct 25, 2017 1:58 am
by Jesus8000
i never red about the fact, that the belts will be obtimized at 0.16.
edit^^ oh its in the roadmap...i normaly read the fff only

Re: any tricks to increas FPS / UPS?

Posted: Wed Oct 25, 2017 7:32 pm
by Jap2.0
Jesus8000 wrote:i never red about the fact, that the belts will be obtimized at 0.16.
edit^^ oh its in the roadmap...i normaly read the fff only
They talked about it in the Friday facts as well :).

Re: any tricks to increas FPS / UPS?

Posted: Wed Oct 25, 2017 11:25 pm
by Jesus8000
a mod would be cool^^ who replaces all belts with underground belts^^