mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-01 13:56:06 -04:00
--User changes
-Remove some warnings about interpolation type on first and last flames. --Code changes -Make DE block size always be 16x16, this should help stability on some Nvidia cards. No changes for AMD cards since they were that size already. -Since the block size is now so small, do not reduce it further when supersampling. -Clean up some variable names and documentation around OpenCL DE to be more clear.
This commit is contained in:
@ -437,16 +437,12 @@ public:
|
||||
{
|
||||
if (i1 == 0)
|
||||
{
|
||||
//fprintf(stderr, "error: cannot use smooth interpolation on first segment.\n");
|
||||
//fprintf(stderr, "reverting to linear interpolation.\n");
|
||||
Align(&embers[i1], &localEmbers[0], 2);
|
||||
smoothFlag = false;
|
||||
}
|
||||
|
||||
if (i2 == size - 1)
|
||||
{
|
||||
//fprintf(stderr, "error: cannot use smooth interpolation on last segment.\n");
|
||||
//fprintf(stderr, "reverting to linear interpolation.\n");
|
||||
Align(&embers[i1], &localEmbers[0], 2);
|
||||
smoothFlag = false;
|
||||
}
|
||||
|
@ -344,16 +344,10 @@ public:
|
||||
if (emberSize > 0)
|
||||
{
|
||||
if (embers[0].m_Interp == eInterp::EMBER_INTERP_SMOOTH)
|
||||
{
|
||||
cout << "Warning: smooth interpolation cannot be used for first segment.\n switching to linear.\n";
|
||||
embers[0].m_Interp = eInterp::EMBER_INTERP_LINEAR;
|
||||
}
|
||||
|
||||
if (emberSize >= 2 && embers[emberSize - 2].m_Interp == eInterp::EMBER_INTERP_SMOOTH)
|
||||
{
|
||||
cout << "Warning: smooth interpolation cannot be used for last segment.\n switching to linear.\n";
|
||||
embers[emberSize - 2].m_Interp = eInterp::EMBER_INTERP_LINEAR;
|
||||
}
|
||||
}
|
||||
|
||||
//Finally, ensure that consecutive 'rotate' parameters never exceed
|
||||
|
Reference in New Issue
Block a user