Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indiana Jones and the Great Circle (2677660) #8292

Open
2 tasks done
matte-schwartz opened this issue Dec 6, 2024 · 60 comments
Open
2 tasks done

Indiana Jones and the Great Circle (2677660) #8292

matte-schwartz opened this issue Dec 6, 2024 · 60 comments
Labels
Game compatibility - Unofficial Games not expected to work without issues XAudio2 Uses the XAudio2 subsystem

Comments

@matte-schwartz
Copy link

matte-schwartz commented Dec 6, 2024

Compatibility Report

  • Name of the game with compatibility issues: Indiana Jones and the Great Circle
  • Steam AppID of the game: 2677660

System Information

I confirm:

  • that I haven't found an existing compatibility report for this game.
  • that I have checked whether there are updates for my system available.

Symptoms

Missing character and world textures immediately after launching into the game and completing the initial in-game menu setup. I launched the game under gamescope with PROTON_LOG=1 gamescope -e -f -h 2160 -w 7680 -r 240 --hdr-enabled --mangoapp --force-grab-cursor -- %command%

Screenshot_20241205_171811-min

indiana-jones-new-game

steam-2677660.log

Mesa gitlab issue link: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12257

Reproduction

  1. Launch the game
  2. Complete initial in-game set-up
  3. Start playing a new game after choosing difficulty level
@kisak-valve kisak-valve added Game compatibility - Unofficial Games not expected to work without issues XAudio2 Uses the XAudio2 subsystem labels Dec 6, 2024
@matte-schwartz
Copy link
Author

matte-schwartz commented Dec 6, 2024

The games crashes shortly after launch on Nvidia 565.77, tested with and without gamescope:
steam-2677660-nvidia.log

Issue link for performance issues, with card using way below maximum TDP: https://forums.developer.nvidia.com/t/565-77-indiana-jones-and-the-great-circle-only-runs-at-40-of-max-tdp-on-rtx-4090/315916

System Information

GPU: NVIDIA GeForce RTX 4090
Video driver version: nvidia-open 565.77
Kernel version: 6.12.2
Link to full system information report as Gist: https://gist.github.com/matte-schwartz/f50eaa2e63000db30269b49e771bd930
Proton version: experimental-bleeding-edge-9.0-140942-20241205-p8c3e86-w995693-db1ad43-v73e59c

@CptCookies12
Copy link

CptCookies12 commented Dec 6, 2024

Also getting a crash issue on Nvidia 565.57.01; a few seconds of the intro video's audio will play before suddenly closing. I did test the game with PROTON_HIDE_NVIDIA_GPU=1 and that did actually reach the main menu and there seemingly aren't any graphical issues there, however the framerate is extremely low hovering around the low 10-20 range so it's not playable.
steam-267766-hide-nvidia-gpu0.log

System Information

GPU: NVIDIA GeForce RTX 4070 Super
Video driver version: nvidia 565.57.01
Kernel version: 6.12.1-arch1-1
Link to full system information report as Gist: https://gist.github.com/CptCookies12/e978ad5cb133f0dad84c4f083664080a
Proton version: experimental-9.0-20241121b

@matte-schwartz
Copy link
Author

matte-schwartz commented Dec 6, 2024

As a workaround for now on NVIDIA, you can fake as an Ampere GPU with DXVK_NVAPI_GPU_ARCH=GA100 without disabling DLSS and NVAPI

upstream now with jp7677/dxvk-nvapi@c29f6f0

@Hadrianneue
Copy link

Hadrianneue commented Dec 6, 2024

runs fine with amdvlk btw, but no hdr since its amdvlk

@kisak-valve
Copy link
Member

@robotman40
Copy link

Workaround applied to upstream mesa/RADV: https://gitlab.freedesktop.org/mesa/mesa/-/commit/c2f8f20ef75a00917a652e32d4caa48029c68681

I believe you host a Mesa PPA for Ubuntu, which my system uses. So may I ask if you know when it will be added to the next Mesa release in your PPA?

@chkuendig
Copy link

chkuendig commented Dec 6, 2024

Isnt it possible to enable these as launch parameters? e.g radv_legacy_sparse_binding=true RADV_DEBUG=nodcc,zerovram %command%

@johndoe432
Copy link

