4 ms·
“Monster Hunter World” game spends 25% of CPU time switching between threads
- mintplant 8y agoI'd appreciate any informed theories as to why this might be the case! The r/Games thread which pointed me to this is full of non-technical explanations of the concept of multi-threading and vague jabs at the developers for not 'optimizing' enough.
- klowner 8y agoWith 100 threads running like that, not only do you have the overhead of the OS scheduling 100 threads to run on ~8 or whatever cpu cores, but also I would assume these threads are all running different code, so there would be some overhead with context switching / cache. Presumably these threads communicate, so they're likely using some form of synchronization primitives. Here's a pretty enjoyable video about how they handled this sort of engine design problem using something sensible: https://www.gdcvault.com/play/1022186/Parallelizing-the-Naughty-Dog-Engine https://www.gdcvault.com/play/1022186/Parallelizing-the-Naug...
- mr_toad 8y agoWhy we’re on the topic of bloated inefficiency, can we talk about steam’s website? Why does a company that takes 30% of PC gaming revenues need to add 70 content trackers to their forums?
- setr 8y agoProbably because they take 30% of PC gaming revenues.
- djajshgsjja 8y agoWith no bosses, there’s nobody saying: “no, you have to use this one.”
- kbumsik 8y agoI wonder, what kind of tools can be used for profiling CPU performance while playing a game?