mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-12 03:04:51 -04:00
--User changes
-Always force times of each flame to increase from zero when saving a file. -Remove check for times when doing a sequence in EmberGenome because the original times are never used there. --Bug fixes -Multi-GPU synchronization was not actually thread safe and was likely doing less iters than requested. It is now properly synchronized. --Code changes -Optimize Interpolater by making it a non-static class by adding some members used for caching values during interpolation. -Cache values in SheepTools as well, which was already a non-static class. -General cleanup.
This commit is contained in:
@ -1028,6 +1028,26 @@ static vector<string> Split(const string& str, char del)
|
||||
return vec;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Thin wrapper around joining a thread.
|
||||
/// </summary>
|
||||
/// <param name="th">The thread to join</param>
|
||||
static void Join(std::thread& th)
|
||||
{
|
||||
if (th.joinable())
|
||||
th.join();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Thin wrapper around joining a vector of threads.
|
||||
/// </summary>
|
||||
/// <param name="vec">The vector of threads to join</param>
|
||||
static void Join(std::vector<std::thread>& vec)
|
||||
{
|
||||
for (auto& it : vec)
|
||||
Join(it);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return a character pointer to a version string composed of the EMBER_OS and EMBER_VERSION values.
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user