logging: Initialize total, total_cpu, total_gpu variables
@@ -65,7 +65,10 @@ void writeSummary(string filename){
out << "0.1% Min FPS," << "1% Min FPS," << "97% Percentile FPS," << "Average FPS," << "GPU Load," << "CPU Load" << "\n";
std::vector<logData> sorted = logArray;
std::sort(sorted.begin(), sorted.end(), compareByFps);
- float total, total_cpu, total_gpu; float result;
+ float total = 0.0f;
+ float total_cpu = 0.0f;
+ float total_gpu = 0.0f;
+ float result;
float percents[2] = {0.001, 0.01};
for (auto percent : percents){
total = 0;
