Go back to using pointers instead of vectors.
No need to incur that performance overhead.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
#include "LayerData.hpp"
|
||||
#include "LayerVisualisation.hpp"
|
||||
@@ -16,8 +16,8 @@ namespace fmri
|
||||
|
||||
private:
|
||||
std::size_t faceCount;
|
||||
std::vector<float> vertexBuffer;
|
||||
std::vector<float> colorBuffer;
|
||||
std::vector<int> indexBuffer;
|
||||
std::unique_ptr<float[]> vertexBuffer;
|
||||
std::unique_ptr<float[]> colorBuffer;
|
||||
std::unique_ptr<int[]> indexBuffer;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user