Page 1 of 1

[posila][2.0.21] Some VFX still rendered through fog of war

Posted: Sat Nov 23, 2024 1:20 pm
by EustaceCS
Offenders spotted to date:
- wired belt segments
- actively researching labs
- [UPD] furnaces and electric mining drills

Environment
- Ubuntu 24.10 x64, all-vanilla (no beta channels and as few extra repos as possible) with snapd support (and snapd dependant packages) removed.
-- Linux 6.11.0-8-generic
-- Gnome ver. 47
-- Wayland for windowing system
- AMD Vega 8 Mobile for a GPU, recognized by Steam's hardware checkup as
-- CPU Brand: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
-- Video Card:
--- Driver: AMD AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 19.1.0, DRM 3.58, 6.11.0-8-generic)
--- Driver Version: 4.6 (Compatibility Profile) Mesa 24.2.3-1ubuntu1
- Factorio Linux native edition, stand-alone, of today's latest Experimental version
-- X11 selected over Wayland
-- all eye candy disabled
-- no mods, fresh save started 20ish hours ago or so

Example with wired belts:
1. Load the save.
2. Move to starting coal patch to see both wired belts slightly at the left from it.
3. Step away so these belts are not in character's "reveal" range.
4. Enter map mode before fog of war returns to a chunk with wired belts.
5. Observe.

Expected result
Fog of war covers everything, leaving only colored pixels representing specific entities and nothing else.

Actual Result
"On/off lamp" and belt scanning laser are still rendered for wired belts.
"tesla lamp" effect is being rendered for actively researching labs.
Looks quite badass and handy in SOME very rare cases where end user hogged resources dedicated for radar coverage. But it's not quite how "true" fog of war is supposed to work. . .

Observations
For some incompherendable reason, if the system is loaded by anything significant in addition to Factorio (in my case: Steam startup + some YouTube video in background in Edge browser, OBS doing its post-recording processing) - the problem cease to appear.
Steam being fully loaded + OBS doing recording, for some no less mysterious reason, does not make problem disappear.
So it may or may not be a coincidience.

Video: https://e.pcloud.link/publink/show?code ... omtXBlrVKX

[UPD] Example with research labs and furnaces (and electric mining drills - top left of the screenshot), on same save:
1. Stop all researches.
2. Hug the offshore pump at the leftmost edge of the base.
3. Wait until fog of war covers research & smelting area.
4. Enter map mode, max zoom, and look at research & smelting area.
5. Start any research for which you have packs for (red, green, blues).
Video: https://e.pcloud.link/publink/show?code ... uOGRcT1olX
Screenshot added.
The log file attached to this post is from 1st reproduction case (belts). Is a separate log for research&smelting area needed?

Re: [posila][2.0.21] Some VFX still rendered through fog of war

Posted: Tue Nov 26, 2024 10:44 am
by posila
Thank for very detailed bug report.

Fixed for 2.0.22.

It's caused by bug in new graphics option Occlude light sprites and the bug in code path when the option is disabled. It's disabled by default on your computer, I'll have to look into if it is appropriate default value on your computer, but also we have trouble detecting GPU capabilities well on Linux, since we still just just OpenGL.

I don't know why under the load it disappear. It would disapper during daytime. Isn't it possible it just happened to be a day in game? Also the game detected just 5 GB of RAM is that correct?

Re: [posila][2.0.21] Some VFX still rendered through fog of war

Posted: Tue Nov 26, 2024 2:26 pm
by EustaceCS
Declared memory is 6GB RAM (8GB total minus 2GB dedicated to GPU) for this laptop.
Dark Souls Remastered thinks it's 5GB as well - so I probably have to ask some VERY inconvenient questions to my hardware's manufacturer...
Steam's hardware survey displays
"Primary VRAM: 2048 MB
RAM: 5287 Mb (sic!)"
"free -h --si" ran in Terminal gives these values:
Screenshot From 2024-11-26 17-18-11.png
Screenshot From 2024-11-26 17-18-11.png (9.89 KiB) Viewed 371 times
(Factorio SA + web browser + some small Electron based gizmos running)
Since you, gentlemen (and ladies, if any), did EXCELLENT job at optimization, I almost never dip below 60UPS in my usual gameplay, if that's a concern :)

For me personally, the fewer eye candy - the better. Since I'm way below declared expansion's minimal system requirements, my specific case is probably not quite worth investigation THAT deep.
(not to give false hope to people expecting DLC for Switch, at the very least :) )

Day/night - if I'll have a chance, I'll check it out. You're probably right.