18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 06:26:01 +01:00

Some optimalisations

This commit is contained in:
2026-11-09 20:58:02 +01:00
parent d89b7dddf0
commit ff2ff308ed
20 changed files with 645 additions and 31 deletions

View File

@@ -305,6 +305,12 @@ public:
linesnode_sequence m_lines;
path_sequence m_paths; // path pieces
instance_sequence m_instancesopaque;
// the instances of m_instancesopaque drawn each on its own (TAnimModel::m_instanceable false), in the same order: the walks
// go through these instead of reading every instance of the cell in each pass. made by the walks for the version of the
// instance records they go by and the count of the instances they were made from (gfx::scene_walk::Single_Instances())
mutable instance_sequence m_instancessingle;
mutable unsigned int m_instancessingleversion { 0 };
mutable std::size_t m_instancessinglesource { 0 };
instance_sequence m_instancetranslucent;
// batched instance buckets keyed by shared TModel3d*; populated alongside
// m_instancesopaque for nodes whose TAnimModel::m_instanceable == true.