Improved image caching logic, to better estimate max image sizes possible, based on clip scale and keyframe settings... so we are always dealing with the smallest possible frame sizes for performance (without losing quality)

This commit is contained in:
Jonathan Thomas
2016-09-17 17:14:27 -05:00
parent 183b0714e2
commit 1743558f99
5 changed files with 78 additions and 6 deletions

View File

@@ -244,6 +244,32 @@ TEST(Keyframe_Get_Closest_Point)
}
TEST(Keyframe_Get_Max_Point)
{
// Create a keyframe curve
Keyframe kf;
kf.AddPoint(1, 1.0);
// Spot check values from the curve
CHECK_EQUAL(kf.GetMaxPoint().co.Y, 1.0);
kf.AddPoint(2, 0.0);
// Spot check values from the curve
CHECK_EQUAL(kf.GetMaxPoint().co.Y, 1.0);
kf.AddPoint(3, 2.0);
// Spot check values from the curve
CHECK_EQUAL(kf.GetMaxPoint().co.Y, 2.0);
kf.AddPoint(4, 1.0);
// Spot check values from the curve
CHECK_EQUAL(kf.GetMaxPoint().co.Y, 2.0);
}
TEST(Keyframe_Scale_Keyframe)
{
// Create a keyframe curve with 2 points