Page MenuHomeSolus

Update dolphin-emu to October progress report adn enable LTO
ClosedPublic

Authored by Jacalz on Jun 3 2019, 9:13 AM.
Tags
None
Referenced Files
F11052275: D6460.id.diff
Thu, Aug 10, 9:13 PM
F11052274: D6460.id16971.diff
Thu, Aug 10, 9:13 PM
F11052273: D6460.id18228.diff
Thu, Aug 10, 9:13 PM
F11052272: D6460.id16716.diff
Thu, Aug 10, 9:13 PM
F11052271: D6460.id15539.diff
Thu, Aug 10, 9:13 PM
F11052270: D6460.id18229.diff
Thu, Aug 10, 9:13 PM
F11052269: D6460.id16546.diff
Thu, Aug 10, 9:13 PM
F11052268: D6460.id16261.diff
Thu, Aug 10, 9:13 PM
Tokens
"Like" token, awarded by serebit.

Details

Summary

Progress Reports:

Packaging Changes:

  • Add Link Time Optimizations for a slight bump in performance and 12% smaller package size.
Test Plan
  • Testing with Wii Sports, Super Mario Galaxy, New Super Mario Bros and Mario Cart Wii.

Diff Detail

Repository
R654 dolphin-emu
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Jacalz requested review of this revision.Jun 3 2019, 9:13 AM

I want to take advantage of this differential to ask Core Team if we have any policy about optimization flags.

  • Update against new LLVM-8 updates in unstable
  • Move optimizations to make sure that they always are done
Jacalz retitled this revision from Update dolphin-emu to May 2019 progress report and enable optimizations to Update dolphin-emu to May 2019 progress report (with libusb hotfix) and enable optimizations.Jul 19 2019, 8:45 AM
Jacalz edited the summary of this revision. (Show Details)
Jacalz edited the test plan for this revision. (Show Details)
  • Update to the June/July progress report
Jacalz retitled this revision from Update dolphin-emu to May 2019 progress report (with libusb hotfix) and enable optimizations to Update dolphin-emu to June/July 2019 progress report and enable optimizations.Aug 7 2019, 6:23 PM
Jacalz edited the summary of this revision. (Show Details)
Jacalz edited the summary of this revision. (Show Details)
Jacalz edited the test plan for this revision. (Show Details)

Built and tested with several games, works perfectly for me.

Built and tested with several games, works perfectly for me.

Wonderful that you are seeing the same results and thanks for the extra testing ?

  • Correctly rebase on top of LLVM-8 update
  • Remove optimizations because size increase is not worth it
Jacalz retitled this revision from Update dolphin-emu to June/July 2019 progress report and enable optimizations to Update dolphin-emu to June/July 2019 progress report.Aug 31 2019, 7:15 PM
Jacalz edited the test plan for this revision. (Show Details)
Jacalz edited the summary of this revision. (Show Details)

In general, LTO gives a reduction is size, although often negligible. Why did you remove it as well?

In general, LTO gives a reduction is size, although often negligible. Why did you remove it as well?

I am honestly tired of compiling, testing and repeating it over and over again for this package. I am putting it back to how it was before I started optimizing it. Might (almost certainly) come back to this in the next update revision and see about using LTO...

I am having problems building the latest progress report version due to high memory usage during the build. Any chance we could get it merged in it's current state please?

I am having problems building the latest progress report version due to high memory usage during the build. Any chance we could get it merged in it's current state please?

Did you try to set up a, say, 4 GB swap file? I use it every time I have to build Rust or MAME.

I am having problems building the latest progress report version due to high memory usage during the build. Any chance we could get it merged in it's current state please?

Did you try to set up a, say, 4 GB swap file? I use it every time I have to build Rust or MAME.

No I haven't tried that. I have 16GB ram and uses up all of it when it's at the second last file in the build. Do you think that it would make a difference?
I will try to build the last monthly update and a new git commit after that to see if it's some new issue in that commit or something else.

No I haven't tried that. I have 16GB ram and uses up all of it when it's at the second last file in the build. Do you think that it would make a difference?
I will try to build the last monthly update and a new git commit after that to see if it's some new issue in that commit or something else.

If you run out of RAM while compiling, you can also try to reduce the number of jobs. If instead you're linking, then there's nothing to do but increasing virtual memory. Try with a 2 or 4 gigs of swap.

  • Update to october progress report
Jacalz retitled this revision from Update dolphin-emu to June/July 2019 progress report to Update dolphin-emu to October progress report.Nov 8 2019, 8:26 PM
Jacalz edited the summary of this revision. (Show Details)
  • Add LTO to get 12% lower package size and slightly better performace
Jacalz retitled this revision from Update dolphin-emu to October progress report to Update dolphin-emu to October progress report adn enable LTO.Nov 8 2019, 8:40 PM
Jacalz edited the summary of this revision. (Show Details)

It would be very cool if this revision could get merged soon. It has been open for a couple months now and it is ready to land.
I just added Link Time Optimizations because they give a slight performance bump (big enough for me to not drop from 60 to 58 fps when opening the Wii menu ) and just over a 12% decrease in package size ?

DataDrake added a subscriber: DataDrake.

LGTM. Sorry for the wait!

This revision is now accepted and ready to land.Nov 10 2019, 2:49 PM