[posila] [0.17.1] Texture corruption at maximum scale

This subforum contains all the issues which we already resolved.
alexred
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Feb 27, 2019 11:39 am
Contact:

[posila] [0.17.1] Texture corruption at maximum scale

Post by alexred »

Any changes of graphic settings don't help

Image

Code: Select all

 0.000 2019-02-27 14:53:02; Factorio 0.17.1 (build 43001, linux64, steam)
   0.107 Operating system: Linux (Ubuntu 18.10)
   0.108 Program arguments: "/mnt/sdc1/SteamLibrary/steamapps/common/Factorio/bin/x64/factorio" 
   0.108 Read data path: /mnt/sdc1/SteamLibrary/steamapps/common/Factorio/data
   0.108 Write data path: /home/alexred/.factorio [77065/125697MB]
   0.108 Binaries path: /mnt/sdc1/SteamLibrary/steamapps/common/Factorio/bin
   0.118 System info: [CPU: AMD Phenom(tm) II X4 965 Processor, 4 cores, RAM: 7976 MB]
   0.118 Environment: DISPLAY=:0.0, WAYLAND_DISPLAY=<unset>
   0.118 Display options: [FullScreen: 0] [VSync: 0] [UIScale: automatic (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.190 Available displays: 1
   0.190  [0]: Acer P226HQ 22" - {[0,0], 1920x1080, SDL_PIXELFORMAT_RGB888, 60Hz}
   0.227 Initialised OpenGL:[0] AMD JUNIPER (DRM 2.50.0 / 4.18.0-15-generic, LLVM 7.0.1); driver: 3.3 (Core Profile) Mesa 19.1.0-devel (git-338dacc 2019-02-22 cosmic-oibaf-ppa)
   0.227   [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes
   0.227   [Version] 3.3
   0.249 Graphics settings preset: medium-with-low-vram
   0.249   Dedicated video memory size 1024 MB
   0.249 Graphics options: [Graphics quality: normal] [Video memory usage: low] [Light scale: 25%] [DXT: low-quality]
   0.249                   [Max load threads: 32] [Max texture size: 2048] [Tex.Stream.: 1] [Low quality rotation: 1]
   0.530 Loading mod core 0.0.0 (data.lua)
   0.614 Loading mod base 0.17.1 (data.lua)
   0.857 Loading mod base 0.17.1 (data-updates.lua)
   0.984 Checksum for core: 1014885620
   0.984 Checksum of base: 819815259
   1.607 Loading sounds...
   1.638 Info PlayerData.cpp:69: Local player-data.json unavailable
   1.639 Info PlayerData.cpp:72: Cloud player-data.json available, timestamp 1551267559
   1.799 Initial atlas bitmap size is 2048
   1.803 Created atlas bitmap 2048x888 [none]
   1.805 Created atlas bitmap 2048x1960 [decal]
   1.805 Created atlas bitmap 2048x1984 [decal]
   1.809 Created atlas bitmap 2048x1968 [low-object]
   1.812 Created atlas bitmap 2048x2048 [low-object]
   1.815 Created atlas bitmap 2048x2048 [low-object]
   1.815 Created atlas bitmap 2048x1840 [low-object]
   1.816 Created atlas bitmap 2048x2048 [mipmap, linear-minification, linear-magnification, linear-mip-level, no-crop, no-scale]
   1.816 Created atlas bitmap 2048x1920 [mipmap]
   1.820 Created atlas bitmap 2048x2032 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   1.822 Created atlas bitmap 2048x2016 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   1.824 Created atlas bitmap 2048x2016 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   1.826 Created atlas bitmap 2048x1968 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   1.827 Created atlas bitmap 2048x2000 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   1.827 Created atlas bitmap 2048x1968 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   1.827 Created atlas bitmap 2048x2048 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   1.827 Created atlas bitmap 2048x1920 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   1.827 Created atlas bitmap 2048x544 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   1.827 Created atlas bitmap 2048x1936 [smoke, mipmap, linear-minification, linear-magnification]
   1.827 Created atlas bitmap 2048x1296 [smoke, mipmap, linear-minification, linear-magnification]
   1.828 Created atlas bitmap 2048x2020 [not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, no-crop, no-scale]
   1.828 Created atlas bitmap 2048x696 [not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, no-crop, no-scale]
   1.829 Created atlas bitmap 2048x1656 [alpha-mask]
   1.833 Created atlas bitmap 2048x2044 [shadow, linear-magnification, alpha-mask]
   1.836 Created atlas bitmap 2048x2040 [shadow, linear-magnification, alpha-mask]
   1.839 Created atlas bitmap 2048x2044 [shadow, linear-magnification, alpha-mask]
   1.841 Created atlas bitmap 2048x2048 [shadow, linear-magnification, alpha-mask]
   1.844 Created atlas bitmap 2048x2048 [shadow, linear-magnification, alpha-mask]
   1.846 Created atlas bitmap 2048x2044 [shadow, linear-magnification, alpha-mask]
   1.848 Created atlas bitmap 2048x2048 [shadow, linear-magnification, alpha-mask]
   1.851 Created atlas bitmap 2048x2044 [shadow, linear-magnification, alpha-mask]
   1.853 Created atlas bitmap 2048x2048 [shadow, linear-magnification, alpha-mask]
   1.855 Created atlas bitmap 2048x2040 [shadow, linear-magnification, alpha-mask]
   1.859 Created atlas bitmap 2048x2048 [shadow, linear-magnification, alpha-mask]
   1.861 Created atlas bitmap 2048x2044 [shadow, linear-magnification, alpha-mask]
   1.861 Created atlas bitmap 2048x1756 [shadow, linear-magnification, alpha-mask]
   1.861 Created atlas bitmap 2048x2032 [shadow, mipmap, linear-magnification, alpha-mask]
   1.861 Created atlas bitmap 2048x560 [shadow, mipmap, linear-magnification, alpha-mask]
   2.200 Created virtual atlas pages 4096x4096x8
   2.506 Parallel Sprite Loader initialized (threads: 3)
  10.017 Sprites loaded
  10.102 Generated mipmaps for atlas of size 2048x1968
  10.179 Generated mipmaps for atlas of size 2048x2048
  10.261 Generated mipmaps for atlas of size 2048x2048
  10.338 Generated mipmaps for atlas of size 2048x1840
  10.418 Generated mipmaps for atlas of size 2048x2048
  10.498 Generated mipmaps for atlas of size 2048x1920
  10.579 Generated mipmaps for atlas of size 2048x2032
  10.663 Generated mipmaps for atlas of size 2048x2016
  10.743 Generated mipmaps for atlas of size 2048x2016
  10.820 Generated mipmaps for atlas of size 2048x1968
  10.900 Generated mipmaps for atlas of size 2048x2000
  10.981 Generated mipmaps for atlas of size 2048x1968
  11.063 Generated mipmaps for atlas of size 2048x2048
  11.144 Generated mipmaps for atlas of size 2048x1920
  11.223 Generated mipmaps for atlas of size 2048x544
  11.304 Generated mipmaps for atlas of size 2048x1936
  11.385 Generated mipmaps for atlas of size 2048x1296
  11.431 Generated mipmaps for atlas of size 2048x2020
  11.472 Generated mipmaps for atlas of size 2048x696
  11.568 Generated mipmaps for atlas of size 2048x2032
  11.641 Generated mipmaps for atlas of size 2048x560
  11.843 Generated mipmaps for virtual atlas of size 8192x16384
  11.861 Custom inputs active: 0
  11.959 Factorio initialised
  15.132 Loading map /home/alexred/.factorio/saves/Alexred0.17.zip: 1847606 bytes.
  15.151 Loading Level.dat: 2678047 bytes.
  15.162 Info Scenario.cpp:147: Map version 0.17.1-1
  15.426 Loading script.dat: 328 bytes.
  15.429 Checksum for script /home/alexred/.factorio/temp/currently-playing/control.lua: 2366710471
  64.036 Info AppManagerStates.cpp:1756: Saving finished
  65.618 Info GlobalContext.cpp:677: Waiting for child processes to exit: 
  65.778 Steam API shutdown.
  65.785 Goodbye
posila
Factorio Staff
Factorio Staff
Posts: 5360
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [posila] [0.17.1] Texture corruption at maximum scale

Post by posila »

Hello, does it still happen in 0.17.4? If so, can you please upload a screenshot here? (the link to the first one doesn't work anymore - 410 Gone)

Have you tried to change "Video memory usage" to "All"?
alexred
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Feb 27, 2019 11:39 am
Contact:

Re: [posila] [0.17.1] Texture corruption at maximum scale

Post by alexred »

posila wrote: Sun Mar 03, 2019 4:07 pm Hello, does it still happen in 0.17.4? If so, can you please upload a screenshot here? (the link to the first one doesn't work anymore - 410 Gone)

Have you tried to change "Video memory usage" to "All"?
Thank you, the problem with the damage of textures was decided by switching the use of video memory to "All".
Low video memory use( 0.17.4 ):
Image
All video memory use( 0.17.4 ):
Image
Also, there was no problem under Windows 10
m44v
Fast Inserter
Fast Inserter
Posts: 133
Joined: Sun May 15, 2016 8:55 pm
Contact:

Re: [posila] [0.17.1] Texture corruption at maximum scale

Post by m44v »

I have the same issue, I'm adding screenshots since OP's are already gone.

This is with Ubuntu 18.10, AMD Radeon 6670 and Mesa 19.1.0-devel drivers.
Factorio 0.17.4, video memory usage to "high". Changing it to "all" fixed it.

first screenshot is zoomed in, no corruption, second zoomed out and corruption.
Attachments
Captura de pantalla de 2019-03-03 21-29-38.jpg
Captura de pantalla de 2019-03-03 21-29-38.jpg (273.18 KiB) Viewed 3435 times
Captura de pantalla de 2019-03-03 21-29-52.jpg
Captura de pantalla de 2019-03-03 21-29-52.jpg (250.61 KiB) Viewed 3435 times
posila
Factorio Staff
Factorio Staff
Posts: 5360
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [posila] [0.17.1] Texture corruption at maximum scale

Post by posila »

Thanks for the report.
It should be fixed for 0.17.26

Note: as a fix, I moved resolving of virtual texturing from GPU to CPU, which add extra overhead to CPU but is easier for GPU. I have not run any benchmarks yet, but I expect it to be net-profit for performance on not-quite-new hardware. But, I have noticed this being reported only on pre-GCN Radeons with Mesa drivers on Linux, so I think it might be something broken in shader compiler in the driver for this particular series of GPUs; which means, if the change turns out to be terrible for performance, we might revert it and declare texture streaming unsupported on Linux on pre-GCN Radeons.

(67494, 68540, 68807)
Post Reply

Return to “Resolved Problems and Bugs”