Multicore CPU utilization (Full Version)

All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series



Message


YourConscience -> Multicore CPU utilization (11/30/2011 8:26:23 PM)

In the current patch 1.7.0.2 things have gotten a bit slower again. This prompted me to have a look at the CPU utilization of the game and this was in for a surprise. Out of my 4 real cores, all were busy - but each for only about 14%. The other 4 hyperthreading cores weren't doing anything whatsoever.

Could anyone form Codeforce or Matrix comment on that? From a programmer's perspective this looks like something in the game is constantly waiting for something to finish before continuing to compute. I'd even go a claim that this is a bug, but it could be by design. On my Core i7 on a 15x15 sector with 700 stars the game is really really choppy now with like two or three computation cycles (or frames) per second.




Fideach -> RE: Multicore CPU utilization (11/30/2011 8:31:11 PM)

Since the patch I've been seeing what looks like a memory leak at times




tjhkkr -> RE: Multicore CPU utilization (11/30/2011 9:29:58 PM)

That is interesting. I never gave any thought to cheking my CPU/memory stats...
And I used to stress test online applications in the old days.
Looks like load balance is pretty good though from what you have said!




Raap -> RE: Multicore CPU utilization (11/30/2011 10:31:51 PM)

All the CPU cores are 'always' busy, even with single-threaded applications. Windows will automatically switch the thread from one core to the other so as to spread the heat and work load. Helps ensure longer CPU lifetime, since otherwise the first core would do like 90+% of all the work and fail much sooner. Task Manager isn't quick enough with updating to show this, however. A better way to measure how much the game is using is looking at the Processes page. Over here my DistantWorlds.exe is using 25%( sometimes going up to 30-35% depending on what I'm doing in the game), which means it's effectively using 1 out of my 4 cores and sometimes parts of a second core. If you've 8 cores, that means it should be somewhere around ~13% most of the time, with some higher usage every now and then.

So from what I can see, the game's still largely single-threaded but with a few functions using a second thread.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.875