Editor Notes:
Edit: Upon even further investigation, it seems that SSE4.2 is the more likely cause of this issue, as opposed to the previously inferred AES. This post has been remediated
Edit 2: Upon even even further investigation and the official announcement, it is now confirmed that SSE4.1 is the cause of the issue, as opposed to the previously inferred SSE4.2. This post has been remediated
Edit 3: Upon even more further investigation, it is also confirmed that the new assembly causes issues with Intel CPUs even with SSE4.1 support, discussed further in the post
Edit 4: After confirmation, it seems that the new game package released for Version 4.4 no longer uses the instructions in question, and should no longer cause an issue with the previously impacted hardware
Description
There is an ongoing issue where the game crashes on startup, specifically impacting decade-old PC hardware
The cause of this issue is likely due to an unsupported instruction set on older CPUs, resulting in the game crashing during startup
Sequence of crashing:
- Attempts to launch the game
- Game window doesn't show up (but appears in Task Manager)
- Game crash and launcher pops up again
Diagnosis
The specific instruction set that is suspected of causing this issue is the SSE4.1 instruction set, that is not available in certain consumer CPU models during 2009-2012. CPUs not supporting this instruction set would cause the game to crash on startup
To check if your CPU supports this instruction set,
- Go to TechPowerUp's CPU database, key in your CPU model in the Search Bar
- Select your exact CPU model
- Look for SSE4.1 in the Features tab
To check your CPU model:
- Press Win + R, type in dxdiag and press Enter
- Check the Processor name under System tab
To add on, the game also has issues with Intel processors older than the First Generation Core series (Nehalem microarchitecture), even if these CPUs have SSE4.1 support, common examples are the Yorkfield series Core2 Quad CPUs released in 2008
Solution
After disassembling the new packages provided in Version 4.4, I have not found any of the instructions that caused this issue in the new binary packages. This should at least indicate that any of the previously impacted hardware would no longer have an issue playing the game in the new version
Players impacted can simply update the game to Version 4.4 and play the game on the patch release day, which is 31st January. With the resolution coming in place, I will mark this issue as closed, and this post will no longer be updated. Please refer to the linked Self-Help Resource at the end of this article for any other technical issues you may have encountered
Further Reading
SSE, or Streaming SIMD Extensions, is an instruction set extension for x86 architecture CPUs. Instruction Sets define the operations that the CPU could perform, such as basic arithmetic, bitwise operations and memory manipulation etc. Through instruction set extensions, the CPU could perform more complicated tasks than what was originally specified in the base architecture, allowing for better performance and compute efficiency, given that it was implemented in relevant software
SIMD, or Single Instructions, Multiple Data is a type of parallel processing instruction. It allows the CPU to process multiple data points with the same operation, whereas without SIMD, the CPU could only process one data point at a time. This increases the overall performance of supported tasks, and the various SSE versions implemented since 1999 has became an essential part in improving CPU performance
SSE4.1 is a subset of the SSE4 instruction set which introduces a handful of new instructions. After disassembling the binary file, it is determined that the problematic instruction is ROUNDSS, which stands for Round Scalar Single Precision Floating-Point Values
Single precision floating point values, known as the float32/FP32 in high-level programming. Floating point data type allows us to store decimal numbers as the sum of a whole number exponent, and a decimal mantissa, which is represented as the sum of the inverse powers of 2. FP32 is a popular data type used in programming, they serve their purpose to store decimal values with acceptable rounding errors (you can't get the accurate representation of the decimals with inverse powers of 2), and have significantly better performance to operate on compared to the more precise double precision floating point value.
FP32 is crucial in video games - we don't need the accuracy to calculate the distance between Earth to Pluto down the centimetres of errors, and having better calculation and space efficiency helps in game performance. In fact, most commercial game engines use FP32 as their preferred data type, it's simply much easier to work with, and was already widely preferred in rendering APIs since the 90s when OpenGL came to be, when the GPU was coined, and even before that when 2D accelerator cards are a thing, it was primarily used to parallelise FP32 matrix calculations
This new instruction improves the performance of rounding FP32 numbers to an integer value, which is commonly used in game calculation, where you may want to know the closest coordinates to you, display a set decimal number rounded to an integer among many other things. I don't know the specifics as to how much of a performance improvement this is, though it could be significant enough to warrant for this low-level change
On the other hand, the reason why Intel CPUs that precedes the Nehalem microarchitecture has the "same" issue was caused by a different cause. The latest assembly also implemented the POPCNT instruction. This instruction, while it was introduced around the same time as SSE4, was not part of the specifications for SSE4, even though AMD explicitly included it into the SSE4a instruction set
POPCNT is an interesting instruction, it counts the number of set bits (1s) in a binary data. It is now commonly used in cryptography, calculating Hamming distance, and power a handful of the very mystical algorithms out there. There's an interesting article that you could check out on some of the common applications of the POPCNT instruction, I'm no expert in this, so I'll leave the explanation to the experts
As Genshin continues to be optimised, older configurations will undoubtedly be phased out to make space for better performance optimisation. It is indeed the lesser of the 2 evils. Performance optimisations almost always come at the cost of dropping wider compatibility
Back in Version 1.4, we had seen issues with GPUs lacking Shader Model 5.1 support, specifically common with Radeon HD 6000/7000 series GPUs. It seems that optimising shaders to improve gameplay performance caused this issue. A couple versions back there was an issue with Intel HD 2500/3000 iGPU, again, causing the game to crash. It could be fixed by using an older driver version, but again, not an ideal situation
This article will be updated promptly if any workarounds was found. GamerYuan, signing off
GamerYuan


