|
From: <axl...@us...> - 2008-12-30 23:47:04
|
Revision: 117
http://hgengine.svn.sourceforge.net/hgengine/?rev=117&view=rev
Author: axlecrusher
Date: 2008-12-30 23:46:54 +0000 (Tue, 30 Dec 2008)
Log Message:
-----------
comment the lines for using threads
Modified Paths:
--------------
Mercury2/src/Mercury2.cpp
Modified: Mercury2/src/Mercury2.cpp
===================================================================
--- Mercury2/src/Mercury2.cpp 2008-12-30 23:26:56 UTC (rev 116)
+++ Mercury2/src/Mercury2.cpp 2008-12-30 23:46:54 UTC (rev 117)
@@ -37,7 +37,6 @@
int main()
{
unsigned long m_count = 0;
-// long m_time;
cnset_execute_on_crash( SignalHandler );
@@ -50,19 +49,18 @@
root->LoadFromXML( r );
SAFE_DELETE(doc);
-
-// MercuryThread updateThread;
-
-// m_time = time(NULL);
+
uint64_t oTime = GetTimeInMicroSeconds();
uint64_t m_time = oTime;
+ //uncomment the next 2 lines to use threads
+// MercuryThread updateThread;
// updateThread.Create( UpdateThread, root, false);
+
do
{
uint64_t curTime = GetTimeInMicroSeconds();
- root->RecursiveUpdate((curTime-oTime)/1000000.0f);
-// updateThread.Create( UpdateThread, root, false);
+ root->RecursiveUpdate((curTime-oTime)/1000000.0f); //comment to use threads
RenderableNode::RecursiveRender(root);
w->SwapBuffers();
++m_count;
@@ -79,6 +77,7 @@
}
while ( w->PumpMessages() );
+ //uncomment the next 2 lines to use threads
// UpdateLoopGo.Increment();
// updateThread.Wait();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|