When adding many items to a scene or using items with complex paint() functions, the performance of your application may decrease. While default optimizations of Graphics View are suitable for most cases, you may need to tweak them to achieve better performance. Let's now take a look at some of the optimizations we can perform to speed up the scene.
Optimization
A binary space partition tree
The scene constantly keeps a record of the position of the item in its internal binary space partition tree. Thus, on every move of an item, the scene has to update the tree, an operation that can become quite time-consuming, and also memory consuming. This is especially true of scenes with a large number of animated items. On the...