Moving over more allocations to the memory pool

This commit is contained in:
Alexander Bock
2020-08-05 11:19:09 +02:00
parent 25247c7a37
commit 696bc31861
20 changed files with 51 additions and 54 deletions
+2 -1
View File
@@ -28,6 +28,7 @@
#include <openspace/properties/propertyowner.h>
#include <ghoul/glm.h>
#include <ghoul/misc/managedmemoryuniqueptr.h>
#include <memory>
namespace ghoul { class Dictionary; }
@@ -40,7 +41,7 @@ namespace documentation { struct Documentation; }
class Rotation : public properties::PropertyOwner {
public:
static std::unique_ptr<Rotation> createFromDictionary(
static ghoul::mm_unique_ptr<Rotation> createFromDictionary(
const ghoul::Dictionary& dictionary);
Rotation(const ghoul::Dictionary& dictionary);
+2 -1
View File
@@ -28,6 +28,7 @@
#include <openspace/properties/propertyowner.h>
#include <ghoul/glm.h>
#include <ghoul/misc/managedmemoryuniqueptr.h>
#include <memory>
namespace ghoul { class Dictionary; }
@@ -40,7 +41,7 @@ namespace documentation { struct Documentation; }
class Scale : public properties::PropertyOwner {
public:
static std::unique_ptr<Scale> createFromDictionary(
static ghoul::mm_unique_ptr<Scale> createFromDictionary(
const ghoul::Dictionary& dictionary);
Scale();
+5 -6
View File
@@ -141,7 +141,6 @@ public:
const PerformanceRecord& performanceRecord() const;
void setRenderable(std::unique_ptr<Renderable> renderable);
const Renderable* renderable() const;
Renderable* renderable();
@@ -169,19 +168,19 @@ private:
PerformanceRecord _performanceRecord = { 0, 0, 0, 0, 0 };
std::unique_ptr<Renderable> _renderable;
ghoul::mm_unique_ptr<Renderable> _renderable;
properties::StringProperty _guiPath;
properties::StringProperty _guiDisplayName;
// Transformation defined by ephemeris, rotation and scale
struct {
std::unique_ptr<Translation> translation;
std::unique_ptr<Rotation> rotation;
std::unique_ptr<Scale> scale;
ghoul::mm_unique_ptr<Translation> translation;
ghoul::mm_unique_ptr<Rotation> rotation;
ghoul::mm_unique_ptr<Scale> scale;
} _transform;
std::unique_ptr<TimeFrame> _timeFrame;
ghoul::mm_unique_ptr<TimeFrame> _timeFrame;
// Cached transform data
glm::dvec3 _worldPositionCached = glm::dvec3(0.0);
+2 -1
View File
@@ -28,6 +28,7 @@
#include <openspace/properties/propertyowner.h>
#include <ghoul/glm.h>
#include <ghoul/misc/managedmemoryuniqueptr.h>
#include <memory>
namespace ghoul { class Dictionary; }
@@ -40,7 +41,7 @@ namespace documentation { struct Documentation; }
class TimeFrame : public properties::PropertyOwner {
public:
static std::unique_ptr<TimeFrame> createFromDictionary(
static ghoul::mm_unique_ptr<TimeFrame> createFromDictionary(
const ghoul::Dictionary& dictionary);
TimeFrame();
+2 -1
View File
@@ -28,6 +28,7 @@
#include <openspace/properties/propertyowner.h>
#include <ghoul/glm.h>
#include <ghoul/misc/managedmemoryuniqueptr.h>
#include <functional>
#include <memory>
@@ -42,7 +43,7 @@ namespace documentation { struct Documentation; }
class Translation : public properties::PropertyOwner {
public:
static std::unique_ptr<Translation> createFromDictionary(
static ghoul::mm_unique_ptr<Translation> createFromDictionary(
const ghoul::Dictionary& dictionary);
Translation();