mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-12 03:04:51 -04:00
0.4.1.7 Beta 01/02/2015
--User changes Use actual strips count when computing memory requirements in the final render dialog. Output CL_DEVICE_ADDRESS_BITS when passing --openclinfo to command line programs. Warn if single/total allocations are greater than the max allowed for OpenCL in the final render dialog. Make about box properly sized for different fonts. Dock widget is slightly resizable now. Center scroll area when loading a new ember. --Bug Fixes Fix bad values left in an ember when a render with strips > 1 fails in the final render dialog. Fix incorrect calculation in dc_cube variation when using OpenCL. --Code Changes Major work to get it running on Linux. Migrate from QGLWidget to QOpenGLWidget. Delayed init due to QOpenGLWidget. Break RendererBase::MemoryRequired() into two functions, it and HistMemRequired() and return a tuple. Add GlobalMemSize() and MaxAllocSize() functions in OpenCLWrapper. Change CHOOSE_XFORM_GRAIN to be 16384, so we can & with 16383 instead of using modulo when selecting an xform. This results in a 9% speed increase on the CPU. Save each newly loaded ember in a file called "last.flame" in the executable folder. This will help diagnose crashes that occur when switching embers. Use nullptr instead of NULL in the Fractorium project. It had previously been done in all other places.
This commit is contained in:
@ -24,8 +24,8 @@ Fractorium::Fractorium(QWidget* p)
|
||||
m_ColorDialog = new QColorDialog(this);
|
||||
m_Settings = new FractoriumSettings(this);
|
||||
|
||||
m_FileDialog = NULL;//Use lazy instantiation upon first use.
|
||||
m_FolderDialog = NULL;
|
||||
m_FileDialog = nullptr;//Use lazy instantiation upon first use.
|
||||
m_FolderDialog = nullptr;
|
||||
m_FinalRenderDialog = new FractoriumFinalRenderDialog(m_Settings, this);
|
||||
m_OptionsDialog = new FractoriumOptionsDialog(m_Settings, this);
|
||||
m_AboutDialog = new FractoriumAboutDialog(this);
|
||||
@ -122,8 +122,8 @@ Fractorium::Fractorium(QWidget* p)
|
||||
//Setup pointer in the GL window to point back to here.
|
||||
ui.GLDisplay->SetMainWindow(this);
|
||||
|
||||
showMaximized();
|
||||
|
||||
showMaximized();//This won't fully set things up and show them until after this constructor exits.
|
||||
|
||||
connect(ui.DockWidget, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)), this, SLOT(dockLocationChanged(Qt::DockWidgetArea)));
|
||||
connect(ui.DockWidget, SIGNAL(topLevelChanged(bool)), this, SLOT(OnDockTopLevelChanged(bool)));
|
||||
|
||||
@ -155,9 +155,10 @@ Fractorium::Fractorium(QWidget* p)
|
||||
ui.GLParentScrollArea->installEventFilter(this);
|
||||
|
||||
//At this point, everything has been setup except the renderer. Shortly after
|
||||
//this constructor exits, GLWidget::initializeGL() will create the initial flock and start the rendering timer
|
||||
//this constructor exits, GLWidget::InitGL() will create the initial flock and start the rendering timer
|
||||
//which executes whenever the program is idle. Upon starting the timer, the renderer
|
||||
//will be initialized.
|
||||
QTimer::singleShot(500, [&]() { ui.GLDisplay->InitGL(); });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -183,6 +184,19 @@ void Fractorium::SetCoordinateStatus(int rasX, int rasY, float worldX, float wor
|
||||
m_CoordinateStatusLabel->setText(QString(m_CoordinateString));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Center the scroll area.
|
||||
/// Called in response to a resizing, or setting of new ember.
|
||||
/// </summary>
|
||||
void Fractorium::CenterScrollbars()
|
||||
{
|
||||
QScrollBar* w = ui.GLParentScrollArea->horizontalScrollBar();
|
||||
QScrollBar* h = ui.GLParentScrollArea->verticalScrollBar();
|
||||
|
||||
w->setValue(w->maximum() / 2);
|
||||
h->setValue(h->maximum() / 2);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Apply the settings for saving an ember to an Xml file to an ember (presumably about to be saved).
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user