Changeset 2907 for code/branches/questsystem5/src/core/TclThreadManager.cc
- Timestamp:
- Apr 8, 2009, 12:36:08 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/core/TclThreadManager.cc
r1792 r2907 35 35 #include <OgreTimer.h> 36 36 37 #include "Clock.h" 37 38 #include "CoreIncludes.h" 38 39 #include "ConsoleCommand.h" … … 598 599 } 599 600 600 void TclThreadManager:: tick(float dt)601 void TclThreadManager::update(const Clock& time) 601 602 { 602 603 { … … 633 634 boost::try_mutex::scoped_lock interpreter_lock(this->orxonoxInterpreterBundle_.interpreterMutex_); 634 635 #endif 635 unsigned long maxtime = (unsigned long)( dt* 1000000 * TCLTHREADMANAGER_MAX_CPU_USAGE);636 unsigned long maxtime = (unsigned long)(time.getDeltaTime() * 1000000 * TCLTHREADMANAGER_MAX_CPU_USAGE); 636 637 Ogre::Timer timer; 637 638 while (!this->queueIsEmpty())
Note: See TracChangeset
for help on using the changeset viewer.