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:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user