We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.

[nextpage title=”Introduction”]

As you may already know, one of the best ways to benchmark PCs nowadays is by running 3D games. If you are comparing video cards, the use of real 3D games is imperative. Battlefield 2142, which was released last month, is the latest game under Battlefield franchise, making a very interesting choice to test the 3D performance of your system. In this tutorial we will teach you how to use this game to benchmark your PC.

Battlefield 2142 is based on the same engine as Battlefield 2. So in theory you could use the same methods used to benchmark Battlefield 2 on Battlefield 2142. The problem, however, is that Battlefield 2142 doesn’t come with any demos and utilities created for Battlefield 2 won’t run on Battlefield 2142 since file and folder names are different and also because Battlefield 2 demos won’t run on Battlefield 2142. Also, since Battlefield 2142 was just released, no benchmarking utility was released so far.

To make things worse, the benchmarking module included on Battlefield 2142 is flawed. Just to give you an idea, after recording our own demo and playing it five times using Battlefield 2142’s internal benchmarking module, we would get five totally different results. For instance, we recorded a demo based on Suez Channel map and we got five different results: 52.55, 44.47, 56.26, 117.93 and 145.44. As we can see, we are not talking about a slight difference, which is normal, but completely crazy results (especially if you keep in mind that this game has an internal 100 FPS lock, so it can’t produce more than 100 FPS if this lock isn’t disabled).

So, how to use Battlefield 2142 to benchmark your PC? First you will need to create your own demo, with at least 30 seconds. Second, you will need to edit your demo to add a new camera track. Third, you need to run FRAPS. And finally you need to run your demo under the video configuration you want to measure (resolution and image quality). We did this and we could get very consistent results, i.e., running the same demo five times the difference between the results was negligible (below 1%).

You don’t want to go through the hassle of creating your own demo, creating a new camera track and learning the commands to run your demo? No problem. You can download our very own demo, based on Sidi Power Plant map. This is a long demo were we drive a truck from one side of the map to the other, presenting a very consistent number of frames per second. On our zip package you will find all necessary files to automate as much as we can the benchmarking process. We will give you detailed instructions on how to install and run our demo and how to benchmark your system with it. Do you want to create your own demo? No problem, we will teach you how to do this as well, if you want to go through this.

[nextpage title=”Installing and Running Hardware Secrets BF2142 Demo”]

Installation

  • Install Battlefield 2142
  • Download and Install the latest available patch
  • Download our Battlefield 2142 demo and support files package and uncompress it
  • Copy hs_demo-def.bf2cam and hs_demo.bf2142demo to C:Program FilesElectronic ArtsBattlefield 2142modsbf2142Demos (you will need to create this folder). You will have to change “Program Files” to the appropriate name if you are not using an English-based Windows version.
  • Copy init.com to C:Program FilesElectronic ArtsBattlefield 2142modsbf2142
  • Copy 1024×768.tmp, 1024×768.bat, 1600×1200.tmp and 1600×1200.bat to C:Program FilesElectronic ArtsBattlefield 2142
  • In order to speed up the benchmarking process, create a shortcut to 1024×768.bat and 1600×1200.bat on your desktop (drag and drop these two files pressing the right mouse button and choose “Create Shortcuts Here”).
  • Ignore the Demo.cmd file included in our package (this file is used to create your own demo).
  • Download and install FRAPS. Make sure to create a desktop shortcut in order to speed up the benchmarking process.
  • You may want to defragment your hard disk drive before continuing.

We included automated files for 1024×768 and 1600×1200 resolutions. If you want to benchmark Battlefield 2142 in other resolutions, copy 1024×768.tmp and 1024×768.bat and rename the copies to the name of the resolution you want (e.g., 1280×1024.bat and 1280×1024.tmp). Edit the new .bat file with Notepad (right click it and choose Edit) and change where is 1024×768.tmp inside that file to the name of the file you created (e.g., 1280×1024.tmp) and change the resolution after +szx and +szy parameters (e.g., +szx 1280 +szy 1024). Edit the new .tmp file with Notepad and configure the resolution you want on demo.renderwidth and demo.renderheight options (to 1280×1024 you should change 1024 to 1280 at demo.renderwidth and 768 to 1024 at demo.renderheight).

Benchmarking

  • Run Battlefield 2142 and configure image quality settings you’d like to use. Keep in mind that when comparing different systems or video cards, the image quality settings must be the same on both systems. This is done in Options, Video, after logging in to Battlefield 2142.
  • Exit
  • Run FRAPS. Make sure to check MinMaxAvg option under FPS tab. Minimize it. You can also check the option Start Fraps Minimized on its main screen to speed up future takes.
  • Now click on the .bat file that corresponds with the resolution you want to benchmark. This will load Battlefield 2142. You will notice a yellow number on the upper left corner generated by FRAPS. This number will vanish as soon as you tell FRAPS to start measuring the number of frames per second. After loading the map and demo, Battlefield 2142 will wait for your action, by showing “Join Game”.
  • Click Join Game and, right after that, hit the F11 key. The yellow number will vanish, but before that it will glow green for a while, showing you that FRAPS started benchmarking the demo.
  • At the end of the demo (after arriving at the opposite side of the map, where the red Titan is located), hit the F11 key. FRAPS will stop benchmarking the demo and to show you that it stopped, it will show the yellow numbers back again, this time glowing them red for a brief moment.
  • Exit the demo by pressing ` and entering the command “quit” (without the quotes).
  • On C:FrapsFRAPSLOG.TXT you will find the maximum, the minimum and the average number of frames per second generated during the demo. Usually we use the average to compare systems. You can write down this number or simply leave it there, as new runs will only add new lines to this text file, not deleting its contents.
  • In order to speed up the benchmarking process, we recommend you to create a shortcut to FRAPSLOG.TXT on your desktop (drag and drop it while pressing the right mouse button and choose “Create Shortcut Here”).
  • You may want to run the demo three times at the chosen resolution to confirm the results. Then you can get the three results (i.e., average number of frames per second) and make an arithmetic average (add them up and divide by the number of runs – three in this case).

One final important remark: Battlefield 2142 has an internal 100 frames per second lock. We disabled this lock with a command inside our Init.con file. If you do not copy this file, your results will be wrong, since the game will easily reach 100 FPS and then the average number of frames per second will be compromised.

That’s it. We think our demo is quite satisfactory for almost all situations, but if you want to create your own demo, read on.

[nextpage title=”How to Create Your Own Demo”]

Creating your own demo is quite easy. The complicated part is to create the camera track.

A demo file is simple a record of a game sequence. You can record your demo at any time during your gameplay by calling the game console (pressing `) and entering the command demo.recorddemo file_name, where file_name is obviously the name you want to give to your demo. After entering this command everything that happens on the game will be record to this file. Stop recording your demo by entering the command demo.stoprecording at the console.

Since this will record a real game, you will need to decide with map and game type you want to record. This is up to you. Resolution and image quality aren’t important here.

After recording your own demo, it will be saved to C:Program FilesElectronic ArtsBattlefield 2142modsbf2142Demos (if you use a Windows version not in English, Program Files will have a different name). Two files will be created, the demo file (.bf2142demo) and a camera file (-def.bf2142cam).

Since you record the demo while playing it, the camera file will play your demo as the view of your character during the gameplay. The problem, though, is that your head will appear all the time, spoiling your demo.

You will need the Demo.cmd file in order to create your own .bat and .tmp files necessary to play your demo and record your new camera file. The Demo.cmd that Electronic Arts provides works only on Battlefield 2. We edited this file and made the necessary changes to allow you to use this utility together with Battlefield 2142. So the Demo.cmd file present in our zip package is a different file than the one provided by them. Copy this file to the game main folder (C:Program FilesElectronic ArtsBattlefield 2142).

Enter the command prompt and run the following command to watch your demo with the default camera: C:Program FilesElectronic ArtsBattlefield 2142Demo.cmd demo demo-def, where “demo” is the name that you gave to your demo. After entering this command Battlefield will be loaded and your demo will be played. Notice your character’s head appearing in front of you all the time, spoiling your demo.

The next step is to create your own camera track, i.e., a camera track without your character’s head on it.

To create this, you will need to run the command C:Program FilesElectronic ArtsBattlefield 2142Demo.cmd +c demo camera-def, where “demo” is the name of your demo and “camera-def” is the name of the new camera file that will be created.

After entering this command, Battlefield will be loaded under camera editing mode. Here things get a little bit complicated, because this mode is badly documented.

You will at first see a paused screen on the map you played, but at a location that has nothing to do with your gameplay. This happens because the game is paused and the camera is located in a different place. You must move the camera to the correct place you want to record. You can do this by hitting the Q key and then using the W, A, S, D keys and mouse to move the camera around.

After you positioned the camera on the correct place, you start recording the camera track. Basically, the demo will play and you will be able to view it from a different perspective. Everything you do with the camera will be record on the camera track, i.e., the way you are viewing the demo is the exact way that it will be recorded.

Besides the W, A, S, D keys and the mouse, you can also move the camera up and down with the Z and Ctrl keys. The mouse scroll will work as zoom in/zoom out. Clicking with the mouse you can change between free camera mode and player follow camera mode, i.e., from looking the gameplay from “outside” the character’s head to looking the gameplay as if you were one of the players (the advantage here is that you can zoom out from inside the character’s head, so you won’t be “inside” the character’s head anymore as it occurs with the default camera track). In the player follow camera mode you can hit the spacebar to change the player.

The game will still be paused. You can control the playback speed through the number keys. “1” means “pause”, “2” means “normal speed” and “3” on plays the demo in slow motion. After exiting the pause status by pressing 3, for example, everything you do will be recorded.

Of course at your first you won’t get a perfect camera track at your first try. Record as many camera tracks as you like – your demo file will remain unaltered. Play around until you get what you like.

To playback your demo again but now with your new camera track, just run the command C:Program FilesElectronic ArtsBattlefield 2142Demo.cmd demo camera-def, where “camera” is your new camera file.

After you think your have you camera track ready, you will have two files created by Demo.cmd under C:Program FilesElectronic ArtsBattlefield 2142, demo.bat and demo.tmp. You will have to edit both files to setup the resolution you want to use. After doing this, follow the procedure we described in the previous page to benchmark your system using your own demo file.

You have to copy our init.con file to C:Program FilesElectronic ArtsBattlefield 2142modsbf2142. Battlefield 2142 has an internal 100 frames per second lock, and we disabled this lock with a command inside our Init.con file. If you do not copy this file, your results will be wrong, since the game will easily reach 100 FPS and then the average number of frames per second will be compromised. Our configuration file will also make Battlefield 2142 to skip all the introductory videos that play every time you load the game, speeding up the benchmarking process.