Advertisement
Guest User

Borderlands 3 Graph Benchmark Detailed Data

a guest
Sep 19th, 2019
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.96 KB | None | 0 0
  1. # run script in the directory Borderlands 3 stores its benchmarks data
  2. # on Windows "Documents\My Games\Borderlands 3\Saved\BenchmarkData"
  3. # enumerates and displays ALL benchmark data files in line graph form
  4.  
  5. import numpy as np
  6. from matplotlib import pyplot as plt
  7. import glob
  8.  
  9. path = "BenchmarkData_*.csv"
  10. names = ["Time Elapsed (Seconds)", "Frametime (ms)", "FPS"]
  11. for filename in glob.glob(path):
  12.     data = np.genfromtxt(filename, delimiter=',',encoding="utf8",skip_header=True).T
  13.     #0 = time elapsed (s)
  14.     #1 = frametime (ms)
  15.     #2 = FPS
  16.     print(filename)
  17.    
  18.     for i in range(1,3):
  19.         plt.figure(num=None, figsize=(25,20), dpi=80, facecolor='w', edgecolor='k')
  20.         plt.plot(data[0],data[i],aa=True,color='k')
  21.         plt.xlabel(names[0])
  22.         plt.ylabel(names[i])
  23.         plt.axhline(y=np.min(data[i]),color='r')
  24.         plt.axhline(y=np.mean(data[i]),color='m')
  25.         plt.axhline(y=np.max(data[i]),color='c')
  26.         plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement