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

File system inconsistently lags in games. (Baulder's Gate 3 specifically) #685

Open
NakotaDinzeo opened this issue Aug 6, 2024 · 3 comments

Comments

@NakotaDinzeo
Copy link

Hello dev!

I keep my main Steam library on a BTRFS partition, so both Windows and Linux can share the same library.

For most games this is perfectly fine, but for some reason in BG3 it can't feed the game fast enough, and it causes the game problems (Crash in DX, long hang times in Vulcan) as well as failing to load animations and even the initial startup video sometimes.

The game wasn't doing that in EndevorOS Linux, but it was under Windows 11. Once I moved it out of the BTRFS partition onto the NTFS partition, it started working as expected again.

I figured the game may be doing something that is either hitting a bottleneck in the driver, or using some transfer mode that is bugged or unsupported.

The SSD the BTRFS partition is on is a Crucial P3 Plus 4TB in a Gen 4 NVMe socket on the motherboard.

I've attached a Windows system information thing in a zip file, just in case it's helpful.

Thanks, your driver is a feat of software engineering and I hope this is useful to you. Thanks again.

Nakota's system.zip

@maharmstone
Copy link
Owner

Thanks. I've investigate game-loading speed in general several times now, and never seemed to get anywhere... whatever the issues are, they're not anything obvious.

Possibly we might be able to get away with not doing a memcpy on FILE_NO_INTERMEDIATE_BUFFERING I/O, or something like that.

@hcantzler
Copy link

hcantzler commented Aug 11, 2024

Same situation and issue also here. Looks like the issue is not an odd isolated case.

Starting Steam BG3 from an BTRFS partition results in a crash during game loading (regardless of selecting DX or Vulkan). Moving the game to a NTFS partition solved it. I use Windows 10 and btrfs 1.8.2 on a 1TB Kingston A2000 SSD NVMe.

@weskerty
Copy link

It didn't happen to me in this game but in OW2, at loading times, the game would randomly freeze and the disk usage would be 6000ms or more. Disable CoW and the same thing happens. Apparently if the program starts writing many small files the speed reduces too much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants