Starfield’s Poor PC Performance Due To “Major Programming Faults”
A new discovery by Vkd3d developer Hans-Kristian Arntzen sheds some more light on the crashes and performance issues players have been facing in Starfield. Vkd3d is the library that Starfield and a lot of other games use to implement Direct3D 12 API on top of Vulkan. In a new pull request (which is equivalent to an update for software, in simpler terms), the developer highlights that Starfield has a number of inefficient ways of handling things which can cause performance issues. While the developer's comments are quite technical and might not make sense to you unless you're into that sort of thing, Redditor Nefsen402 has simplified the whole thing.
The first issue is Starfield's incorrect allocation of memory, where Starfield's memory allocation is not aligned with CPU page size. This is likely the root cause for the crashes, as a misalignment can easily cause memory corruption. However, more than the crashes, it is the other two programming faults that are likely creating more of an impact.
Starfield uses a Vkd3d feature called ExecuteIndirect to give some inputs to the GPU. Think of it as you giving your friend directions while they are driving a car. Now instead of giving clear directions, you end up telling your friend to go both right and left. This will cause your friend to reevaluate your directions, making the process inefficient.
While this is an extremely high-level idea, it is somewhat similar to what Starfield is doing, giving vague hints to the GPU, consequently leading it to do unnecessary work. These vague hints cause "bubbles", which cause the GPU to reevaluate its decisions. To make matters even worse, these ExecuteIndirect calls are repeatedly sent to the GPU one after the other, instead of being batched together which further amplifies the impact of the previous issue.
Thankfully, the Vulkan developer has released a fix for it, where they evaluate the ExecuteIndirect commands to decide whether they need to take any decision at all, which saves the overhead needed to reevaluate it. Additionally, similar commands are batched together as well, which makes it way more efficient than the sequential approach Starfield takes.
This is not the first time Bethesda has been under the scanner for its programming faults. If we roll back the clock to Skyrim Special Edition's release, the game's inefficient handling of mutexes was taking a huge toll on the performance. For starters, mutexes prevent multiple threads from changing the same thing. For instance, if we go back to the car analogy, it's like you and your friend trying to control the steering at the same time.
Thankfully, this was spotted by the community and a mod was released to address it, and the same is expected for Starfield as well. While the issue has been found and addressed, it will be interesting to see when this change finally makes its way to players and how much of an impact it makes.
Posted:
Related Forum: PC Gaming Forum
Source: https://www.dualshockers.com/starfields-poor-pc-performance-major-programming-faults/
Related Articles
Comments
QTPosted:
Billet Can't say I've noticed anything tbh
Neither have I. But thats to come with new games. Let them work out the bugs and itll be fine.
Latest Downloads
- 01. SnowRunner: SaveGame (all trucks are open) [32.1](1)
- 02. [PS4/EU] Hatsune Miku: Project DIVA Future Tone 100% Trophy Save(1)
- 03. Silent Hill 2 Remake: SaveGame (Motel Jacks, NG+)(0)
- 04. Phasmophobia: SaveGame (XX-2000, $594,965,799, 3 apocalypse skulls + bonus)(2)
- 05. Satisfactory: SaveGame (Observation deck)(1)
- 06. [EU] Sniper Elite 5 - Best Of The Best (CUSA16075)(5)
- 07. Voices Of The Void: SaveGame (All improvements for work + 7 days passed) [0.8.0](1)
- 08. Silent Hill 2 Remake: SaveGame (NG+, ending "Maria")(1)
- 09. Five Nights at Freddy's- Security Breach Save(8)
- 10. Commandos 2 - HD Remaster: SaveGame (All missions are open)(0)
- 11. Black Myth: Wukong - SaveGame (100%, NG++)(3)
- 12. Mindjack save xbox(0)
- 13. mindjack ps3 save(0)
- 14. Lies of P: SaveGame (game completed 6 times, hero level 124)(1)
- 15. Shadow of the Ninja - Reborn: SaveGame(0)
Latest Tutorials
- 01. PS3 HEN - Audio via a USB headset.(289)
- 02. Stumble Guys | Social Butterfly Achievement(194)
- 03. Last Days of Lazarus Achievement Walkthrough (Xbox/PS)(1,452)
- 04. EDENGATE: The Edge of Life - 100% Trophy/Achievement Guide(1,818)
- 05. Sherlock Holmes Chapter One | Walkthrough | No Commentary(1,459)
- 06. Morbid: The Seven Acolytes | Full Game Walkthrough(2,422)
- 07. Adam Wolfe | Full Game Walkthrough | No Commentary(1,569)
- 08. ALFRED HITCHCOCK: VERTIGO - 100% Walkthrough(1,877)
- 09. SHERLOCK HOLMES THE AWAKENED | Walkthrough | No Commentary(1,328)
- 10. Space Roguelike Adventure | Guide - Cheat Code!(1,525)
- 11. DETECTIVE Stella Porta Case | Trophy & Achievement Guide(1,188)
- 12. Tunic 100% Platinum Walkthrough | Trophy & Achievement Guide(1,813)
- 13. Outbreak: The Nightmare Chronicles Achievement Walkthrough(1,455)
- 14. Full Void 100% - Trophy & Achievement Guide(1,438)
- 15. Outbreak: Lost Hope #Xbox Achievement Walkthrough(2,274)
"Starfield’s Poor PC Performance Due To “Major Programming Faults”" :: Login/Create an Account :: 4 comments