From 5cf3ce09528d9cbbe2aaec304027f022a5d14a55 Mon Sep 17 00:00:00 2001 From: arndcubert Date: Wed, 3 Jan 2024 15:27:25 +0100 Subject: [PATCH 1/2] removed keep_out_of_sequence option --- 06_recordVideo_cpp/main.cpp | 1 - 07_recordVideoFromSessionFile_cpp/main.cpp | 1 - cuvis.cpp | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/06_recordVideo_cpp/main.cpp b/06_recordVideo_cpp/main.cpp index b55daf4..5972bee 100644 --- a/06_recordVideo_cpp/main.cpp +++ b/06_recordVideo_cpp/main.cpp @@ -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 diff --git a/07_recordVideoFromSessionFile_cpp/main.cpp b/07_recordVideoFromSessionFile_cpp/main.cpp index 688bed2..eb7ea58 100644 --- a/07_recordVideoFromSessionFile_cpp/main.cpp +++ b/07_recordVideoFromSessionFile_cpp/main.cpp @@ -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 diff --git a/cuvis.cpp b/cuvis.cpp index ee207b1..257f58a 160000 --- a/cuvis.cpp +++ b/cuvis.cpp @@ -1 +1 @@ -Subproject commit ee207b157122f4b4dccbdd6c765f238ccb9ca114 +Subproject commit 257f58aeadc3be56848df9643ffb1ef819318dd3 From 0896715bfc4d15c606eb1fbef0f245624cead2dd Mon Sep 17 00:00:00 2001 From: arndcubert Date: Thu, 4 Jan 2024 12:08:25 +0100 Subject: [PATCH 2/2] updating types to newest cuvis.h version --- 06_recordVideo_cpp/main.cpp | 4 ++-- 07_recordVideoFromSessionFile_cpp/main.cpp | 4 ++-- cuvis.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/06_recordVideo_cpp/main.cpp b/06_recordVideo_cpp/main.cpp index 5972bee..78d5c3f 100644 --- a/06_recordVideo_cpp/main.cpp +++ b/06_recordVideo_cpp/main.cpp @@ -165,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 frametimes; + std::vector frametimes; int fpsAveraging = 200; std::cout << "recording...! " << std::endl; @@ -205,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]; diff --git a/07_recordVideoFromSessionFile_cpp/main.cpp b/07_recordVideoFromSessionFile_cpp/main.cpp index eb7ea58..18c625b 100644 --- a/07_recordVideoFromSessionFile_cpp/main.cpp +++ b/07_recordVideoFromSessionFile_cpp/main.cpp @@ -167,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 frametimes; + std::vector frametimes; int fpsAveraging = 200; std::cout << "recording...! " << std::endl; @@ -204,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]; diff --git a/cuvis.cpp b/cuvis.cpp index 257f58a..fc24d33 160000 --- a/cuvis.cpp +++ b/cuvis.cpp @@ -1 +1 @@ -Subproject commit 257f58aeadc3be56848df9643ffb1ef819318dd3 +Subproject commit fc24d33ef0d8a14950df7fbe5da86fd2c38de26c