Friday Facts #333 - Terrain scrolling

Regular reports on Factorio development.
User avatar
FactorioBot
Factorio Staff
Factorio Staff
Posts: 423
Joined: Tue May 12, 2015 1:48 pm

Friday Facts #333 - Terrain scrolling

Post by FactorioBot »

User avatar
Filter62
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Mon Sep 04, 2017 6:54 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by Filter62 »

That's why I respect you guys and believe you will do everything right! Keep up the good work. :mrgreen:
User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 616
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by Gergely »

Reminds me of this: YouTube: The NES's Loading Seam.

Optimization on this level is not necessary today, but it was back then.
Vornicus
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sat Sep 13, 2014 8:05 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by Vornicus »

This is how the NES did it! this way scrolling only took writing like 80 bytes per frame at most instead of a whole kilobyte.
User avatar
MakeItGraphic
Fast Inserter
Fast Inserter
Posts: 237
Joined: Sat Jan 06, 2018 7:53 am
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by MakeItGraphic »

Intel 4400 here ^_^ much appreciated.
malventano
Filter Inserter
Filter Inserter
Posts: 342
Joined: Thu Apr 27, 2017 4:31 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by malventano »

I think the only 'big' graphical thing left in need of optimization is when zooming out map view on larger bases - it noticeably slows the game even on the fastest of systems.
Allyn Malventano
---
Want to improve fluid flow between pumps / across longer distances? Try my Manifolds mod.
cappie
Inserter
Inserter
Posts: 30
Joined: Fri May 15, 2015 1:17 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by cappie »

You guys keep amazing me with the intricacies of game development.. I love these Friday Facts and wish EVERY developer would write them; I absolutely love them.. also, these optimizations is exactly why Factorio has been my #1 game for the last few years..

Do you have an updated unit test video? I'd love to see one updated to 0.18.x ... the older ones you have on YouTube were AMAZEBALLS.. I love the fact that you're doing tests like these; it's the reason why Factorio is unequivocally one of the best if not THE BEST QUALITY GAME I've ever played!
1234tv
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Dec 11, 2014 5:43 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by 1234tv »

Sounds like my Surface Pro 3 will do better now. The power limit has been the problem in the past as it favored the GPU over the CPU. Rendering was done in no time but the CPU had no power budget left to run the simulation.
While it managed 60 UPS in the map view of a 1k spm base it dropped to about 25 while playing. Just shows how insanely optimized the game is (and you are still improving it!).
User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 616
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by Gergely »

posila wrote:People see a 2D game and expect to be able to play it on essentially anything.
I wish this was the case. I saw my fair share of 2D games that don't even justify being on a game engine and yet the computer fans go loud when I start them.
Last edited by Gergely on Fri Feb 07, 2020 5:36 pm, edited 1 time in total.
netmand
Filter Inserter
Filter Inserter
Posts: 302
Joined: Wed Feb 22, 2017 1:20 am
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by netmand »

I went in for 20 minutes last night and was greeted with this update... which broke my experience. Boohoo now I have to troubleshoot my setup.
plepper1
Long Handed Inserter
Long Handed Inserter
Posts: 82
Joined: Tue May 23, 2017 4:25 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by plepper1 »

Awesome!

Which release did/will this make it into?
Rebmes
Long Handed Inserter
Long Handed Inserter
Posts: 97
Joined: Sat Sep 15, 2018 7:51 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by Rebmes »

Going in the right direction ^^
movax20h
Fast Inserter
Fast Inserter
Posts: 164
Joined: Fri Mar 08, 2019 7:07 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by movax20h »

Out of curiosity what time do you see when you disable the caching and use high end GPU and CPU for the test? I can imaging it will be unusable, but was wondering for comparison.
abnessor
Burner Inserter
Burner Inserter
Posts: 12
Joined: Mon Apr 24, 2017 6:03 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by abnessor »

Thanks you!
I self use terrain caching lot of times (in my small game projects) and think about it like single and fastest solution, but now i have easy and faster solution.

And one more case i using this(my optimization, and now plan to add new optimization) with canvas html5 render, and some time it's kill performance on integrated gpu with specific drivers.

As additional optimization i use larger buffer than screen, and redraw missing parts only when touch border with recenter image. It's give delays only every ~30 frames while fast moving instead of every frame.

I think with that technique and bigger cache buffer it give way to write simple games with canvas and w/o hardware acceleration.
Hiladdar
Fast Inserter
Fast Inserter
Posts: 214
Joined: Mon May 14, 2018 6:47 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by Hiladdar »

Yes, I like it, and hope to see more of this.

This is also why it is important to stress test the game not just on optimum gaming systems, but also on legacy setups. My expectation of a legacy system is something that was considered upper range about 5 years ago. I do not expect performance to be flawless like on a contemporary, but with most of the processing intensive stuff turned off, playable.

Hiladdar
DerGraue
Fast Inserter
Fast Inserter
Posts: 151
Joined: Mon May 30, 2016 12:12 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by DerGraue »

The only thing I don't quite understand: Why don't you tell us such amazing things in the patch notes?
TOGoS
Former Staff
Former Staff
Posts: 97
Joined: Fri Jun 24, 2016 2:29 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by TOGoS »

Neat. Back in the 90s (when I first started trying to program games) cutting down the number of pixels drawn to the screen was super important, so basically every attempt to write games started with me writing a class that figured out which parts needed to be updated, and leaving everything else alone (and I didn't even attempt to implement scrolling most of the time). Otherwise things would chug along at a couple of frames per second, at best. When I first played Doom I was amazed not at the 3D nature of it, but that they were somehow managing to rewrite 50000 pixels every second! I suppose John Carmack had figured out a quicker way to poke stuff into video memory than I knew about.

Anyway, having a mostly-static back buffer is still a useful trick if you're doing software rendering of any kind, especially if you're doing it in Java[Script] or something where who knows how many function calls and bounds checks get involved just to move an int around. Or if your scene is just really complicated with a bajillion decals scattered all over.
torham
Fast Inserter
Fast Inserter
Posts: 187
Joined: Sun May 25, 2014 1:40 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by torham »

Gergely wrote: Fri Feb 07, 2020 5:35 pm
posila wrote:People see a 2D game and expect to be able to play it on essentially anything.
I wish this was the case. I saw my fair share of 2D games that don't even justify being on a game engine and yet the computer fans go loud when I start them.
Rise to Ruins. You can hardly call it even a pixel art, and yet it struggled on my AMD 8 core 4.4 GHz + Nvidia gtx 970. I really couldn't figure out how it is so badly written...
KatherineOfSky
Fast Inserter
Fast Inserter
Posts: 124
Joined: Wed Mar 30, 2016 7:54 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by KatherineOfSky »

Thank you so much for this optimization! I've heard from so many people with self-described "potato" computers who are so happy they can play Factorio on their systems. This update is VERY much appreciated! <3
Tutorials, wild playthroughs, and more! https://www.youtube.com/@KatherineOfSky
PaszaVonPomiot
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Fri Dec 29, 2017 1:50 pm
Contact:

Re: Friday Facts #333 - Terrain scrolling

Post by PaszaVonPomiot »

As a GTX 1070 user I say "Well done sir!". Every optimisation counts in this kind of game to be accessible to the widest audience.
I would like to go back to previous FFF where we discussed new sounds and there were many critical voices. Would you mind commenting on that?
Post Reply

Return to “News”