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

Fallout: New Vegas slow in-game due to x87 soft float #3670

Closed
Sonicadvance1 opened this issue May 29, 2024 · 2 comments
Closed

Fallout: New Vegas slow in-game due to x87 soft float #3670

Sonicadvance1 opened this issue May 29, 2024 · 2 comments
Labels
Game related Performance Things that will make FEX faster

Comments

@Sonicadvance1
Copy link
Member

Sonicadvance1 commented May 29, 2024

Both its primary thread and another logic thread are maxing out two CPU cores due to x87 soft float.
This game requires softfloat because logic is otherwise broken with reduced precision mode.

  • NPCs stop walking
  • Character movement with keyboard does stutter stepping
Tested by walking outside of the starting house and staring directly at the floor.

// Primary Thread
// 27.2% - In X87 softfloat handlers

// Logic Thread? - Total 50.65%
// 7.58% - F80ADD
// 6.9% - softfloat_roundPackToExtF80
// 6.76% - F80SUB
// 5.60% - softfloat_subMagsExtF80
// 4.77% + 0.14% - F80CVT
// 4.62% + 0.18% - F80CVTTO
// 3.47% - softfloat_addMagsExtF80
// 3.33% - extF80_mul
// 2.77% - softfloat_roundPackToF32
// 2.06% - f32_to_extF80
// 1.65% - F80MUL
// 0.51% - F80CVTINT
// 0.31% - F80CMP
@Sonicadvance1 Sonicadvance1 added Performance Things that will make FEX faster Game related labels May 29, 2024
@pmatos
Copy link
Collaborator

pmatos commented Jun 3, 2024

Looks like another good benchmark for the work in #3547 . Thanks.

@Sonicadvance1
Copy link
Member Author

Closing since recent vector instruction fixes actually fixed the broken game logic. Looks like it was some weird interaction between x87 and SSE/MMX. Also nothing really actionable other than tracking the knowledge that x87 is slow in this game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Game related Performance Things that will make FEX faster
Projects
None yet
Development

No branches or pull requests

2 participants