Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions 06_recordVideo_cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ int main(int argc, char* argv[])

std::cout << "configuring worker..." << std::endl;
cuvis::WorkerArgs worker_settings;
worker_settings.keep_out_of_sequence = 0;
worker_settings.poll_interval = std::chrono::milliseconds(10);
worker_settings.worker_count =
0; // =0 automatically sets the worker to the systems number of V-Cores
Expand All @@ -166,7 +165,7 @@ int main(int argc, char* argv[])
using std::chrono::high_resolution_clock;
using std::chrono::milliseconds;
auto t1 = high_resolution_clock::now();
std::vector<int> frametimes;
std::vector<long long> frametimes;
int fpsAveraging = 200;

std::cout << "recording...! " << std::endl;
Expand Down Expand Up @@ -206,7 +205,7 @@ int main(int argc, char* argv[])
frametimes.erase(frametimes.begin());
}
frametimes.push_back(ms_int.count());
int totalFrametime = 0;
long long totalFrametime = 0;
for (int i = 0; i < frametimes.size(); i++)
{
totalFrametime += frametimes[i];
Expand Down
5 changes: 2 additions & 3 deletions 07_recordVideoFromSessionFile_cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ int main(int argc, char* argv[])

std::cout << "configuring worker..." << std::endl;
cuvis::WorkerArgs worker_settings;
worker_settings.keep_out_of_sequence = 0;
worker_settings.poll_interval = std::chrono::milliseconds(10);
worker_settings.worker_count =
0; // =0 automatically sets the worker to the systems number of V-Cores
Expand All @@ -168,7 +167,7 @@ int main(int argc, char* argv[])
using std::chrono::high_resolution_clock;
using std::chrono::milliseconds;
auto t1 = high_resolution_clock::now();
std::vector<int> frametimes;
std::vector<long long> frametimes;
int fpsAveraging = 200;

std::cout << "recording...! " << std::endl;
Expand Down Expand Up @@ -205,7 +204,7 @@ int main(int argc, char* argv[])
frametimes.erase(frametimes.begin());
}
frametimes.push_back(ms_int.count());
int totalFrametime = 0;
long long totalFrametime = 0;
for (int i = 0; i < frametimes.size(); i++)
{
totalFrametime += frametimes[i];
Expand Down