Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-05-04 02:29:00 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2009-05-04 02:29:00 +0400
commit3abb8e8e68c824db7cecdf2360e8e1daaff00413 (patch)
tree8f4fea6f267ce2d268cb82e9121c5208eeea8d8a /projectfiles_vc9
parent2aa3c932d00977a70bc299bd709fa505c48518d8 (diff)
BGE performance: second round of scenegraph improvement.
Use dynamic linked list to handle scenegraph rather than dumb scan of the whole tree. The performance improvement depends on the fraction of moving objects. If most objects are static, the speed up is considerable. The following table compares the time spent on scenegraph before and after this commit on a scene with 10000 objects in various configuratons: Scenegraph time (ms) Before After (includes culling) All objects static, 8.8 1.7 all visible but small fraction in the view frustrum All objects static, 7,5 0.01 all invisible. All objects moving, 14.1 8.4 all visible but small fraction in the view frustrum This tables shows that static and invisible objects take no CPU at all for scenegraph and culling. In the general case, this commit will speed up the scenegraph between 2x and 5x. Compared to 2.48a, it should be between 4x and 10x faster. Further speed up is possible by making the scenegraph cache-friendly. Next round of performance improvement will be on the rasterizer: use the same dynamic linked list technique for the mesh slots.
Diffstat (limited to 'projectfiles_vc9')
-rw-r--r--projectfiles_vc9/gameengine/scenegraph/SG_SceneGraph.vcproj9
1 files changed, 9 insertions, 0 deletions
diff --git a/projectfiles_vc9/gameengine/scenegraph/SG_SceneGraph.vcproj b/projectfiles_vc9/gameengine/scenegraph/SG_SceneGraph.vcproj
index 9c63f625820..95e61cc4af8 100644
--- a/projectfiles_vc9/gameengine/scenegraph/SG_SceneGraph.vcproj
+++ b/projectfiles_vc9/gameengine/scenegraph/SG_SceneGraph.vcproj
@@ -4,6 +4,7 @@
Version="9,00"
Name="SG_SceneGraph"
ProjectGUID="{09222F5E-1625-4FF3-A89A-384D16875EE5}"
+ RootNamespace="SG_SceneGraph"
TargetFrameworkVersion="131072"
>
<Platforms>
@@ -510,6 +511,10 @@
>
</File>
<File
+ RelativePath="..\..\..\source\gameengine\SceneGraph\SG_DList.h"
+ >
+ </File>
+ <File
RelativePath="..\..\..\source\gameengine\SceneGraph\SG_IObject.h"
>
</File>
@@ -522,6 +527,10 @@
>
</File>
<File
+ RelativePath="..\..\..\source\gameengine\SceneGraph\SG_QList.h"
+ >
+ </File>
+ <File
RelativePath="..\..\..\source\gameengine\SceneGraph\SG_Spatial.h"
>
</File>