Having a problem with this game as an NVIDIA user. On my RTX 3070 the fps does not get any higher than 15-17, even in the main menu, even with the lowest settings, even in 720p.

Some other users pointed this issue out as well, with them having more powerful GPUs (4080 Super and 4090). Tried launch arguments, none of them worked. The issue may be because of the limited power usage (it does not get higher than 70 watts for some reason).

I still don't know if the issue is in the game's engine, compatibility layer or in GPU drivers. Thought that mentioning this problem here should help in solving it.

System Information
GPU: NVIDIA GeForce RTX 3070
Video driver version: 565.57.01
Kernel version: 6.11.9

@ppogorze
Copy link

ppogorze commented Dec 6, 2024

I have RTX 4070 and i've got 10-15 FPS no matter if i pick 720 low or 4K max, TDP usage is 40W.

GPU: NVIDIA GeForce RTX 4070
Video driver version: 565.77
Kernel version: 6.12.3 & 6.13-rc

Tested both closed and open nvidia drivers, many proton version.

@CPioGH2002
Copy link

CPioGH2002 commented Dec 7, 2024

Adding some details:

When using mangohud, one can see that even 16GB cards and above (Nvidia in my case) don't use more than around 4GB of VRAM. The PCIe bus is heavily utilised, albeit not at 100%. This looks like how a card with actually low VRAM would behave: Starting to "swap" and losing a ton of performance.

GPU load is reported at 100% all the while only consuming some 70W, so the card is busy with... something. Checking clock rates, it did enter it's highest P0 power state (=no problem with a stuck power save mode or something), so I would assume that the "barrier" around the 4GB mark for the actual VRAM usage plays a leading role regarding this issue.

Not sure if this is some driver, transition layer or game issue. The ingame stats don't show this problem as they properly report the correct amount of VRAM. They game therefore "sees" the proper VRAM amount and also allows high settings without complaining.

@CptCookies12
Copy link

CptCookies12 commented Dec 7, 2024

Also adding onto the Nvidia framerate issue, I can also confirm there's a major issue with memory/VRAM utilization. On my 4070 Super, GPU load is 100% but VRAM stays locked at 3.3GB with RAM usage going way higher than Windows does when using the Ultra preset (same as what I'm running on Windows 11). Everything renders correctly but the VRAM usage being bugged means even at the lowest preset the game doesn't run well enough to be playable.

Arch Linux (nvidia 565.57.01)
Screenshot_20241207_013526

Windows 11 (Nvidia driver version 566.36; framerate locked to 60)
20241207010747_1

@kudos
Copy link

kudos commented Dec 7, 2024

The 4GB issue makes me think of resizable bar and 4G decoding, it could be worth toggling it on/off and seeing whether that makes a difference.

@johndoe432
Copy link

johndoe432 commented Dec 7, 2024

The 4GB issue makes me think of resizable bar and 4G decoding, it could be worth toggling it on/off and seeing whether that makes a difference.

Worth testing it out. How to I disable any of this per-game? Don't know 'cause I never encountered problems related to this.

Though it's not particularly 4GB, but anything would be great if it helps.

@kudos
Copy link

kudos commented Dec 7, 2024

Afaik you can only enable it in the bios, but you can disable it at runtime with VKD3D_CONFIG=no_upload_hvv

@johndoe432
Copy link

Afaik you can only enable it in the bios, but you can disable it at runtime with VKD3D_CONFIG=no_upload_hvv

Indiana uses Vulkan explicitly. Will this variable apply to it? VKD3D is for DirectX games as I know

@kudos
Copy link

kudos commented Dec 7, 2024

If you want to be sure then probably find out how to toggle it in the bios, I guess.

@matte-schwartz
Copy link
Author

I disabled resizeable bar in the BIOS for my 4090 and the performance tanked to 5fps, I think the only fix for this will have to come from Nvidia

@CPioGH2002
Copy link

The 4GB issue makes me think of resizable bar and 4G decoding, it could be worth toggling it on/off and seeing whether that makes a difference.

Good thinking but the game engine itself "sees" the correct amount of VRAM (when enabling the performance stats), only using other tools like mangohud or nvtop then shows how much is in actual use, for whatever reason.

So while one should certainly check and test for the RBar setting in the BIOS, it seems like other factors are at play when it comes to the artificial VRAM limit, in turn causing a severe performance downgrade for otherwise very capable cards.

