renderer: use iterator rather than creating vectors

Creating vectors from the FrameHashCache was one of the slowest functions in the program, this should be significantly faster.
This commit is contained in:
itsmattkc
2021-07-11 16:47:12 -07:00
parent 9b0b3962fe
commit 8a58ee2bdb
9 changed files with 126 additions and 95 deletions
+1
View File
@@ -16,3 +16,4 @@
olive_add_test(General common-tests common-tests.cpp)
olive_add_test(General rational-tests rational-tests.cpp)
olive_add_test(General timerange-tests timerange-tests.cpp)
+1
View File
@@ -21,6 +21,7 @@
#include <iostream>
#define OLIVE_ASSERT(x) if (!(x)) return false
#define OLIVE_ASSERT_EQUAL(x, y) if (x != y) {std::cout << " - Equal assert failed on line " << __LINE__ << ": " << x << " != " << y; return false;}void()
#define OLIVE_TEST_END return true
#define OLIVE_ADD_TEST(x) bool Test##x()