SuperTuxKart in 18.04 : flickering shadows with intel i915

Hello,

for 2-3 weeks now I noticed glitches when I play SuperTuxKart : the shadows in most tracks are flickering. Strongly. I mean it really hurts eyes.

When I boot the same machine on ubuntu 16.04 I don’t have this flickering nightmare.

It does not seem related to kernel since if I boot my 18.04 on 4.15.0-55 problem still occurs.

I suspect some update regarding mesa, video-acceleration or xorg-*-intel but don’t really know how to narrow down the culprit…

coeur-noir@asgard:~$ lspci -k | grep -A 2 -i "VGA"
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
	Subsystem: ASUSTeK Computer Inc. Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
	Kernel driver in use: i915
coeur-noir@asgard:~$ sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       produit: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
       fabriquant: Intel Corporation
       identifiant matériel: 2
       information bus: pci@0000:00:02.0
       version: 06
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       ressources: irq:26 mémoire:f7800000-f7bfffff mémoire:e0000000-efffffff portE/S:f000(taille=64) mémoire:c0000-dffff
coeur-noir@asgard:~$ 

Processor is Intel® Core™ i7-4770K CPU @ 3.50GHz

I don’t use any ppa regarding drivers, only using official repositories.

Suggest have a look at the projects issues list to see if you spot something similar. If not suggest raising there https://github.com/supertuxkart/stk-code/issues

note - they may ask you to use a newer kernel/mesa etc which you can do (from the official repositories) via an HWE (hardware enablement stack) upgrade

https://wiki.ubuntu.com/Kernel/LTSEnablementStack#Ubuntu_18.04_LTS_-_Bionic_Beaver

I am already on HWE.

I’ll go check STK issues → https://github.com/supertuxkart/stk-code/issues/4022

For reference ( french ) : https://forum.ubuntu-fr.org/viewtopic.php?id=2042165

This may or may not do the trick, as mentioned here https://github.com/supertuxkart/stk-code/issues/3909

Modify file graphical_restrictions.xml to be found in /usr/share/games/supertuxkart/data/

⋅ line 11 becomes :

  <card contains="Intel"          os="linux"                       disable="ComputeShader"/>

⋅ this line initially reads :

  <card contains="Intel"          os="linux"    version="<11.2"    disable="ComputeShader"/>

Reminder for launching gedit with root privileges :

gedit admin:///usr/share/games/supertuxkart/data/graphical_restrictions.xml

later :

Damn… flickering is back, randomly on any tracks.

Mesa on my 18.04 :

coeur-noir@asgard:~$ dpkg -l | grep mesa
ii  libegl-mesa0:amd64                      19.0.2-1ubuntu1.1~18.04.2                     amd64        free implementation of the EGL API -- Mesa vendor library
ii  libegl1-mesa:amd64                      19.0.2-1ubuntu1.1~18.04.2                     amd64        transitional dummy package
ii  libgl1-mesa-dri:amd64                   19.0.2-1ubuntu1.1~18.04.2                     amd64        free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-dri:i386                    19.0.2-1ubuntu1.1~18.04.2                     i386         free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-glx:amd64                   19.0.2-1ubuntu1.1~18.04.2                     amd64        transitional dummy package
ii  libgl1-mesa-glx:i386                    19.0.2-1ubuntu1.1~18.04.2                     i386         transitional dummy package
ii  libglapi-mesa:amd64                     19.0.2-1ubuntu1.1~18.04.2                     amd64        free implementation of the GL API -- shared library
ii  libglapi-mesa:i386                      19.0.2-1ubuntu1.1~18.04.2                     i386         free implementation of the GL API -- shared library
ii  libgles2-mesa:amd64                     19.0.2-1ubuntu1.1~18.04.2                     amd64        transitional dummy package
ii  libglu1-mesa:amd64                      9.0.0-2.1build1                               amd64        Mesa OpenGL utility library (GLU)
ii  libglu1-mesa:i386                       9.0.0-2.1build1                               i386         Mesa OpenGL utility library (GLU)
ii  libglx-mesa0:amd64                      19.0.2-1ubuntu1.1~18.04.2                     amd64        free implementation of the OpenGL API -- GLX vendor library
ii  libglx-mesa0:i386                       19.0.2-1ubuntu1.1~18.04.2                     i386         free implementation of the OpenGL API -- GLX vendor library
ii  libosmesa6:amd64                        19.0.2-1ubuntu1.1~18.04.2                     amd64        Mesa Off-screen rendering extension
ii  libosmesa6:i386                         19.0.2-1ubuntu1.1~18.04.2                     i386         Mesa Off-screen rendering extension
ii  libwayland-egl1-mesa:amd64              19.0.2-1ubuntu1.1~18.04.2                     amd64        transitional dummy package
ii  mesa-utils                              8.4.0-1                                       amd64        Miscellaneous Mesa GL utilities
ii  mesa-utils-extra                        8.4.0-1                                       amd64        Miscellaneous Mesa utilies (opengles, egl)
ii  mesa-va-drivers:amd64                   19.0.2-1ubuntu1.1~18.04.2                     amd64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:amd64                19.0.2-1ubuntu1.1~18.04.2                     amd64        Mesa VDPAU video acceleration drivers
coeur-noir@asgard:~$

