[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58043] branches/soc-2013-gl_debug/source/ gameengine/Ketsji: Merged 'Network' profiling category with 'Logic'.

Inês Almeida britalmeida at gmail.com
Sat Jul 6 15:32:56 CEST 2013


Revision: 58043
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58043
Author:   brita_
Date:     2013-07-06 13:32:56 +0000 (Sat, 06 Jul 2013)
Log Message:
-----------
Merged 'Network' profiling category with 'Logic'. Added 'Latency' category to measure swap buffer time.

Modified Paths:
--------------
    branches/soc-2013-gl_debug/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
    branches/soc-2013-gl_debug/source/gameengine/Ketsji/KX_KetsjiEngine.h

Modified: branches/soc-2013-gl_debug/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
===================================================================
--- branches/soc-2013-gl_debug/source/gameengine/Ketsji/KX_KetsjiEngine.cpp	2013-07-06 12:03:28 UTC (rev 58042)
+++ branches/soc-2013-gl_debug/source/gameengine/Ketsji/KX_KetsjiEngine.cpp	2013-07-06 13:32:56 UTC (rev 58043)
@@ -94,9 +94,9 @@
 	"Physics:",		// tc_physics
 	"Logic:",		// tc_logic
 	"Animations:",	// tc_animations
-	"Network:",		// tc_network
 	"Scenegraph:",	// tc_scenegraph
 	"Rasterizer:",	// tc_rasterizer
+	"Latency:",		// tc_latency
 	"Services:",	// tc_services
 	"Overhead:",	// tc_overhead
 	"Outside:"		// tc_outside
@@ -543,8 +543,10 @@
 
 	m_logger->StartLog(tc_rasterizer, m_kxsystem->GetTimeInSeconds(), true);
 	m_rasterizer->EndFrame();
+	m_logger->StartLog(tc_latency, m_kxsystem->GetTimeInSeconds(), true);
 	// swap backbuffer (drawing into this buffer) <-> front/visible buffer
 	m_rasterizer->SwapBuffers();
+	m_logger->StartLog(tc_rasterizer, m_kxsystem->GetTimeInSeconds(), true);
 	m_rendertools->EndFrame(m_rasterizer);
 
 	
@@ -643,7 +645,6 @@
 				m_suspendeddelta = scene->getSuspendedDelta();
 
 				
-				m_logger->StartLog(tc_network, m_kxsystem->GetTimeInSeconds(), true);
 				SG_SetActiveStage(SG_STAGE_NETWORK);
 				scene->GetNetworkScene()->proceed(m_frameTime);
 	

Modified: branches/soc-2013-gl_debug/source/gameengine/Ketsji/KX_KetsjiEngine.h
===================================================================
--- branches/soc-2013-gl_debug/source/gameengine/Ketsji/KX_KetsjiEngine.h	2013-07-06 12:03:28 UTC (rev 58042)
+++ branches/soc-2013-gl_debug/source/gameengine/Ketsji/KX_KetsjiEngine.h	2013-07-06 13:32:56 UTC (rev 58043)
@@ -155,9 +155,9 @@
 		tc_physics = 0,
 		tc_logic,
 		tc_animations,
-		tc_network,
 		tc_scenegraph,
 		tc_rasterizer,
+		tc_latency,
 		tc_services,	// time spend in miscelaneous activities
 		tc_overhead,	// profile info drawing overhead
 		tc_outside,		// time spend outside main loop




More information about the Bf-blender-cvs mailing list