mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Optimize reordering of sources nodes in Views (perfom sorting on scenes
only if layer view changed)
This commit is contained in:
4
View.h
4
View.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user