Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4707 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 26, 2005, 5:55:52 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: there where some redundances in the drawing process… now the app executes much faster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc

    r4706 r4707  
    221221  CDEngine::getInstance()->checkCollisions();
    222222
    223   currentFrame = SDL_GetTicks();
    224   dt = currentFrame - lastFrame;
    225 
    226223
    227224  b->shiftCoor(Vector(0.0, 0.0, iterata));
     
    236233  }
    237234  delete iterator;
    238 
    239   lastFrame = currentFrame;
    240235}
    241236
     
    243238void Framework::moduleDraw() const
    244239{
    245   CDEngine::getInstance()->drawBV(depth, drawMode);
    246   LightManager::getInstance()->draw();
     240  //CDEngine::getInstance()->drawBV(depth, drawMode);
    247241
    248242  tIterator<WorldEntity>* iterator = entityList->getIterator(); /* get the iterator - JAVA style */
     
    250244  while( entity != NULL)                        /* nextElement() will return NULL at the end */
    251245  {
    252     if( drawModel)
     246    if( likely(drawModel))
    253247    entity->draw();
    254     //entity->drawBVTree(depth, drawMode);
     248    entity->drawBVTree(depth, drawMode);
    255249    entity = iterator->nextElement();       /* give back the next element or NULL if last */
    256250  }
    257251  delete iterator;
    258   //model->draw();
     252
     253  LightManager::getInstance()->draw();
    259254}
    260255
Note: See TracChangeset for help on using the changeset viewer.