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

FEXCore/Profiler: Implement support for JIT float fallbacks #4336

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

Sonicadvance1
Copy link
Member

Based on #4291 and #4324. Ideally this gets merged at the same time so
we can have Mangohud be on version 2 before giving them an upstream
patch.

Performance-wise this change falls within noise of my x87 microbench.

This just lets us track the number of float fallbacks FEX does, letting
us detect things like x87 fallbacks and how frequent they are, so we can
detect if a game might be slow or stuttering because of these fallbacks.

Sonicadvance1 added a commit to Sonicadvance1/FEX that referenced this pull request Feb 11, 2025
With ASIMD this can be decently faster. With my microbenchmark this
makes pcmpistri ~6% faster.

With FEX-Emu#4336 this can be made even faster since the incoming data can stay
in vector registers; Removing some overhead of umov.
Sonicadvance1 added a commit to Sonicadvance1/FEX that referenced this pull request Feb 11, 2025
With ASIMD this can be decently faster. With my microbenchmark this
makes pcmpistri ~6% faster.

With FEX-Emu#4336 this can be made even faster since the incoming data can stay
in vector registers; Removing some overhead of umov.
@Sonicadvance1 Sonicadvance1 force-pushed the softfloat_stats branch 2 times, most recently from 8cb6032 to 5be1b0c Compare February 11, 2025 22:37
Based on FEX-Emu#4291 and FEX-Emu#4324. Ideally this gets merged at the same time so
we can have Mangohud be on version 2 before giving them an upstream
patch.

Performance-wise this change falls within noise of my x87 microbench.

This just lets us track the number of float fallbacks FEX does, letting
us detect things like x87 fallbacks and how frequent they are, so we can
detect if a game might be slow or stuttering because of these fallbacks.
@Sonicadvance1
Copy link
Member Author

https://github.com/Sonicadvance1/MangoHud/tree/fex For the current mangohud implementation

@Sonicadvance1 Sonicadvance1 merged commit 9eccc01 into FEX-Emu:main Feb 12, 2025
12 checks passed
@Sonicadvance1 Sonicadvance1 deleted the softfloat_stats branch February 12, 2025 01:31
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

Successfully merging this pull request may close these issues.

2 participants