[TF2] Some multicore commands don't work
The commands cl_threaded_client_leaf_system r_threaded_client_shadow_manager r_threaded_renderables are all not used, the code has their uses disabled with if(0) or commented out. These commands do function on the modified team-comtress-2 repository, and are reenabled by default.
bool bThreaded = false;//( nDirty > 5 && cl_threaded_client_leaf_system.GetBool() && g_pThreadPool->NumThreads() );
m_bThreaded = false;//( r_threaded_client_shadow_manager.GetBool() && g_pThreadPool->NumIdleThreads() );
if ( 0 && r_threaded_renderables.GetBool() )
{
ParallelProcess( "BoneSetupNpcsLast", arrBoneSetupNpcsLast.Base() + numOpaqueEnts - numNpcs, numNpcs, &SetupBonesOnBaseAnimating );
ParallelProcess( "BoneSetupNpcsLast NonNPCs", arrBoneSetupNpcsLast.Base(), numNonNpcsAnimating, &SetupBonesOnBaseAnimating );
}
r_queued_post_processing is completely broken, and should be disabled.
It'd be great to have more multi-threaded code in tf2, although team comtress 2 is built using illegally obtained tf2 source code so i personally wouldn't recommend mentioning it here or posting leaked tf2 source code here especially when asking valve devs about
It'd be great to have more multi-threaded code in tf2, although team comtress 2 is built using illegally obtained tf2 source code so i personally wouldn't recommend mentioning it here or posting leaked tf2 source code here especially when asking valve devs about
yes, but people have posted direct lines and fixes using the leaked code, the code wasn't illegally obtained, it was illegally shared. The code itself was given to people who had a source 1 repo license.
also boosting the thread count from 4 to 6 would be good as well.
It would be nice to see any optimizations that don't break stuff, ported or implemented into TF2 or any other Source games. I think the best way of futureproofing TF2 is to take advantage of all the resources hardware has to provide, but Source was never great about that, and I'm not even sure what I'm talking about!
I'd love for the optimizations, QoL-changes, bugfixes and general effort that went into big projects such as team comtress to eventually and carefully be implemented into TF2!
I'd love for a the optimizations, QoL-changes, bugfixes and general effort that went into big projects such as team comtress to eventually and carefully be implemented into TF2!
We all do honestly. What Mastercom and her team managed to create is one of the biggest tf2 project ever made, the amout of optimisation and bug fixes in this is enormous and Mastercom, who is already popular with the Masterconfig, is a source magician;)
I don't recommend using those commands, they're just enabled for some testing on my end. Most of them cause pretty bad bottlenecks from ordering issues and incorrect task balancing. Just because multi-threading is theoretically faster doesn't mean it will be.
cl_threaded_client_leaf_system required almost the entire client leaf system to be rewritten/restructured and it still doesn't work well on some older 2009-2011 CPUs.
r_threaded_renderables is a very bad idea at the moment, same for threaded bone setup. CS:GO has some fixes for the latter but I don't think they can be applied properly to TF2 without some major work.
Keep in mind the project you're referring to was highly experimental and wasn't meant to exactly be an ideal state of TF2, but rather an educational exercise for myself to assist me in making independent suggestions from my findings.