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

Use faster CheckGatherPipe from JIT. #1988

Merged
merged 1 commit into from Feb 21, 2015

Conversation

magumagu
Copy link
Contributor

We don't need to profile explicit calls to CheckGatherPipe: we aleady know
where they are. Skip profiling, and explicitly insert an exception check.

While I'm here, get rid of unused code in JitIL.

Haven't benchmarked yet; I'm hoping this is a little faster than master.

We don't need to profile explicit calls to CheckGatherPipe: we aleady know
where they are. Skip profiling, and explciitly insert an exception check.

While I'm here, get rid of unused code in JitIL.
@FioraAeterna
Copy link
Contributor

This looks similar to this: #1624 , it might be useful to look at some of it.

I encountered some tricky bits doing this though (it felt /very/ easy to break things), and I wasn't able to measure a huge perf gain, but maybe you can do better.

@magumagu
Copy link
Contributor Author

Mmm, yes, #1624 is pretty similar, although this is a somewhat less aggressive.

I was looking into this because CompileExceptionCheck() was showing up on profiles on dynamic-bat... as the most frequent caller of HostRead_U32, which was rather confusing.

@FioraAeterna
Copy link
Contributor

Yeah, that was basically the same reason I looked into it, even. A lot of this needs cleaning up, even if the cleanup isn't as aggressive as what I tried there.

@Mullin
Copy link
Contributor

Mullin commented Jan 31, 2015

2-3 fps gain in ZWW intro on Armv7, thanks a lot

Edit : 2-3 fps gain in Mario Sunshine, 2 fps in game Zelda Wind Waker 2-3 fps in Luigi's Manson, make the game really playable (20-30) fps. 3 fps in Mario Party 4. 5 fps in MKDD in Championship.

Really good fix ;)

@magumagu
Copy link
Contributor Author

Ping.

@JMC47
Copy link
Contributor

JMC47 commented Feb 12, 2015

Definitely faster in Master in every game I tried. I did check a few games more thoroughly though. It was a good 10 - 15% faster in spots of Wind Waker, where as Melee tends to be around 3 - 5% faster depending on stage.

magumagu added a commit that referenced this pull request Feb 21, 2015
Use faster CheckGatherPipe from JIT.
@magumagu magumagu merged commit 9e29154 into dolphin-emu:master Feb 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants