Optimize reordering of sources nodes in Views (perfom sorting on scenes

only if layer view changed)
This commit is contained in:
brunoherbelin
2020-05-18 22:21:43 +02:00
parent 530762d1d2
commit 3b9b593aa2
4 changed files with 16 additions and 20 deletions

4
View.h
View File

@@ -27,6 +27,9 @@ public:
Scene scene;
// hack to avoid reordering scene of view if not necessary
static bool need_reordering_;
protected:
Mode mode_;
};
@@ -60,7 +63,6 @@ public:
glm::vec3 resolution() const { return frame_buffer_->resolution(); }
inline FrameBuffer *frameBuffer () const { return frame_buffer_; }
};
class GeometryView : public View