Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # run script in the directory Borderlands 3 stores its benchmarks data
- # on Windows "Documents\My Games\Borderlands 3\Saved\BenchmarkData"
- # enumerates and displays ALL benchmark data files in line graph form
- import numpy as np
- from matplotlib import pyplot as plt
- import glob
- path = "BenchmarkData_*.csv"
- names = ["Time Elapsed (Seconds)", "Frametime (ms)", "FPS"]
- for filename in glob.glob(path):
- data = np.genfromtxt(filename, delimiter=',',encoding="utf8",skip_header=True).T
- #0 = time elapsed (s)
- #1 = frametime (ms)
- #2 = FPS
- print(filename)
- for i in range(1,3):
- plt.figure(num=None, figsize=(25,20), dpi=80, facecolor='w', edgecolor='k')
- plt.plot(data[0],data[i],aa=True,color='k')
- plt.xlabel(names[0])
- plt.ylabel(names[i])
- plt.axhline(y=np.min(data[i]),color='r')
- plt.axhline(y=np.mean(data[i]),color='m')
- plt.axhline(y=np.max(data[i]),color='c')
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement