Soldato
Edit wrong thread.
Last edited:
Please remember that any mention of competitors, hinting at competitors or offering to provide details of competitors will result in an account suspension. The full rules can be found under the 'Terms and Rules' link in the bottom right corner of your screen. Just don't mention competitors in any way, shape or form and you'll be OK.
Hi Cambo,
using the long version i get the following
Max 98.9
Avg 68.9
MIn 38.4
So its looking good...
Which to be honest are very near my results for dx11 on the first page so think you have it cracked
#include <fstream>
#include <string>
#include <cerrno>
#include <iostream>
#include <sstream>
#include <limits>
std::string get_file_contents(const char *filename)
{
std::ifstream in(filename, std::ios::in | std::ios::binary);
if (in)
{
std::string contents;
in.seekg(0, std::ios::end);
contents.resize(in.tellg());
in.seekg(0, std::ios::beg);
in.read(&contents[0], contents.size());
in.close();
return(contents);
}
throw(errno);
}
void parse_csvs(const std::string& csvs)
{
std::stringstream strm( csvs );
// discard the first line, which is column headers;
std::string line;
if (!getline( strm, line ))
{
std::cout << "Error parsing file." << std::endl;
return;
}
unsigned frame_count = 0;
double min_fps = std::numeric_limits<double>::max();
double max_fps = 0.0;
double fps_accum = 0.0;
while ( getline( strm, line ) )
{
++frame_count;
double fps = 1000.0 / atof( line.c_str() );
fps_accum += fps;
if ( fps < min_fps )
min_fps = fps;
if ( fps > max_fps )
max_fps = fps;
}
if ( frame_count == 0 )
{
std::cout << "Error: no frames read." << std::endl;
return;
}
std::cout << "\n" << "Frame Count: " << frame_count << "\n";
std::cout << "Minimum FPS: " << min_fps << "\n";
std::cout << "Maximum FPS: " << max_fps << "\n";
std::cout << "Average FPS: " << fps_accum / frame_count << std::endl;
}
int main( int argc, char* argv[] )
{
// usage: bf4parse <filename>
// check number of arguments.should be 2 (progname filename)
if ( argc != 2 )
{
std::cout << "Usage: bf4parse <filename>" << std::endl;
return 1;
}
std::string csvs;
try {
csvs = get_file_contents( argv[1] );
}
catch( ... ) {
std::cout << "Error reading file. errno: " << errno << std::endl;
}
parse_csvs( csvs );
return 0;
}
Link to the app here guys (203.5KB):
http://www.sendspace.com/file/c7qmr3
Probably easiest to place the .exe in the same folder as the CSV file.
Then open a console window in said folder and type:
bf4parse <filename>
e.g.
bf4parse FrameTimeLog001.csv
Let me know if you have any problems guys.
How do you open a console window?
Link to the app here guys (203.5KB):
http://www.sendspace.com/file/c7qmr3
Probably easiest to place the .exe in the same folder as the CSV file.
Then open a console window in said folder and type:
bf4parse <filename>
e.g.
bf4parse FrameTimeLog001.csv
Let me know if you have any problems guys.
How do you open a console window?
How do you open a console window?
Could do Matt, or right click on command window and choose "select all" from the menu.Right click again and choose "copy", then paste in to a post.Yep many thanks. Maybe we should ask people to include a screenshot of the tool when posting scores like so.
I'm working on another short benchmarking sequence that we can all follow in the test range. Its just to see how much a tank gun explosion causes fps to drop. I'll stick a video of it up on youtube shortly so we can have two different benchmark scenes to compare.
[email protected]
1x290 975/1250
1440P Ultra Preset + x4 AA
14.1 Beta
Mantle
MIN:41.5
AVG:59.3
DX11
MIN:36.1
AVG:55.5