Friday Facts #281 - For a Few Frames More
-
- Filter Inserter
- Posts: 261
- Joined: Sun Sep 16, 2018 10:44 pm
- Contact:
Re: Friday Facts #281 - For a Few Frames More
Wow!
Hey is that a squirrel over there?
Hey is that a squirrel over there?
Factorio Towns... https://youtube.com/playlist?list=PLf5d ... -ps9WNZOCe
Re: Friday Facts #281 - For a Few Frames More
Awesome! I knew it would have been carefully considered first and all angles thoroughly tested. Keep up the amazing work!posila wrote: ↑Fri Feb 08, 2019 8:51 pmThe middle mesh (I should have written mesh instead of geometry in the blog post, I suppose) is how we always draw it in 0.16 and still in 0.17 until you zoom in close enough onto cluster of turrets and the optimized version kicks in (we use trinagle strip instead of tringle fan because we can batch several circles into single draw call using degenerated triangles) and is what we needed to optimize. Stencil buffer was one of the two ideas we had (and first one we tried out) but it still was not fast enough, so we went to try out the second idea which was drawing geometry procedurally in shader, and were disappointed by its extraordinaly poor performance in some cases ... so we went on to come up with more ideas and essentially ended up combinig the two initial solutions.Mike Pote wrote: ↑Fri Feb 08, 2019 8:35 pm @posila Forgive me for wondering the obvious, but before you guys went down the turret radius pixel shader rabbit hole, I'm wondering why you don't just render a semi-transparent triangle fan over the map to form a circle for the turret radius? I'm pretty sure you're already doing this for the electricity network visualisation and the car and tank icons. You could use the stencil buffer to prevent overdraw from overlapping radii here too, and it would cut out your pixel shader having to test each and every single pixel on the screen for a radius.
Something like this, but obviously with enough vertexes to look smooth:
I'm guessing you already tried that and it wasn't performant enough?
Re: Friday Facts #281 - For a Few Frames More
im wondering why this is not true by default, imo it should be... and if there is a problem then it would delete the cache and recreate it. faster loading next time if there are no changes.Bilka wrote: ↑Fri Feb 08, 2019 3:30 pmGo into the config and changeLeopard1800 wrote: ↑Fri Feb 08, 2019 3:25 pm Would it be possible to cache the sprite atlases to disk (in some GPU friendly format) after they have been made so that they can be loaded directly the next startup?toCode: Select all
; Options: true, false ; cache-sprite-atlas=false
Code: Select all
; Options: true, false cache-sprite-atlas=true
also i always play with smoke off as it is too dense, that steam over the reactor setup is too obscuring to be able to work under it, it needs to be half that imo. although the decoratives are ok, i prefer the way it was in 0.13, alot fewer of them, sometimes i just turn them off, especially when they grow through my belts, factories, rails, bricks, concrete, ect.
otherwise great news for 0.17 and i look forward to it! keep up the good work.
Re: Friday Facts #281 - For a Few Frames More
Vanilla without mods loaded in 15 seconds by default and became 7 seconds with the cache enabled. The atlas cache was then created as a 2.38GB file in the Factorio folder.Philip017 wrote: ↑Fri Feb 08, 2019 10:05 pmim wondering why this is not true by default, imo it should be... and if there is a problem then it would delete the cache and recreate it. faster loading next time if there are no changes.Bilka wrote: ↑Fri Feb 08, 2019 3:30 pmGo into the config and changeLeopard1800 wrote: ↑Fri Feb 08, 2019 3:25 pm Would it be possible to cache the sprite atlases to disk (in some GPU friendly format) after they have been made so that they can be loaded directly the next startup?toCode: Select all
; Options: true, false ; cache-sprite-atlas=false
Code: Select all
; Options: true, false cache-sprite-atlas=true
Enabling my mods it went from 1:37 load time to 1:13. The atlas cache file was 5.94GB.
Those who use mods would need the most improvement compared to the slimmer vanilla. However, given the large file it creates just for a rather lackluster improvement, I'd be hard pressed to recommend that being active by default unless you're getting 5 minute load times (mostly due to sprites) and have an SSD to make the process remotely worthwhile.
-
- Long Handed Inserter
- Posts: 58
- Joined: Fri Mar 09, 2018 7:33 pm
- Contact:
Re: Friday Facts #281 - For a Few Frames More
What I miss in most games is a "test" button in the graphics settings that renders a couple of scenes and reports the fps. Especially in games where the screen starts out empty and fast to render...
Re: Friday Facts #281 - For a Few Frames More
I was wondering - we have good decoratives for the grasslands that as it turns out, by accident, make rails look good (or at least interesting), but other surface decorations do not really have anything that can do something similar to the rails. Maybe, if time allows, something similar can be added to other surface types? Like sandbars for dessert, mud for the muddy type surface and so on?
I just looked up the modding API and poked Mylon a bit and want to implement grass growing over the rails with time, but that will work only for those types of surfaces that have appropriate types of foliage. Not gonna be good looking with desert and alike
I just looked up the modding API and poked Mylon a bit and want to implement grass growing over the rails with time, but that will work only for those types of surfaces that have appropriate types of foliage. Not gonna be good looking with desert and alike
-
- Manual Inserter
- Posts: 2
- Joined: Wed May 09, 2018 6:56 pm
- Contact:
Re: Friday Facts #281 - For a Few Frames More
With the cutscene controller announced in FFF #273, it should be easy to create a demanding benchmarking world that can be included by the game as a scenario or downloadable save file. One official map would make performance testing and comparing much easier for players as well as the developers.Henry Loenwind wrote: ↑Fri Feb 08, 2019 10:55 pm What I miss in most games is a "test" button in the graphics settings that renders a couple of scenes and reports the fps. Especially in games where the screen starts out empty and fast to render...
Re: Friday Facts #281 - For a Few Frames More
vanilla with out mods for me 18 seconds to launch with out cache, with cache 5 seconds.Light wrote: ↑Fri Feb 08, 2019 10:49 pm Vanilla without mods loaded in 15 seconds by default and became 7 seconds with the cache enabled. The atlas cache was then created as a 2.38GB file in the Factorio folder.
Enabling my mods it went from 1:37 load time to 1:13. The atlas cache file was 5.94GB.
Those who use mods would need the most improvement compared to the slimmer vanilla. However, given the large file it creates just for a rather lackluster improvement, I'd be hard pressed to recommend that being active by default unless you're getting 5 minute load times (mostly due to sprites) and have an SSD to make the process remotely worthwhile.
the file 'atlas-cache.dat' consumes 2.38gb on my drive, located at '%appdata%/factorio' i feel it is easily sacrificed for 13 seconds of launch time.
an option to enable this, in the options menu under graphics, would be nice instead of digging into the config file i never knew about till today.
if this option was enabled by default then more disk space would be used true, however imo most people i doubt they would even notice it missing. but anyone that launches the game repeatably will notice the launch speed difference, if they only knew about it.
Last edited by Philip017 on Sat Feb 09, 2019 12:43 am, edited 1 time in total.
Re: Friday Facts #281 - For a Few Frames More
Woa, killer idea here!Henry Loenwind wrote: ↑Fri Feb 08, 2019 10:55 pm What I miss in most games is a "test" button in the graphics settings that renders a couple of scenes and reports the fps. Especially in games where the screen starts out empty and fast to render...
Why fiddle with the controls and have to figure out specific settings for your GPU, if the game can just try out a few things and give you the option of "optimize for mega base", "balanced", and "optimize for beauty"?
I really like that idea.
Re: Friday Facts #281 - For a Few Frames More
Agreed I like that idealuc wrote: ↑Sat Feb 09, 2019 12:51 amWoa, killer idea here!Henry Loenwind wrote: ↑Fri Feb 08, 2019 10:55 pm What I miss in most games is a "test" button in the graphics settings that renders a couple of scenes and reports the fps. Especially in games where the screen starts out empty and fast to render...
Why fiddle with the controls and have to figure out specific settings for your GPU, if the game can just try out a few things and give you the option of "optimize for mega base", "balanced", and "optimize for beauty"?
I really like that idea.
Re: Friday Facts #281 - For a Few Frames More
On my HDD box:
cold OS cache, no sprite atlas, seablock, Sprites Loaded at 32.164 sec. Hot cache, 19.923 sec.
cold OS cache, sprite atlas, seablock, Sprites Loaded at 39.854 sec. Hot cache, 13.933 sec.
cold OS cache, no sprite atlas, vanilla, Sprites Loaded at 23.098 sec. Hot cache, 12.269 sec.
cold OS cache, sprite atlas, vanilla, Sprites Loaded at 25.036 sec. Hot cache, 7.110 sec.
Time to read the seablock atlas from disk is 22.5s. The time to decompress a `zstd -1`'d seablock atlas from disk to tmpfs (basically, ram disk) is 6 seconds flat. I'll keep saying it: `zstd -1`ing the atlas caches would get a really dramatic startup-speed boost, even on SSDs.
-
- Manual Inserter
- Posts: 1
- Joined: Sat Feb 09, 2019 1:26 am
- Contact:
Re: Friday Facts #281 - For a Few Frames More
Instead of an off-screen render or passing the list with all turret to the pixel shaders another idea may be to pass the list of turrets in a (macro)tile and pass a tile map to the shader. You can easily create a linked-list of tile on CPU every time someone add/remove a turret.
Because the map is infinite you should limit the tile map to 1024x1024 and use multiple tile maps for huge factories.
Because the map is infinite you should limit the tile map to 1024x1024 and use multiple tile maps for huge factories.
-
- Long Handed Inserter
- Posts: 92
- Joined: Mon Aug 11, 2014 5:22 am
- Contact:
Re: Friday Facts #281 - For a Few Frames More
We'd need ARM binaries first. I strongly suspect Wube has resorted to inline assembly numerous times, so this would be a substantial undertaking for hardware that would have a very hard time with the game in the first place. (ARM is sloooooooooow! Just for one example, the Switch's SoC is roughly equivalent to a 500Mhz Ivy Bridge era Core i5. Ouchie.)
Now, don't let me dash your dreams. You just need an SBC with an x86 processor, and there's quite a few. The LattePanda is probably the most promising for this application.
Re: Friday Facts #281 - For a Few Frames More
Can we please have that as a toggle option inside the new and improved GUI?Bilka wrote: ↑Fri Feb 08, 2019 3:30 pmGo into the config and changeLeopard1800 wrote: ↑Fri Feb 08, 2019 3:25 pm Would it be possible to cache the sprite atlases to disk (in some GPU friendly format) after they have been made so that they can be loaded directly the next startup?toCode: Select all
; Options: true, false ; cache-sprite-atlas=false
Code: Select all
; Options: true, false cache-sprite-atlas=true
-
- Long Handed Inserter
- Posts: 92
- Joined: Mon Aug 11, 2014 5:22 am
- Contact:
Re: Friday Facts #281 - For a Few Frames More
Factorio doesn't have an iOS version... I assume you mean OSX? Which is under the Unix umbrella, specifically in the BSD family as a proprietary variant of Darwin, but I digress.
In today's FFF, they wrote off BC7 as unacceptable in part because it isn't supported by OSX. BC3 and BC4 have been implemented on most hardware on Mesa as well as by Nvidia's proprietary driver, so the optimization discussed here can safely be applied unilaterally on Linux systems.
It's my understanding that Linux and OSX are getting a new rendering backend as well based on OpenGL 3.x, I assume core profile, so potentially a huge win. We're not being left out
Re: Friday Facts #281 - For a Few Frames More
Really enjoyed reading the post, and looking forward to all the performance improvements.
Nothing great to add.
Nothing great to add.
- Acid_Burn9
- Inserter
- Posts: 34
- Joined: Sat Feb 09, 2019 8:17 am
- Contact:
Re: Friday Facts #281 - For a Few Frames More
Turret range visualization optimized? Great, but look at this!
Unbelievable FPS drops. Never had them in Factorio before. Happens only in map view, when this button is turned on (while just hovering above dronestation everything is fine).
That's what really should be optimized lol.
i7-6700K, GTX 1080, 16GB DDR4, win10 64bit
P.S. Thank you for awesome game ^-^
Unbelievable FPS drops. Never had them in Factorio before. Happens only in map view, when this button is turned on (while just hovering above dronestation everything is fine).
That's what really should be optimized lol.
i7-6700K, GTX 1080, 16GB DDR4, win10 64bit
P.S. Thank you for awesome game ^-^
Re: Friday Facts #281 - For a Few Frames More
These results look extremely promising. The highest render time I could find on the "New" benchmark was 22.62ms which would be about 44 FPS whereas with the old build the lowest FPS would be about half that. Although the integrated graphics had the low quality compression enabled, this was with high resolution sprites in a scenario that has extraordinarily much to render.