> On Tuesday, 1 February 2022 08:30:52 PST Murphy, Sean wrote: > > I just made that switch - removed the QRandomGenerator member > variable > > From the tile class, and calling > > QRandomGenerator::global()->bounded(min, > > max). Now creating + assigning each tile plummeted from 18 seconds to > > 15 milliseconds. > > Unfortunately, QRNG has now as ABI requirement that it uses the Mersenne > twister. That means it's 624 * 4 bytes in size (plus overhead) and must seed > that thing, which is non-trivial math.
So if I understand you correctly, instantiating 60,000 of them when you really only need one would be considered Not Advised?!?! Sean _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest