protonscr

SimCity 2013 - minor rendering issues

dxvkclosed bugd3d9
doitsujin/dxvk#2361 · opened 2021-11-13 by firescry · updated 2022-09-26 · 8 comments · github
Ffirescry 2021-11-13 github

With the latest fixes in dxvk, major issue (#1869) is now resolved and the game is playable. Few other rendering problems became visible though:

  • trees are incorrectly rendered, they are replaced by other models (pic. 1, 2)
  • some animations look wrong and are played too fast e.g. wind turbine propeller (pic. 1)
  • building outline is incorrect (pic. 3)
  • some building parts are missing/relocated, e.g. elements at the top of chimneys (pic. 3)
  • there is a grid rendered on the ground (pic. 1, 2, 3)

Issues are not visible for wine d3d. Attached apitrace covers all mentioned problems.

# wine d3d dxvk
1 0009837814_wine 0009837814_dxvk
2 0014769307_wine 0014769307_dxvk
3 0025901796_wine 0025901796_dxvk

Software information

SimCity 2013 (Origin)

System information

  • GPU: AMD Radeon RX 580
  • Driver: mesa 21.2.5 @ linux 5.15.2
  • Wine version: wine-6.21 (Staging)
  • DXVK version: v1.9.2-43-g12249fd3 (12249fd)

Apitrace file(s)

Log files

Ffirescry 2021-11-28 github

Thank you for providing fixes 😊

I checked the patches from #2364 and game looks much better now. The only problem that is still visible is the grid on the ground. It may not be very noticeable on the screenshots above, but this diff shows it better (diff between frame rendered by wine d3d vs. dxvk):
diff

KK0bin maintainer 2021-11-28 github

Apitrace of that please.

Ffirescry 2021-11-28 github

Here is the new apitrace that shows specifically the issue of grid on the ground - SimCity_2.tar.xz. The grid is visible also on pic. 1 below.

Additionally I've noticed that in camera lowering animation (just after map is loaded), there is an extra shadow visible on the left hand side. It looks like shadow cast by big square (pic. 2). This is visible only shortly after map is loaded and disappears quickly. It's not very disturbing, but I'm reporting it here just in case you'll find it interesting to check it further (it's captured in the apitrace above).

# wine d3d dxvk
1 wine0046190043 dxvk0046190043
2 wine0003522776 dxvk0003522776
CCME42 2021-11-29 github

pic1: The game is using a cube map with a different texture on each face to render the terrain and it relies on the cube map to be seamful, similar bug like in #2239.

pic2: I can reproduce it on AMD but not on NV, so it might be a driver issue, but i haven't looked at it any further yet.

KK0bin maintainer 2021-11-30 github

Reopening this because of the grid issue. The problem with trees is fixed though.

Ffirescry 2021-12-04 github

Thank you for checking on the problem with the grid ☺️

As for the issue with extra shadow (pic. 2), I do not have access to any other GPU, but I tried with AMDVLK instead of RADV and this shadow is still there. I used AMDVLK 2021.Q4.1 (currently the latest) and here is the dxvk log - SimCity_d3d9.log.

CCME42 2021-12-05 github

Yeah sorry i forgot to comment here, the shadow issue happens due to the d24s8 -> d32s8 fixup that is necessary on AMD. I can also repro it on NV when i force the fixup there - so it is also a DXVK bug.

KK0bin maintainer 2022-09-21 github

Probably #2892

Nothing extracted yet.