@shelterx
Copy link

shelterx commented Dec 8, 2024

There is not many "tricks" Nvidia users can try since it's a Vulkan game. I also think Nvidia needs to fix this and that may take a while. It we try to push hard enough a fix may be in the next 570 driver. Though I hope for a hotfixed 565 driver.

@Uklosk
Copy link

Uklosk commented Dec 9, 2024

Same here with a RTX 3080 10G, game crashes immediately after launch.

Please NVIDIA, fix your shit, we want to get those Linux CCU numbers up 👐

@giantplaceholder

This comment was marked as off-topic.

@Uklosk
Copy link

Uklosk commented Dec 9, 2024

Please NVIDIA, fix your shit, we want to get those Linux CCU numbers up 👐

A bit of a tangent, but still: a year ago, it took them over two months to fix the most glaring performance issues with Starfield, which prompted me to switch to AMD. They really don't care about gaming on Linux, so personally, I wouldn't count on them.

I gave them proper feedback in the NVIDIA forums 😜
https://forums.developer.nvidia.com/t/bug-indiana-jones-and-the-great-circle-only-runs-at-40-of-max-tdp-on-rtx-4090/315916/35?u=jomai92

@graphitemaster
Copy link

Experiencing the same issues on NVIDIA 565.77 as outlined in this post. With everything set to the lowest possible setting it still only achieves about 10-15 FPS on my 4090 RTX.

It never clocks up to a higher P state, VRAM usage is stuck around 2-4 GiB despite having 24 GiB, and the PCIe traffic is off the charts at 100% utilization. It appears that the graphics is running completely off of system memory which explains everything.

@johndoe432
Copy link

Please NVIDIA, fix your shit, we want to get those Linux CCU numbers up 👐

A bit of a tangent, but still: a year ago, it took them over two months to fix the most glaring performance issues with Starfield, which prompted me to switch to AMD. They really don't care about gaming on Linux, so personally, I wouldn't count on them.

However, back in 2020 it took only a week to fix DOOM Eternal (which uses almost the same engine). So I hope we will wait for only a couple of days. I don't want to go back to windows for a single game lol

@sophie-kuehn
Copy link

sophie-kuehn commented Dec 9, 2024

So as you can see in the nvidia forums thread this is likely the fault of the engine. NVidia provided a workaround for the predecessor so hopefully they can do that again soon.

Imho talking aggressive to someone also never helps to get help from them. Not constructive (looking at some other comments here and there). Btw AMD announced to step back from high end GPU marked so maybe switching is a bad threat.

@johndoe432

This comment was marked as off-topic.

@Uklosk

This comment was marked as off-topic.

@giantplaceholder

This comment was marked as off-topic.

@Uklosk

This comment was marked as off-topic.

@chaitan3
Copy link

chaitan3 commented Dec 9, 2024

Apparently, Nvidia does have some special code in the vulkan driver for this game, but it could just be leftover code from Windows. You can even spot the new DOOM game exe in there.

for i in /usr/lib/libnvidia*.so; do echo $i; strings $i |grep -i TheGreatCircle.exe; done

Theoretically, through some reverse engineering, one could copy the settings for DOOMEternal to this game, if Nvidia takes their time to fix it.

@shelterx
Copy link

shelterx commented Dec 10, 2024

@chaitan3 Those exes are probably "windows leftovers", not sure if they have any real effect in Linux. I haven't found any specific fix that's visible in the Linux driver for doom eternal that actually works for TGC, it might be masked by some hash or simply isn't findable by text search.
There's an application workaround for doom eternal tho', that makes the game use PCores.... but that's it.

I had a go at trying to make the doom eternal settings apply to The Great Circle but it either did not work or had no effect.

FWIW, I also deleted the NV application profile for Indiana Jones - The great circle in Windows and tried without it, game still ran fine...
So it seems the issue is purely Linux specific.

@ga2mer
Copy link

ga2mer commented Dec 10, 2024

Use official workaround - https://forums.developer.nvidia.com/t/bug-indiana-jones-and-the-great-circle-only-runs-at-40-of-max-tdp-on-rtx-4090/315916/55

old workaround

