Friday Facts #182 - Optimizations, always more optimizations

Regular reports on Factorio development.

KrzysD
Long Handed Inserter
Long Handed Inserter
Posts: 58
Joined: Mon Oct 27, 2014 6:49 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by KrzysD » Fri Mar 17, 2017 4:09 pm

So say you have 200 trains on your map and the view is showing 50 of them: each view would render its own train + any trains in that immediate area (which ended up being roughly all of them in packed factories) and the end result was you'd get 50 * 50 trains being rendered which ends up being very slow. Cleaning up how trains are drawn on the minimap gave a nice boost to the performance here. I still have some additional ideas to improve the performance of this GUI but it's at least manageable now for 0.15 it's manageable.
HOORAY! now my train bus world won't drop to 10fps when i open the map! :) Thanks Rseding91!!

SaintFlow
Inserter
Inserter
Posts: 47
Joined: Fri Mar 18, 2016 6:13 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by SaintFlow » Fri Mar 17, 2017 4:15 pm

you can look forward to some less interesting FFF posts
You did not lie about that one :? :lol:

And no 0.15 progress news at all?...commoooon, you can do better than that its the 17th of March guys :D

Ubertwink
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Sun Oct 18, 2015 5:47 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by Ubertwink » Fri Mar 17, 2017 4:27 pm

Maybe put up unstable 0.15 releases? Just make them non-obtainable with the "latest experimental" option, only by explicit version selection.

Nathadir
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Mar 24, 2016 8:13 am
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by Nathadir » Fri Mar 17, 2017 4:29 pm

I really liked this FFF: It goes to show that they continue to care greatly about optimization, even in fringe situations. That combined with multi-platform support is something I really like - I play Factorio on Windows on my desktop computer and on Linux on my laptop, which is wildly underpowered for everything I run on it, except for Factorio :)
Besides that, just getting these details is really fun for me as a programmer!

User avatar
Sigma1
Fast Inserter
Fast Inserter
Posts: 227
Joined: Mon Nov 21, 2016 5:25 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by Sigma1 » Fri Mar 17, 2017 4:34 pm

Ubertwink wrote:Maybe put up unstable 0.15 releases? Just make them non-obtainable with the "latest experimental" option, only by explicit version selection.
I support this. Also I like unstable dev versions of all software.
My mods can be found on my homepage: https://sigma-one.gitlab.io/
They include nuclear and military stuff right now.

User avatar
Deadly-Bagel
Smart Inserter
Smart Inserter
Posts: 1493
Joined: Wed Jul 13, 2016 10:12 am
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by Deadly-Bagel » Fri Mar 17, 2017 4:38 pm

Ahh, when you refresh the screen and the number of topics in the News forum increments...
SaintFlow wrote:And no 0.15 progress news at all?...commoooon, you can do better than that its the 17th of March guys :D
End of last year we released a patch summary for our "January update". It was released to ~10% of our customers in January. Four patches later (three of which were redone several times), the other 90% got it this week, and there's a fifth patch due out to fix some remaining huge issues, but we needed to get them updated because there was a serious issue in the last version too. There's just no putting a time scale on software releases =P

Anyway, speaking of GUI performance is there nothing that can be done about the "live" map view in the train's menu? It can drop the game to some pretty terrible framerates. Even if all we get is a zoomed-in map view (which should be better if we get a higher res map as suggested in FFF180) that would be great.
Money might be the root of all evil, but ignorance is the heart.

Jesperhk
Inserter
Inserter
Posts: 29
Joined: Fri Feb 20, 2015 6:40 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by Jesperhk » Fri Mar 17, 2017 4:39 pm

SaintFlow wrote:
you can look forward to some less interesting FFF posts
You did not lie about that one :? :lol:

And no 0.15 progress news at all?...commoooon, you can do better than that its the 17th of March guys :D

Hope that was a joke... :shock:

I think it was an very! interesting FFF post, alot of programming is going into Factorio every week, and its done by a small team thats working very hard.
i can't wait for 0.15 release, and reading how much effort your guys put into it, it can only be successful!.

Keep it going, love your game!.

Loewchen
Global Moderator
Global Moderator
Posts: 5112
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by Loewchen » Fri Mar 17, 2017 4:41 pm

Ubertwink wrote:Maybe put up unstable 0.15 releases?
That will be the type of release anyway, but bugs reported by the community take significantly more time to deal with than finding the same bugs internally, so releasing after a certain stability has been accomplished saves time in the long run.

User avatar
Deadly-Bagel
Smart Inserter
Smart Inserter
Posts: 1493
Joined: Wed Jul 13, 2016 10:12 am
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by Deadly-Bagel » Fri Mar 17, 2017 4:44 pm

