MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / SetTileProperties

Function SetTileProperties

src/luxcore/luxcoreimpl.cpp:956–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954}
955
956static void SetTileProperties(Properties &props, const string &prefix,
957 const deque<const slg::Tile *> &tiles) {
958 props.Set(Property(prefix + ".count")((unsigned int)tiles.size()));
959 Property tileCoordProp(prefix + ".coords");
960 Property tilePassProp(prefix + ".pass");
961 Property tilePendingPassesProp(prefix + ".pendingpasses");
962 Property tileErrorProp(prefix + ".error");
963
964 BOOST_FOREACH(const slg::Tile *tile, tiles) {
965 tileCoordProp.Add(tile->coord.x).Add(tile->coord.y);
966 tilePassProp.Add(tile->pass);
967 tilePendingPassesProp.Add(tile->pendingPasses);
968 tileErrorProp.Add(tile->error);
969 }
970
971 props.Set(tileCoordProp);
972 props.Set(tilePassProp);
973 props.Set(tilePendingPassesProp);
974 props.Set(tileErrorProp);
975}
976
977void RenderSessionImpl::UpdateStats() {
978 // It is not really correct to call UpdateStats() outside a Start()/Stop()

Callers 1

UpdateStatsMethod · 0.85

Calls 2

SetMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected