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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 35 36 37 38 39 ... 107 Next »

Development Thread
 Important query about "lock threads to cores" performance!
View New Posts | View Today's Posts

Pages (4): « Previous 1 2 3 4
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Green Notice (Development Thread) Important query about "lock threads to cores" performance!
01-20-2013, 02:08 PM
#31
NaturalViolence Offline
It's not that I hate people, I just hate stupid people
*******
Posts: 9,010
Threads: 24
Joined: Oct 2009
So wait are you telling me this code does not set the thread affinity?

Code:
Common::SetCurrentThreadAffinity(1); // Force to first core

#if defined(_M_X64)
EMM::InstallExceptionHandler(); // Let's run under memory watch

g_video_backend->Video_Prepare();
Common::SetCurrentThreadName("FIFO-GPU thread");
}

Common::SetCurrentThreadAffinity(1); // Force to first core

g_bStarted = true;

        

Common::SetCurrentThreadName("Emuthread - Starting");

{
if (cpu_info.num_cores > 3) // Force to third, non-HT core
Common::SetCurrentThreadAffinity(4);
else // Force to second core
Common::SetCurrentThreadAffinity(2);
}
"Normally if given a choice between doing something and nothing, I’d choose to do nothing. But I would do something if it helps someone else do nothing. I’d work all night if it meant nothing got done."  
-Ron Swanson

"I shall be a good politician, even if it kills me. Or if it kills anyone else for that matter. "
-Mark Antony
Website Find
Reply
01-20-2013, 04:46 PM (This post was last modified: 01-20-2013, 04:47 PM by Billiard26.)
#32
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,431
Threads: 8
Joined: Feb 2010
(01-20-2013, 02:08 PM)NaturalViolence Wrote: So wait are you telling me this code does not set the thread affinity?

Code:
...
No one said that?
Find
Reply
01-21-2013, 05:23 AM
#33
NaturalViolence Offline
It's not that I hate people, I just hate stupid people
*******
Posts: 9,010
Threads: 24
Joined: Oct 2009
Does this option set the thread affinity on startup or not?

Perhaps I'm misinterpreting someone but it seems to me like Rachel was disagreeing with that.
"Normally if given a choice between doing something and nothing, I’d choose to do nothing. But I would do something if it helps someone else do nothing. I’d work all night if it meant nothing got done."  
-Ron Swanson

"I shall be a good politician, even if it kills me. Or if it kills anyone else for that matter. "
-Mark Antony
Website Find
Reply
01-21-2013, 05:40 AM (This post was last modified: 01-21-2013, 05:41 AM by Billiard26.)
#34
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,431
Threads: 8
Joined: Feb 2010
(01-21-2013, 05:23 AM)NaturalViolence Wrote: Does this option set the thread affinity on startup or not?

Perhaps I'm misinterpreting someone but it seems to me like Rachel was disagreeing with that.
Yes, LTTC sets the affinity of the important threads.

And stop being offtopic!

This thread is for posting data of LTTC vs. process affinity performance!
Find
Reply
01-22-2013, 08:25 AM (This post was last modified: 01-22-2013, 08:27 AM by Kolano.)
#35
Kolano Offline
Wiki Admin
*******
Content Creators (Moderators)
Posts: 1,470
Threads: 1,100
Joined: Mar 2010
Um, maybe I'm missing something, but, from the discussion above, isn't LTTC doing the exact same thing as setting process affinity, just in a more user friendly way? Why would there be any performance difference when they do the same thing (outside of the few microseconds from running the setup code above)?
Website Find
Reply
01-22-2013, 09:13 AM
#36
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,431
Threads: 8
Joined: Feb 2010
(01-22-2013, 08:25 AM)Kolano Wrote: Um, maybe I'm missing something, but, from the discussion above, isn't LTTC doing the exact same thing as setting process affinity, just in a more user friendly way? Why would there be any performance difference when they do the same thing (outside of the few microseconds from running the setup code above)?
No. They aren't the same thing.
Thread != Process.
Find
Reply
02-01-2013, 12:12 PM (This post was last modified: 02-01-2013, 12:14 PM by Dev1L.)
#37
Dev1L Offline
Junior Member
**
Posts: 17
Threads: 0
Joined: Jan 2013
i3 550 @ 4,07
With LTTC i have slightly more FPS than without it, although it's same as setting affinity to 1+3 "cores" (HT causes slowdown, yeah). But in other hand i need manually set affinity every time i run Dolphin, it's annoying. Is there any way to run application with custom affinity?
Find
Reply
02-01-2013, 07:36 PM (This post was last modified: 02-01-2013, 07:37 PM by Soopah.)
#38
Soopah Offline
Member
***
Posts: 162
Threads: 0
Joined: Nov 2012
Create a batch file.

Code:
echo off
start /HIGH /affinity 55 "" "emulatorPATH" /e "GamePATH" /b


then change the number after /AFFINITY
P6T i7 920 @3.65Ghz-1.15v | Kingston 2x4GB 9-9-9-24 1600MHz | BeQuiet StraightPower E6-600W 48a/12v
MSI N560Gtx Ti TwinFrozr II/oc @990MHz-1.062v
RVL-CNT-01-TR with ToshibaStack
Website Find
Reply
07-10-2013, 03:53 PM
#39
dolphincjh
Unregistered
 
Is there a way to set affinity in OS X? I tried doing some research but couldn't find much on Google. The LCTT option gave me a huge performance boost and now that it's gone in the latest dev builds, most games are unplayable for me.
Reply
07-10-2013, 06:38 PM
#40
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,826
Threads: 10
Joined: May 2012
I don't think it's because of lltc, more like because of glsl-master merge :-(
Find
Reply
« Next Oldest | Next Newest »
Pages (4): « Previous 1 2 3 4


  • 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