View Full Version : Mafia II Demo: tweaking PhysX performance

08-10-10, 09:40 PM
Yes, all that dynamic clothing and particle effects are cool, but actuall performance of Mafia II with APEX PhysX effects set on ‚??Medium‚?? or ‚??High‚?? isn‚??t very fascinating ‚?? even GTX 480 users may met some annoying fps drops and lags. Fortunately, there is a way to tweak APEX content a little.

Most performance is devoured by APEX Clothing module, that is responcible for realistic clothing simulation on main and several NPC characters. If you can live without flowing Vito trenchcoat and woman‚??s skirts, you can simply follow the path

\Steam\steamapps\common\mafia ii ‚?? public demo\edit\APEX

and delete (don‚??t forget to backup) directory named as


This will remove¬* certain APEX assets, and character clothing will revert to static skinned mesh (like with APEX set to ‚??Off‚??), but all particle effects will stay !

http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_wo_cloth_sm.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_wo_cloth.jpg)

Result ? No more realistic cloth, but huge fps increase. 70 average fps vs 25 fps without this trick (APEX set to High).

But this is not all ‚?? let‚??s do something more gentle, like disabling all clothing except for Vito suits ‚?? our main character.

Revert Cloth folder to it‚??s place.

Delete all files, except for those starting with ‚??VIT*‚??, and files named ‚??m2skeleton‚?? and ‚??ClothRemapTable‚??.

http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_wo_cloth2_sm.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_wo_cloth2.jpg)

Voila ! Fully dynamic clothing on Vito, without NPCs draining your fps with their unnoticable cloth skirts and jackets.

This is a place near Vito‚??s house ‚?? running around 20-25 fps previously, thanks for those NPC womans skirts. After tweak ‚?? 60+ fps.

And finally. With our tweaks it is possible to play Mafia II with APEX PhysX enabled ‚?? purely on CPU.

http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_wo_cloth3_sm.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_wo_cloth3.jpg)

All fancy particles and impact debris (our CPU was enough for APEX Medium settings), some clothing simulation ‚?? running on stable 30+ fps.

Looks like a nice deal for non-hybrid ATI users.

Update: few screenshots with clothing tweak ‚?? APEX PhysX is set to High, graphics and physics are calculated on single GTX470. Particles are in place, Vito‚??s clothing is fully simulated.

http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_7-300x168.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_7.jpg) http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_8-300x168.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_8.jpg)

http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_2-300x168.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_2.jpg) http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_3-300x168.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_3.jpg)

http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_3-1-300x168.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_3-1.jpg) http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_4-300x168.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_4.jpg)

http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_5-300x168.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_5.jpg) http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_6-300x168.jpg (http://physxinfo.com/news/wp-content/uploads/2010/08/Mafia2_tweak_6.jpg)

More... (http://physxinfo.com/news/3628/mafia-ii-demo-tweaking-physx-performance/)