It's very hacky and maybe doesn't work, but works for me:

  • open terminal and create some folder in user home, like /home/your_username/hack and cd to this folder
  • cp /usr/lib/libnvidia-glcore.so.565.77 . (the numbers at the end depend on the version number of the drivers, so they may be different, and also the library folder may be different on different linux distributions)
  • open it in your favorite hex editor, I use bless, like this sudo bless libnvidia-glcore.so.565.77
  • find 69 64 54 65 63 68 bytes or idTech text and replace it to 4D 4F 54 4F 52 00 or MOTOR text
  • put this in command line LD_LIBRARY_PATH="/home/your_username/hack:$LD_LIBRARY_PATH" %command% (specifically this may not work, I'm not an expert in this)
Screenshot

Screenshot_20241210_045450

@shelterx
Copy link

@ga2mer nicely hacked, works here too. I tried doing similar stuff but I focused on the DOOMEternal stirng

@johndoe432
Copy link

@ga2mer nicely hacked, works here too. I tried doing similar stuff but I focused on the DOOMEternal stirng

@shelterx can you post this fix to Nvidia developer forum post? Just for people to have a workaround for now

@ppogorze
Copy link

ppogorze commented Dec 10, 2024

@shelterx @ga2mer could you share this file with me? when i replace text indiana won't run, i also swapped file directly in usr/lib - the same result. maybe i'm doing something wrong...

EDIT: Hmm weird, i've got segfault at 8 ip 00007147b5c3a6b7 sp 00007ffc5d167f00 error 4 in ld-linux-x86-64.so.2[e6b7,7147b5c2d000+2a000] likely on CPU 6 (core 0, socket 0) after this modification

EDIT2: Hmm i'm doing something wrong, can't even put default libnvidia-glcore in envs

@sophie-kuehn
Copy link

sophie-kuehn commented Dec 10, 2024

So here i only have libnvidia-gtk2.so.510.47.03 and libnvidia-gtk3.so.510.47.03 . No libnvidia-glcore.so present. Can i still do the hack and yes in which?

System is Mint 21.3 with 550.120

Update 1: Found it. It's in /usr/lib/i386-linux-gnu/
Update 2: 69 64 54 65 63 68 bytes or idTech text is not present in libnvidia-glcore.so.550.120
Update 3: It's also not present in 560.35

@broconut123
Copy link

@ga2mer
tried all this but game doesn't run with LD_PRELOAD=libnvidia-glcore.so.565.77 LD_LIBRARY_PATH=. %command%
not sure what i'm doing wrong

@ga2mer
Copy link

ga2mer commented Dec 10, 2024

It's in /usr/lib/i386-linux-gnu/

I'm not sure it's correct dir, the game is x64, so the libraries you need are probably somewhere mentioning x64 or not mentioning x86, but better upgrade drivers to 565.77

not sure what i'm doing wrong

Like I said it may not work and I don't know how to use it properly, I have a very weird setup so it worked 50/50

Try copying this lib to some dir in your user folder, like the hack folder and in the commandline only write a path like this
LD_LIBRARY_PATH="/home/your_username/hack:$LD_LIBRARY_PATH" %command%.

also the wrong ld could mess up the launch, so it's better to restart steam before doing that

@Uklosk
Copy link

Uklosk commented Dec 10, 2024

Replying to #8292 (comment)

I confirm this is working, I also see slightly better memory management than on Windows. On windows the game drops to 5 fps if the game exceeds the memory budget available, on Linux performance drastically drops but it is a lot better.

@shelterx
Copy link

@ga2mer that's basically what I did and it worked.

It's important to replace the text properly otherwise the library might get corrupted

@sophie-kuehn
Copy link

sophie-kuehn commented Dec 10, 2024

It's in /usr/lib/i386-linux-gnu/

I'm not sure it's correct dir, the game is x64, so the libraries you need are probably somewhere mentioning x64 or not mentioning x86, but better upgrade drivers to 565.77

You are correct. Found another one in /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.550.120
Still there is no idTech to be found in there. Also not in the other nvidia libs. So it might be a version issue. An upgrade is not as easy as for Mint 550 is the latest available offically.

@albertz
Copy link

albertz commented Dec 10, 2024

Can we discuss why this works?

So, already right now, the libnvidia-glcore has the same kind of workaround for Doom Eternal? And this workaround is still needed for Doom Eternal? Why is this workaround needed at all?

Is the engine doing something weird/wrong there? Couldn't this be fixed maybe in the engine? Wouldn't that be more reasonable?

Why is this only happening in Proton, and not in Windows? Or does the Windows Nvidia driver has the same workaround for idTech (Doom Eternal), and also already for Motor (Indiana Jones), just the Linux Nvidia driver does not have it yet?

@broconut123
Copy link

broconut123 commented Dec 10, 2024

@ga2mer
LD_LIBRARY_PATH="/home/your_username/hack:$LD_LIBRARY_PATH" %command%
thanks, this did the trick, game launches with a lot better fps.
Another issue I have now is that the desktop cursor stays on top of the game in gnome and massively lags the game when moving the mouse around. It's smooth when playing with controller, but the cursor stays on top in the middle of the screen.

@DocMAX
Copy link

DocMAX commented Dec 10, 2024

  • 69 64 54 65 63 68

Doesn't work here.

@sophie-kuehn
Copy link

sophie-kuehn commented Dec 10, 2024

There is a launch options fix: https://forums.developer.nvidia.com/t/bug-indiana-jones-and-the-great-circle-only-runs-at-40-of-max-tdp-on-rtx-4090/315916/54
__GL_13ebad=0x1 %command%

Can confirm that this works for 550.

image
On 3070

@DocMAX
Copy link

DocMAX commented Dec 10, 2024

Yes! Works on 565.77 too! (Arch Linux)

@DuplicantWood
Copy link

I am missing dlss frame generation option on nvidia using proton experimental, is anyone else?

@matte-schwartz
Copy link
Author

matte-schwartz commented Dec 10, 2024

In reply to: #8292 (comment)

This is almost certainly because of the workaround that was needed to get this game not to crash immediately upon launch: jp7677/dxvk-nvapi@c29f6f0 since WINE_DISABLE_HARDWARE_SCHEDULING=1 did not fix it. I'll have to double check what the settings menu looks like on Windows

@graphitemaster
Copy link

graphitemaster commented Dec 10, 2024

Do the open and propreretary drivers make any difference?

They do not.

Can confirm that running with __GL_13ebad=0x1 and DXVK_NVAPI_GPU_ARCH=GA100 works. The latter is needed so DLSS works if you're on an Ada GPU. If you're running from Steam just set the launch options to:

DXVK_NVAPI_GPU_ARCH=GA100 __GL_13ebad=0x1 %command%

You can also skip the obnoxious minute long worth of splash screens with +com_skipIntroVideo 1 in here as well

DXVK_NVAPI_GPU_ARCH=GA100 __GL_13ebad=0x1 %command% +com_skipIntroVideo 1

@DocMAX
Copy link

DocMAX commented Dec 10, 2024

The original issue on steam deck is not fixed yet, right?

@chkuendig
Copy link

The original issue on steam deck is not fixed yet, right?

No, theres two things still open:

  • artifacts around the eyes (issue in RADV)
  • Photo camera takes black pictures (unclear root cause, could be wine as it also happens on other drivers)

source: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12257

@shelterx
Copy link

shelterx commented Dec 13, 2024

The game needs a fix for the mouse pointer, if you alt-tab then go back into the game, the desktop mouse pointer is shown in the game. (at least when using KDE)

@giantplaceholder
Copy link

giantplaceholder commented Dec 13, 2024

The game needs a fix for the mouse pointer, if you alt-tab then go back into the game, the desktop mouse pointer is shown in the game. (at least when using KDE)

Just enable borderless fullscreen, and you should be good to go.

@shelterx
Copy link

Just enable borderless fullscreen, and you should be good to go.

Yeah, that works, thank you!

@shishimaru90
Copy link

shishimaru90 commented Dec 15, 2024

Replying to #8292 (comment)

Game crashes at startup if I enable Frame Gen and restart the game. Does this happen with me only?

@shelterx
Copy link

@shishimaru90 FG isn't working as of right now, probably because it's a pure vulkan game. I think Nvidia needs to step in and help.

@shishimaru90
Copy link

@shishimaru90 FG isn't working as of right now, probably because it's a pure vulkan game. I think Nvidia needs to step in and help.

It works on Windows, so, yes, they should try to help improve things on Linux systems as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Game compatibility - Unofficial Games not expected to work without issues XAudio2 Uses the XAudio2 subsystem
Projects
None yet
Development

No branches or pull requests