View unanswered posts | View active topics It is currently 30 May 2024, 01:28



Reply to topic  [ 10 posts ] 
 Multithreading bug 
Author Message
Crewman
User avatar

Joined: 15 May 2005, 01:00
Posts: 48
Location: Germany
Hi,

apparently there is some sort of a multithreading bug.
If I set the process affinity of SupremacyClient.exe to all cores my CPU utilization is as follows:
Attachment:
File comment: With all cores
allcores.jpg
allcores.jpg [ 124.65 KiB | Viewed 3353 times ]


And with only one core:
Attachment:
File comment: With one core
onecore.jpg
onecore.jpg [ 128.46 KiB | Viewed 3353 times ]

_________________
Image


19 May 2009, 17:00
Profile
Chief Software Engineer
Chief Software Engineer
User avatar

Joined: 11 Aug 2005, 01:00
Posts: 2688
Hey Overlord, I didn't know you were affiliated with the Jad Engine--I've been following that project for a while. It's pretty cool. I've been thinking about using it for our combat engine.

This is certainly odd. I've got a multi-core machine, and I haven't noticed this before, but I'll do some testing. Thanks for the post!

_________________
Lead Developer of Star Trek: Supremacy
253,658 lines of code and counting...


19 May 2009, 17:27
Profile WWW
Ship Engineer
Ship Engineer
User avatar

Joined: 10 Jul 2006, 01:00
Posts: 5130
Location: Space is disease and danger, wrapped in darkness and silence!
Did I hear someone say combat engine?!?!
:borg:
It would be wonderful just to have a simple (rock paper scissors and no 3D combat view) temporary combat fix in the alpha. It would be wonderful to have more help with the 3D combat engine. Especially as I have spent the last two years collecting and building models for it.
8O

_________________
Image


19 May 2009, 19:19
Profile
Chief Software Engineer
Chief Software Engineer
User avatar

Joined: 11 Aug 2005, 01:00
Posts: 2688
Most of the CPU usage during regular gameplay is from the star and planet animations. Are you sure you had similar content on-screen when you did these tests?

_________________
Lead Developer of Star Trek: Supremacy
253,658 lines of code and counting...


19 May 2009, 20:38
Profile WWW
Combat Engineer
Combat Engineer
User avatar

Joined: 18 Jul 2005, 01:00
Posts: 1001
Kenneth_of_Borg wrote:
Did I hear someone say combat engine?!?!
:borg:
It would be wonderful just to have a simple (rock paper scissors and no 3D combat view) temporary combat fix in the alpha. It would be wonderful to have more help with the 3D combat engine. Especially as I have spent the last two years collecting and building models for it.
8O


All that work for nothing, I know how your feel :D.

Regards Wolfe

_________________
Image


20 May 2009, 00:44
Profile
Ship Engineer
Ship Engineer
User avatar

Joined: 10 Jul 2006, 01:00
Posts: 5130
Location: Space is disease and danger, wrapped in darkness and silence!
I know you can get it done given time CDR.

It would be nice if you had some help.

_________________
Image


20 May 2009, 00:52
Profile
Evil Romulan Overlord of Evil - Now 100% Faster!
Evil Romulan Overlord of Evil - Now 100% Faster!
User avatar

Joined: 02 Dec 2004, 01:00
Posts: 7392
Location: Returned to the previous place.
There might be some help on the way Wolfe - a new forum member, aeon, just posted. He says he has experience with Advanced 2D/3D Graphics Programming, XNA, DirectX, and WPF. Are those the sorts of areas you need help with?

Aeon's Post.

_________________
"Anyone without a sense of humour is truly at the mercy of the rest of us."

Image
Image


20 May 2009, 01:53
Profile WWW
Chief Software Engineer
Chief Software Engineer
User avatar

Joined: 11 Aug 2005, 01:00
Posts: 2688
Matress_of_evil wrote:
There might be some help on the way Wolfe - a new forum member, aeon, just posted. He says he has experience with Advanced 2D/3D Graphics Programming, XNA, DirectX, and WPF. Are those the sorts of areas you need help with?
No, they're areas *I* need help with. Or at least more manpower. Stay away, he's mine! :twisted:

_________________
Lead Developer of Star Trek: Supremacy
253,658 lines of code and counting...


20 May 2009, 03:19
Profile WWW
Crewman
User avatar

Joined: 15 May 2005, 01:00
Posts: 48
Location: Germany
mstrobel wrote:
Most of the CPU usage during regular gameplay is from the star and planet animations. Are you sure you had similar content on-screen when you did these tests?

Yes I was in the galaxy view, the CPU usage changed as soon as I changed the processor affinity (w/o doing anything else in the game).

_________________
Image


20 May 2009, 10:38
Profile
Crewman
User avatar

Joined: 15 May 2005, 01:00
Posts: 48
Location: Germany
Could you please add an option or commandline switch that sets the processor affinity to the first core.
E.g.

Code:
Process.GetCurrentProcess().ProcessorAffinity = new IntPtr(1);

_________________
Image


30 May 2009, 13:26
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.