View Full Version : Investigation: boosting fps in Batman: Arkham City with APEX .dlls from Mafia II

01-03-12, 06:30 AM
Today we have stumbled upon following article (http://www.dsogaming.com/news/batman-arkham-city-physx-fps-boost-in-dx11-and-dx9-with-custom-apex-dll/) (and related post (http://forums.guru3d.com/showpost.php?p=4208679&postcount=1080)), that is promising huge framerate boost in Batman: Arkham City (http://physxinfo.com/data/vreview_batman2.php) with GPU PhysX effects enabled by replacing certain APEX .dll file with same .dll, but from Mafia II (http://physxinfo.com/data/vreview_maf2.php) title (which is also featuring APEX based GPU PhysX effects). We decided to perform a little research on this effect:

Author of this method is suggesting to replace original file APEX_Clothing_x86.dll, located in Batman: AC folder, with renamed APEX Clothing.dll from Mafia II installation. Both those libraries are used by APEX Clothing (http://physxinfo.com/wiki/APEX_Clothing) module (and are responcible for cloth and clothing simulation), but have different version ‚?? Batman‚??s .dll is related to APEX 1.1 and the one from Mafia II ‚?? APEX 1.0.

http://physxinfo.com/news/wp-content/uploads/2012/01/tweak_batman2_sm.jpg (http://physxinfo.com/news/wp-content/uploads/2012/01/tweak_batman2.jpg)

Thus, with APEX 1.0 library cloth assets in Batman are not recognized and not simulated ‚?? they are simply appearing on level in frozen state, hovering above the ground (like carpets and posters on a screenshot below).

http://physxinfo.com/news/wp-content/uploads/2012/01/tweak_batman2_sm_2.jpg (http://physxinfo.com/news/wp-content/uploads/2012/01/tweak_batman2_2.jpg)

Disabled cloth simulation is giving you desired fps boost, but you can achieve same effect by setting ‚??Hardware Accelerated PhysX‚?? option to ‚??Normal‚?? ‚?? this will switch off all cloth and clothing simulation, leaving only particle PhysX effects, without necessity to mess up the .dlls.

To measure the effect on performance, we have tested the game using various combination of .dlls and PhysX settings (High in-game settings, DX 9).

Batman: AC .dllMafia II .dllPhysX Highmin: 26 fpsmax: 94 fps

average: 52 fps

min: 33 fpsmax: 117 fps

avarage: 74 fps

PhysX Normalmin: 33 fpsmax:117 fps

average: 71 fps

min: 40 fpsmax: 119 fps

average: 74 fps

As we expected, there is almost no difference in framerate between ‚??tweaked‚?? .dlls on ‚??High PhysX‚?? settings and original .dlls on ‚??Normal PhysX‚?? settings, since effect is similar ‚?? disabled cloth simulation.

Nothing like ‚??magic tweak that increases fps by using files from older game, because new one is hobbled by purpose‚?? as one may expect.

Sum ‚?? Pros:

Performace boost.
PhysX cloth objects are not removed completely, as on ‚??Normal‚?? PhysX settings.
Sum ‚?? Cons:

Frozen PhysX cloth objects without proper physical interaction may look out of place.
Older APEX .dll may decrease game stability and disable cloth simulation, that is not part of GPU PhysX effects.
Same effect can be achieved by switching PhysX option to ‚??Normal‚??, without any potential negative backwash.

More... (http://physxinfo.com/news/7066/investigation-boosting-fps-in-batman-arkham-city-with-apex-dlls-from-mafia-ii/)