Page 1 of 1

[0.15.2] Intense flickering on fully-rendered map view

Posted: Wed Apr 26, 2017 2:27 am
by Nofew
So I decided to make a poopton of smelting lines earlier, around eight to ten, 24 stone furnaces each. I'm pretty sure people are familiar with the design.

I noticed that if I zoom in /just/ enough in the map to get the view to go into fully-rendered.. Renderedness, that the middle entities flicker in and out of existence. My gut tells me that Factorio is doing this:

CreateEntities();
RefreshDisplay();
WaitForVBlank();
EraseEntities();
RefreshDisplay();
CreateEntities();
RefreshDisplay();
(...)

I believe that there's room to hit two birds with one stone here to get rid of the flickering and add a small(?) optimization at the same time; just take out the second RefreshDisplay();!

CreateEntities();
RefreshDisplay();
WaitForVBlank();
EraseEntities();
CreateEntities();
RefreshDisplay();
(...)

Interestingly, the flickering doesn't seem to happen near the edges of the screen. I'm a little baffled by this, and why it wasn't noticed already considering how massively dense your new test factory is, but it might have to do with me having a 144 hz monitor. Maybe it's worth investigating if Factorio is assuming a refresh rate of 60 hz, too?


EDIT: Toggling VSync doesn't fix it.

Re: [0.15.2] Intense flickering on fully-rendered map view

Posted: Thu Apr 27, 2017 9:51 am
by posila
Hi, thanks for the report.
Do all entities flicker or just arrows on belts?

Re: [0.15.2] Intense flickering on fully-rendered map view

Posted: Fri Apr 28, 2017 5:01 am
by Nofew
All entities.

Re: [0.15.2] Intense flickering on fully-rendered map view

Posted: Sun Apr 30, 2017 2:34 am
by Rseding91
Nofew wrote:All entities.
Can you make a video showing it happening?

Re: [0.15.2] Intense flickering on fully-rendered map view

Posted: Fri May 05, 2017 11:21 pm
by Nofew
Here'ya go! https://www.youtube.com/watch?v=YZYjBzvcRDo -- Pay special attention to the last five seconds or so where I go from map view to normal view. It has the same level of zoom (Right near it, anyway), but the map flickers and the normal one doesn't. Do note that the flickering is a *lot* more noticeable when video compression isn't a factor and you aren't confusing it with Moire patterns.

I've noticed now that it primarily seems to affect empty transport belts.

I'm sorry again about taking so long to reply. I only just now figure out how to get email replies; man, that checkbox is super hidden! Why is it only visible when making a post? Anyway, how do I change my password? I know this isn't the place to ask, but I figure while I have'ya... <w<'

Re: [0.15.2] Intense flickering on fully-rendered map view

Posted: Sat May 06, 2017 6:27 am
by Loewchen

Re: [0.15.2] Intense flickering on fully-rendered map view

Posted: Sat May 06, 2017 1:36 pm
by Nofew
Noted! Moving my conversation to that thread instead.