Bill Z Bubba Posted January 12, 2020 Posted January 12, 2020 Checked my taskmanager after logging off from the MSR on Beta and noticed that all 4 threads appeared to be in decent usage. Did something change in the game client to let it utilize more than two threads? Or was my rig just offloading more to the other two threads I've got?
WanderingAries Posted January 13, 2020 Posted January 13, 2020 On 1/11/2020 at 7:02 PM, Bill Z Bubba said: Checked my taskmanager after logging off from the MSR on Beta and noticed that all 4 threads appeared to be in decent usage. Did something change in the game client to let it utilize more than two threads? Or was my rig just offloading more to the other two threads I've got? Did you check the app list to see if it had that many processes? Unless they've made a change, I'm not sure it uses more than 2 threads, but I haven't looked it up in ages. I can see the 64bit version code being able to do so though. OG Server: Pinnacle <||> Current Primary Server: Torchbearer || Also found on the others if desired <||> Generally Inactive Installing CoX: Windows || MacOS || MacOS for M1 <||> Migrating Data from an Older Installation Clubs: Mid's Hero Designer || PC Builders || HC Wiki || Jerk Hackers Old Forums <||> Titan Network <||> Heroica! (by @Shenanigunner)
Bill Z Bubba Posted January 14, 2020 Author Posted January 14, 2020 12 minutes ago, WanderingAries said: I can see the 64bit version code being able to do so though. That's what I was hoping and no, I didn't dig deep. Gonna have to do some diggin to find out what's what. Added Threads to the TaskManager Details tab and it shows CoH is using 16 compared to say, explorer.exe that's at 61 threads, so that tells me nothing as to whether it's still locked to 2 cpu, be they cores or hyperthreaded's fake cores. (But I'm on an i5, so no hyperthreading anyway.)
City Council Number Six Posted January 14, 2020 City Council Posted January 14, 2020 There are 3 threads that can use significant amount of CPU. 1. Main thread - all game logic, input, processing, etc. 2. Render thread - all draw calls and anything that touches the OpenGL driver, driven by thread #1 3. PhysX thread - simulation of visual effects that interact with the environment (sparks, etc), debris, etc 1 and 2 are relatively unchanged from retail. 3 used to be frame-locked to 1 -- it would do some background processing but ultimately if PhysX took too long to run a simulation timestep, the main thread would wait for it to finish, delaying the drawing of the frame (meaning thread #2 would also be idle). In the modern 32-bit and 64-bit clients (not the safe mode client), #3 is now fully decoupled and runs independently. If PhsyX starts to lag, it just won't be updated that frame and will make up the difference on the next one. If it gets too far behind, it will start removing PhysX objects in order to catch up. Under very effects-heavy situations with lots of particles flying around, that can lead to more efficient utilization of those first two cores. There are a few other minor threads, such as the background texture loading thread, geo loading thread, and some created by OS libraries for things like asynchronous networking, but those are relatively low-load and only serve to reduce latency. 2 8
Bill Z Bubba Posted January 14, 2020 Author Posted January 14, 2020 (edited) Thanks much, @Number Six Followup question though: are all these threads still locked to only utilize 2 processors or will they be spread out amongst all available physical processors (or logical?) Or am I simply misremembering and threads were never locked to just 2 procs and it only seemed that way because the vast majority of the work was being done in the Main and Render threads? Edited January 14, 2020 by Bill Z Bubba
City Council Number Six Posted January 14, 2020 City Council Posted January 14, 2020 They were never locked to 2 processors. There were only 2 threads that did any significant work (since physx and the main thread were so tightly bound), so they could only effectively use two. In practice, the render thread and physx thread could never do any work at the same time. Even now fully using all 3 only happens under certain circumstances. At some point in the future it would be nice to identify things that can be parallelized, but there's a lot of work still to get there and be able to to do it safely. 1 3
Shred Monkey Posted January 14, 2020 Posted January 14, 2020 Wow.... I feel smarter after reading this post. 3 1 Active on Excelsior: Prismatic Monkey - Seismic / Martial Blaster, Shadow Dragon Monkey - Staff / Dark Brute, Murder Robot Monkey - Arachnos Night Widow
Rathulfr Posted January 14, 2020 Posted January 14, 2020 2 minutes ago, Shred Monkey said: Wow.... I feel smarter after reading this post. 1 2 @Rathstar Energy/Energy Blaster (50+3) on Everlasting Energy/Temporal Blaster (50+3) on Excelsior Energy/Willpower Sentinel (50+3) on Indomitable Energy/Energy Sentinel (50+1) on Torchbearer
Shred Monkey Posted January 14, 2020 Posted January 14, 2020 3 minutes ago, Rathulfr said: +2 to intelligence. You feel more able to understand and use magic items and spells. 1 Active on Excelsior: Prismatic Monkey - Seismic / Martial Blaster, Shadow Dragon Monkey - Staff / Dark Brute, Murder Robot Monkey - Arachnos Night Widow
Bill Z Bubba Posted January 14, 2020 Author Posted January 14, 2020 1 minute ago, Bionic_Flea said: Threads are better than shards. Forever true. Thanks again, @Number Six! 1
WanderingAries Posted January 15, 2020 Posted January 15, 2020 10 hours ago, Number Six said: They were never locked to 2 processors. There were only 2 threads that did any significant work (since physx and the main thread were so tightly bound), so they could only effectively use two. In practice, the render thread and physx thread could never do any work at the same time. Even now fully using all 3 only happens under certain circumstances. At some point in the future it would be nice to identify things that can be parallelized, but there's a lot of work still to get there and be able to to do it safely. I think they were referencing the "big deal" back when the OG devs talked about going beyond a single core. There was a time that multi-core or even hyper threading wasn't yet beneficial according to what I can remember. OG Server: Pinnacle <||> Current Primary Server: Torchbearer || Also found on the others if desired <||> Generally Inactive Installing CoX: Windows || MacOS || MacOS for M1 <||> Migrating Data from an Older Installation Clubs: Mid's Hero Designer || PC Builders || HC Wiki || Jerk Hackers Old Forums <||> Titan Network <||> Heroica! (by @Shenanigunner)
Apparition Posted January 15, 2020 Posted January 15, 2020 12 hours ago, WanderingAries said: I think they were referencing the "big deal" back when the OG devs talked about going beyond a single core. There was a time that multi-core or even hyper threading wasn't yet beneficial according to what I can remember. Yep. Back in the early 2000s when City of Heroes was first developed (along with Mozilla Firefox), multiple cores were generally not a thing. It was assumed by the vast, vast majority of software developers that desktop and notebook computers would be forever bound to one or two cores and that the speed of those cores would forever increase. Well, the exact opposite happened. From the late aughts until a year or so ago, Mozilla Firefox has seemed so slow in comparision to Google Chrome and Apple Safari because it only utilized one processor core. Mozilla has spent the past few years slowly re-writing Firefox from the ground up to utilize all those processor cores.
WanderingAries Posted January 16, 2020 Posted January 16, 2020 8 hours ago, Apparition said: Yep. Back in the early 2000s when City of Heroes was first developed (along with Mozilla Firefox), multiple cores were generally not a thing. It was assumed by the vast, vast majority of software developers that desktop and notebook computers would be forever bound to one or two cores and that the speed of those cores would forever increase. Well, the exact opposite happened. From the late aughts until a year or so ago, Mozilla Firefox has seemed so slow in comparision to Google Chrome and Apple Safari because it only utilized one processor core. Mozilla has spent the past few years slowly re-writing Firefox from the ground up to utilize all those processor cores. So That's why the "We're better than IE because we're faster" turned into the mushy snail? OG Server: Pinnacle <||> Current Primary Server: Torchbearer || Also found on the others if desired <||> Generally Inactive Installing CoX: Windows || MacOS || MacOS for M1 <||> Migrating Data from an Older Installation Clubs: Mid's Hero Designer || PC Builders || HC Wiki || Jerk Hackers Old Forums <||> Titan Network <||> Heroica! (by @Shenanigunner)
Apparition Posted January 16, 2020 Posted January 16, 2020 9 minutes ago, WanderingAries said: So That's why the "We're better than IE because we're faster" turned into the mushy snail? Yep. Firefox is much, much better today. Some parts still need to be re-written, but the majority of the work is done.
chi1701 Posted February 10, 2020 Posted February 10, 2020 Just checked my system and cityofheroes.exe is using 15 threads and 5.75 cores.
cjshox Posted September 14, 2021 Posted September 14, 2021 On 2/10/2020 at 1:17 PM, chi1701 said: Just checked my system and cityofheroes.exe is using 15 threads and 5.75 cores. Just checked the affinity, cityofheroes.exe 64bit is using all cores
WanderingAries Posted September 15, 2021 Posted September 15, 2021 Heh, I remember this thread...and just One comment shy of 2k. :O OG Server: Pinnacle <||> Current Primary Server: Torchbearer || Also found on the others if desired <||> Generally Inactive Installing CoX: Windows || MacOS || MacOS for M1 <||> Migrating Data from an Older Installation Clubs: Mid's Hero Designer || PC Builders || HC Wiki || Jerk Hackers Old Forums <||> Titan Network <||> Heroica! (by @Shenanigunner)
chi1701 Posted September 15, 2021 Posted September 15, 2021 16 hours ago, cjshox said: Just checked the affinity, cityofheroes.exe 64bit is using all cores My numbers are coming from windows resource monitor software, but in different location, had 22 threads 10 cpu and avg 10.07 etc but then had destiny 2 use 20+ cpu, not sure now how resource monitor software actually works 😕
Glacier Peak Posted September 15, 2021 Posted September 15, 2021 This thread invoked my curiosity so I checked my own rig and sure enough I was using all my cores to run the game.... BUT each core had a different level of utilization. Nearly all of my cores (6 cores, 12 threads) were below 20% utilization, while the second core was running around 60% all the way up to 90% usage over my play time. I lead weekly Indom Badge Runs / A newer giant monster guide by Glacier Peak / A tour of Pocket D easter eggs! / Arena All-Star Accolade Guide! Best Post Ever....
JayboH Posted September 22, 2021 Posted September 22, 2021 PhysX - couldn't that be done at a hardware level at least with Nvidia cards Flint Eastwood
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now