and on 16.04 :

coeurnoir@Asgard:~$ dpkg -l | grep mesa
ii  libegl1-mesa:amd64                          18.0.5-0ubuntu0~16.04.1                      amd64        free implementation of the EGL API -- runtime
ii  libegl1-mesa:i386                           18.0.5-0ubuntu0~16.04.1                      i386         free implementation of the EGL API -- runtime
ii  libegl1-mesa-drivers:amd64                  12.0.6-0ubuntu0.16.04.1                      amd64        transitional dummy package
ii  libgl1-mesa-dri:amd64                       18.0.5-0ubuntu0~16.04.1                      amd64        free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-dri:i386                        18.0.5-0ubuntu0~16.04.1                      i386         free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-glx:amd64                       18.0.5-0ubuntu0~16.04.1                      amd64        free implementation of the OpenGL API -- GLX runtime
ii  libgl1-mesa-glx:i386                        18.0.5-0ubuntu0~16.04.1                      i386         free implementation of the OpenGL API -- GLX runtime
ii  libglapi-mesa:amd64                         18.0.5-0ubuntu0~16.04.1                      amd64        free implementation of the GL API -- shared library
ii  libglapi-mesa:i386                          18.0.5-0ubuntu0~16.04.1                      i386         free implementation of the GL API -- shared library
ii  libgles1-mesa                               18.0.5-0ubuntu0~16.04.1                      all          transitional dummy package
ii  libgles2-mesa:amd64                         18.0.5-0ubuntu0~16.04.1                      amd64        free implementation of the OpenGL|ES 2.x API -- runtime
ii  libglu1-mesa:amd64                          9.0.0-2.1                                    amd64        Mesa OpenGL utility library (GLU)
ii  libglu1-mesa:i386                           9.0.0-2.1                                    i386         Mesa OpenGL utility library (GLU)
ii  libosmesa6:amd64                            18.0.5-0ubuntu0~16.04.1                      amd64        Mesa Off-screen rendering extension
ii  libosmesa6:i386                             18.0.5-0ubuntu0~16.04.1                      i386         Mesa Off-screen rendering extension
ii  libwayland-egl1-mesa:amd64                  18.0.5-0ubuntu0~16.04.1                      amd64        implementation of the Wayland EGL platform -- runtime
ii  libwayland-egl1-mesa:i386                   18.0.5-0ubuntu0~16.04.1                      i386         implementation of the Wayland EGL platform -- runtime
ii  mesa-utils                                  8.3.0-1                                      amd64        Miscellaneous Mesa GL utilities
ii  mesa-va-drivers:amd64                       18.0.5-0ubuntu0~16.04.1                      amd64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:amd64                    18.0.5-0ubuntu0~16.04.1                      amd64        Mesa VDPAU video acceleration drivers
coeurnoir@Asgard:~$ 
1 Like