Advanced Tweaking
Battlefield 3 is designed around the new Frostbite 2 engine developed by DICE. The engine has a great many features, with over 3,000 command variables (CVARS) in place to control its numerous functions. However less than 100 of these CVARS are unlocked, and fewer still have any impact on the multiplayer component of BF3. This is a deliberate measure by DICE to prevent alterations to the game which would give anyone an unfair advantage. Furthermore, Battlefield 3's in-game settings are quite comprehensive and allow users to readily customize the game as much as possible within these parameters. However DICE has revealed a few advanced tweaks you can use, and these are described in this section of the guide.
Command Console
The primary method for accessing Frostbite 2's advanced functionality is via the command console. This console can be opened by pressing the ~ key, which is found just below ESC and above TAB on most keyboards. You can use the same key to close the console again at any time. Once opened, you can type any command and press Enter to execute it. Try using the List command to see the available set of console commands. The following are the most useful of these console commands, and a brief description of their function:render.drawfps 1 - When set to 1, this command displays a frame per second (FPS) counter at the top right of the screen. The counter can be removed by typing render.drawfps 0.
render.perfoverlayvisible 1 - When set to 1, this command displays a small chart on the bottom left corner of the screen designed to provide you with key information about your system's performance during BF3. It shows your graphics card (GPU) usage as a green line, and your processor (CPU) usage as a yellow line. The aim is to ensure that during gameplay neither lines spike frequently to very high levels, as this indicates that the particular resource is being overtaxed, and possibly causing lag and instability. If necessary experiment with your in-game settings until you see a reduction in such spikes. Use render.perfoverlayvisible 0 to close the overlay.RenderDevice.TripleBufferingEnable 1 - By default Triple Buffering appears to be enabled in BF3. If you've enabled Vertical Sync, Triple Buffering can be useful in preventing a drop in FPS, but Triple Buffering can also reduce responsiveness on some systems, even with VSync disabled. Set this command to a value of 0 to disable the built-in Triple Buffering and test to see if it reduces any input lag.RenderDevice.ForceRenderAheadLimit 0 - This setting controls the number of frames prepared by the CPU before being processed by the GPU. You can try values of 0, 1, 2 or 3 - higher values may improve FPS but can decrease responsiveness, while lower values do the reverse. In experimenting with this on my system using the performance overlay (see above), I found that as the value increased to 3, CPU spikes became more frequent. Smoothest performance was at 0 or 1, but this can vary from system to system.screenshot.render - When this command is executed in the console, the game immediately takes a screenshot (minus the console), and places it as a lossless .PNG file in your \Users\[username]\Documents\Battlefield 3\Screenshots directory. You can use the screenshot.format command to change the format of the screenshot file. E.g. screenshot.format JPG to save screenshots in JPEG format rather than PNG.If you wish to apply any console command automatically at startup, create a new text file and rename it toUser.cfg. Edit the file using Windows Notepad or Wordpad, entering each command on a separate line. Save this file and place it in your main \Program Files (x86)\Origin Games\Battlefield 3\ directory.
Configuration File
The main configuration file which holds your BF3 settings can be found under the \Users\[username]\Documents\Battlefield 3\settings directory. The file is called PROF_Save_profile, and you should create a backup copy of it before attempting any changes. This file is best edited using the built-in Windows Wordpad, which displays the file with more legible formatting. The vast majority of the settings in this file correspond to those you can adjust using the in-game options menus, so it is not necessary or recommended that they be altered here. However there are a couple of useful settings which can be further customized in this file, as described below:GstRender.FieldOfView 70.000000 - You can set your Field of View in the in-game options, however there it is capped between 60 and 90 degrees. Using this command, you can set a value outside that cap (in degrees), which will work in multiplayer. The default value is 70 degrees.GstInput.MouseSensitivity 0.418605 - You can set your mouse sensitivity using the Mouse Sensitivity slider in the game options. However here you can set it more precisely, and it also allows you to use values above the maximum allowed on the slider (i.e. above 1.00000), which will work in multiplayer.While there are plenty of other variables you can experiment with, keep in mind once again that DICE has specifically prevented any variables which alter aspects of the game that would make it unfair to other players. So there is little chance of finding a variable which removes all foliage, or which reduces object complexity beyond the limits set in the in-game options, and so on. Even if any such commands work, they are likely to be quickly detected as cheat variables and could result in being kicked or banned via PunkBuster if used online. The bulk of the useful tweaking of BF3 comes from the numerous in-game settings covered earlier in this guide.