Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Basic Multithreaded Question

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
21 replies to this topic

#21 DarkRonin   Members   

1173
Like
0Likes
Like

Posted 23 July 2016 - 04:06 AM

Thanks for the advice so far, guys!

 

Getting some great performance by doing this.

 

Spreading the load across 8 cores is giving me around 6.5x more calculations (when timed for a one second duration).

 

Very nice!


Win32 Developer
One Of Them - Martial arts game that is mid development.

#22 Shannon Barber   Moderators   

1674
Like
0Likes
Like

Posted 30 July 2016 - 01:50 PM

 

Copying the array means either one of two things: A) Your array is so small that copying is cheap; if it's that small, you shouldn't be multithreading it anyway. or B) The array is large, but you're taking the easy way out instead of understanding the problem (which sometimes is the economic thing to do, if you don't have time to waste doing the research).
 

 

Or the array is small and cheap to copy, but the computation you're performing is expensive and makes sense to spread over multiple threads...

 

 

No reasonable computation is that complex.
e.g. What could you possibly be doing that is worse than an FFT?


Edited by Shannon Barber, 30 July 2016 - 01:50 PM.

- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.