View Single Post
Old May 21st, 2008   #8 (permalink)
cottonvibes
NGemu's Kawaii Imoutochan
 
cottonvibes's Avatar
 
Join Date: Sep 2007
Location: Super Mario World
Posts: 3,032
Quote:
Originally Posted by mudlord View Post
Partially true.

You can pragmatically specify which cores threads run on.

Research SetThreadAffinityMask().
interesting.

like i said, i've only used threads a few times in code, didn't know you can choose the core it runs on.


i guess thats what PCSX2 does when you select the "Dual Core Mode" option.

Quote:
Originally Posted by Phil View Post
exactley: like i said....if you want true optimization, you must assign specific code to each core
well not necessarily phil.


think about if a user is running your multi-threaded application, and hes also watching a video in windows media player.

say WMP takes up ~99% of core 0's processing time, and core 1 is idle using ~1% of its processing power.


say you told your application to use core 0 to do one thing, and core 1 to do another thing.


since core 0 is being used at 99%, the application will take forever.

but had you let windows choose what core to use, then it would have set both threads to use core 1, and then the application would most-likely run faster.
__________________

Quote:
Eccentricity is often associated with genius, giftedness, or creativity. The individual's eccentric behavior is perceived to be the outward expression of his or her unique intelligence or creative impulse. In this vein, the eccentric's habits are incomprehensible not because they are illogical or the result of madness, but because they stem from a mind so original that it cannot be conformed to societal norms.

School Rumble

pcsx2-playground - project for unofficial pcsx2 changes

Last edited by cottonvibes; May 21st, 2008 at 06:10. Reason: Automerged Doublepost
cottonvibes is offline   Reply With Quote