mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-06-30 21:36:33 -04:00
--User changes
-Remove the option --intpalette to format the palette in the xml as ints. If they are not hex formatted, then they should always be float. This option was pointless. -Cleanup some options text for the command line programs. -Allow for dragging around flames in the library tab. This is useful for setting up the order of an animation. -Make the opening of large files in Fractorium much more efficient when not-appending. -Make the opening of large files in all EmberRender and EmberAnimate more efficient. -Better error reporting when opening files. --Bug fixes -Get rid of leftover artifacts that would appear on preview thumbnails when either switching SP/DP or re-rendering previews. -Filename extension was not being appended on Linux when saving as Xml, thus making it impossible to drag that file back in becase drop is filtered on extension. --Code changes -Move GCC compiler spec to C++14. Building with 5.3 now on linux. -Use inline member data initializers. -Make a #define for static for use in Utils.h to make things a little cleaner. -Make various functions able to take arbitrary collections as their parameters rather than just vectors. -Make library collection a list rather than vector. This alleviates the need to re-sync pointers whenever the collection changes. -Subclass QTreeWidget for the library tree. Two new files added for this. -Remove all usage of #ifdef ROW_ONLY_DE in DEOpenCLKernelCreator, it was never used. -Add move constructor and assignment operator to EmberFile. -Add the ability to use a pointer to outside memory in the renderer for the vector of Ember<T>. -Make a lot more functions const where they should be.
This commit is contained in:
@ -38,7 +38,7 @@ bool EmberAnimate(EmberOptions& opt)
|
||||
const vector<pair<size_t, size_t>> devices = Devices(opt.Devices());
|
||||
std::atomic<size_t> atomfTime;
|
||||
vector<std::thread> threadVec;
|
||||
unique_ptr<RenderProgress<T>> progress;
|
||||
auto progress = make_unique<RenderProgress<T>>();
|
||||
vector<unique_ptr<Renderer<T, float>>> renderers;
|
||||
vector<string> errorReport;
|
||||
std::recursive_mutex verboseCs;
|
||||
@ -58,10 +58,7 @@ bool EmberAnimate(EmberOptions& opt)
|
||||
}
|
||||
|
||||
if (opt.DoProgress())
|
||||
{
|
||||
progress = unique_ptr<RenderProgress<T>>(new RenderProgress<T>());
|
||||
renderers[0]->Callback(progress.get());
|
||||
}
|
||||
|
||||
cout << "Using OpenCL to render.\n";
|
||||
|
||||
@ -103,10 +100,7 @@ bool EmberAnimate(EmberOptions& opt)
|
||||
}
|
||||
|
||||
if (opt.DoProgress())
|
||||
{
|
||||
progress = unique_ptr<RenderProgress<T>>(new RenderProgress<T>());
|
||||
tempRenderer->Callback(progress.get());
|
||||
}
|
||||
|
||||
if (opt.ThreadCount() == 0)
|
||||
{
|
||||
@ -304,7 +298,7 @@ bool EmberAnimate(EmberOptions& opt)
|
||||
|
||||
for (auto& r : renderers)
|
||||
{
|
||||
r->SetEmber(embers);
|
||||
r->SetExternalEmbersPointer(&embers);//All will share a pointer to the original vector to conserve memory with large files. Ok because the vec doesn't get modified.
|
||||
r->EarlyClip(opt.EarlyClip());
|
||||
r->YAxisUp(opt.YAxisUp());
|
||||
r->LockAccum(opt.LockAccum());
|
||||
@ -390,12 +384,12 @@ bool EmberAnimate(EmberOptions& opt)
|
||||
}
|
||||
|
||||
Interpolater<T>::Interpolate(embers, localTime, 0, centerEmber);//Get center flame.
|
||||
emberToXml.Save(flameName, centerEmber, opt.PrintEditDepth(), true, opt.IntPalette(), opt.HexPalette(), true, false, false);
|
||||
emberToXml.Save(flameName, centerEmber, opt.PrintEditDepth(), true, opt.HexPalette(), true, false, false);
|
||||
centerEmber.Clear();
|
||||
}
|
||||
|
||||
stats = renderer->Stats();
|
||||
comments = renderer->ImageComments(stats, opt.PrintEditDepth(), opt.IntPalette(), opt.HexPalette());
|
||||
comments = renderer->ImageComments(stats, opt.PrintEditDepth(), opt.HexPalette());
|
||||
os.str("");
|
||||
size_t iterCount = renderer->TotalIterCount(1);
|
||||
os << comments.m_NumIters << " / " << iterCount << " (" << std::fixed << std::setprecision(2) << ((double(stats.m_Iters) / double(iterCount)) * 100) << "%)";
|
||||
|
Reference in New Issue
Block a user