Yeah, there's no point getting their dev version they've got now as it would crash every five minutes and have a new version before you could download it.

EDIT: And damn that is a specific bug. You would like to think nobody has ever encountered it (why would you ever do those things) but then we are a nigh infinite number of monkeys at keyboards xP
Last edited by Deadly-Bagel on Fri Mar 17, 2017 4:48 pm, edited 1 time in total.
Money might be the root of all evil, but ignorance is the heart.

exi2163
Inserter
Inserter
Posts: 31
Joined: Wed Mar 09, 2016 6:50 am
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by exi2163 » Fri Mar 17, 2017 4:47 pm

Nice, i always love reading technical posts :D
Btw does 0.15 already contain a solution for the train scheduler ruining UPS on rail placement/destruction on big rail networks with many trains? I doubt that it is neccessary do update each train immediatly on the entity creation/destruction. The update could then be staggered by tick (like 20 per tick) or just in time (when a train hits a signal / junction).

gacekssj4
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Wed Jun 01, 2016 9:54 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by gacekssj4 » Fri Mar 17, 2017 4:49 pm

After about a hour of debugging
Should be "an hour"

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 763
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by cpy » Fri Mar 17, 2017 4:58 pm

They should've made minecraft. You'd have nearly infinite worlds with high UPS even with demanding mods.

kinnom
Filter Inserter
Filter Inserter
Posts: 691
Joined: Fri Dec 26, 2014 4:20 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by kinnom » Fri Mar 17, 2017 5:11 pm

Deadly-Bagel wrote:Yeah, there's no point getting their dev version they've got now as it would crash every five minutes and have a new version before you could download it.

EDIT: And damn that is a specific bug. You would like to think nobody has ever encountered it (why would you ever do those things) but then we are a nigh infinite number of monkeys at keyboards xP
I do remember a case of a rail connection becoming partially corrupt
no yes yes no yes no yes yes

torham
Fast Inserter
Fast Inserter
Posts: 171
Joined: Sun May 25, 2014 1:40 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by torham » Fri Mar 17, 2017 5:15 pm

cpy wrote:They should've made minecraft. You'd have nearly infinite worlds with high UPS even with demanding mods.
This.

I think Factorio is the best optimized game on my HDD right now. Its a whole different category compared to some garbage that gets published these days.One example would be Rise to ruin. Its pixel retro style that in the 1994 would easily run on my 486 with 512 KB RAM, and it runs around 30 FPS on my current gaming rig.
Last edited by torham on Fri Mar 17, 2017 5:15 pm, edited 1 time in total.

User avatar
Deadly-Bagel
Smart Inserter
Smart Inserter
Posts: 1493
Joined: Wed Jul 13, 2016 10:12 am
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by Deadly-Bagel » Fri Mar 17, 2017 5:15 pm

I remember there being a bunch of cases but it was for a different reason I think.
Money might be the root of all evil, but ignorance is the heart.

safan
Fast Inserter
Fast Inserter
Posts: 122
Joined: Mon Dec 23, 2013 7:26 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by safan » Fri Mar 17, 2017 5:42 pm

Ubertwink wrote:Maybe put up unstable 0.15 releases? Just make them non-obtainable with the "latest experimental" option, only by explicit version selection.
As long as they find bugs by just loading their test games there is realy no need to do this.

silver_26
Long Handed Inserter
Long Handed Inserter
Posts: 68
Joined: Sun Nov 02, 2014 1:08 am
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by silver_26 » Fri Mar 17, 2017 6:02 pm

1.Build 2 locomotives directly next to each other
2.Disconnect the 2 locomotives so they're not one train anymore
3.Drive the front locomotive into the rear one such that it can't move backwards any more
4.Drive the rear locomotive into the front one such that it can't move forward any more
5.Build a cargo wagon attached to the rear locomotive (making sure the cursor was more towards the rear locomotive so the cargo wagon snaps behind the back locomotive)
6.Try to drive the rear locomotive (with the now attached cargo wagon) forward into the front locomotive


why in the world would you do such a thing ?

Jarin
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Thu Aug 28, 2014 8:01 pm
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by Jarin » Fri Mar 17, 2017 6:03 pm

I love reading these little behind the scenes details. Friday Facts is honestly one of the highlights of my week.

ChoMar
Long Handed Inserter
Long Handed Inserter
Posts: 91
Joined: Sun Aug 07, 2016 2:00 am
Contact:

Re: Friday Facts #182 - Optimizations, always more optimizations

Post by ChoMar » Fri Mar 17, 2017 6:07 pm

I love all that Optimization and Bug-Fixing. I wish more Games would be developed on that level.
Mytronix Entertainment

Post Reply

Return to “News”

Who is online

Users browsing this forum: No registered users