• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Site › Dolphin Patches (Archive) v
« Previous 1 ... 3 4 5 6 7 Next »

[PATCH] Speedup ::Enter() and ::Leave() in CriticalSection
View New Posts | View Today's Posts

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[PATCH] Speedup ::Enter() and ::Leave() in CriticalSection
10-01-2010, 02:19 AM
#1
u-ra
Unregistered
 
Hi,

CriticalSection::Enter() and Leave() are showing up quite high in my oprofile runs:
Code:
samples  %        image name               symbol name
46845    12.1507  dolphin-emu              Common::CriticalSection::Leave()
35088     9.1012  dolphin-emu              Common::CriticalSection::Enter()

With this patch, it goes down to:
Code:
samples  %        image name               symbol name
4150      1.3138  dolphin-emu              Common::CriticalSection::Enter()
3        9.5e-04  dolphin-emu              Common::CriticalSection::Leave()

I've tested this in NSMBW by leaving it idling on the World 1 Map running oprofile for 20 secs. Before the patch it idled with ~53FPS, after the patch it's ~55FPS.

My machine is an Athlon X2 240 with a Radeon HD4550 and 2 gigs of RAM running Ubuntu Maverick 64. Quite mediocre, really Smile


Attached Files
.patch   dolphin-criticalsection-speedup.patch (Size: 808 bytes / Downloads: 307)
10-01-2010, 03:20 AM
#2
Jack Frost Offline
aka. BhaaL
**********
Developers (Some Administrators and Super Moderators)
Posts: 498
Threads: 3
Joined: Oct 2009
Commited as r6242.
Find
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode