summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSarah Smith <sarah.j.smith@nokia.com>2011-11-27 14:30:22 -0800
committerQt by Nokia <qt-info@nokia.com>2011-12-01 08:08:57 +0100
commit245ae1ac34c533982d6bb9cb390f1c0f1410440d (patch)
treee65ec810f9cdfa84980078ea84e7e34a55c26ef4 /tests
parent8dc356589a8d3f728da0413ef94862dc2691a346 (diff)
Modify the sphere so it is a mesh.
There was a performance bug illustrated by a Qt3D user where an app that had a large number of identical spheres, took minutes to load. The problem was that even though the geometry was identical there was no way to utilise this to create a scene with multiple items referencing one sphere, because the geometry actually was being created in the draw function.... Now fixed so that the Sphere becomes a SphereMesh which can be referenced from any number of Item3D's. Added a Sphere convenience class so that legacy code will keep working. Updated the solarsystem_qml class to use the new functionality. Change-Id: I62a60b519bbb048ecadaa09e0d5520ddb49ff100 Reviewed-by: Patrick Burke <patrick.burke@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml3d/sphere/tst_sphere.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml3d/sphere/tst_sphere.qml b/tests/auto/qml3d/sphere/tst_sphere.qml
index 619b73a4a..1d211a496 100644
--- a/tests/auto/qml3d/sphere/tst_sphere.qml
+++ b/tests/auto/qml3d/sphere/tst_sphere.qml
@@ -89,7 +89,7 @@ Viewport {
compare(sphere2.levelOfDetail, 2, "levelOfDetail");
compare(sphere2.axis, Qt.YAxis, "axis");
compare(sphere3.radius, -3.5, "radius (B)");
- compare(sphere3.levelOfDetail, 23, "levelOfDetail (B)");
+ compare(sphere3.levelOfDetail, 10, "levelOfDetail (B)");
compare(sphere3.axis, Qt.XAxis, "axis (B)");
}