Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3678 in orxonox.OLD for orxonox/trunk/src/orxonox.cc


Ignore:
Timestamp:
Mar 30, 2005, 6:55:15 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: deleted class primitive, because model has the same ability now

File:
1 edited

Legend:

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

    r3676 r3678  
    341341#include "player.h"
    342342#include "base_object.h"
    343 #include "primitive.h"
    344343#include <asm/msr.h>
    345344#include <linux/timex.h>
     
    397396      printf(" Generate a WorldEntity object:\t\t%11.2f\n", mi);
    398397     
    399       mittel = 0;
    400       for(i = 0; i < ITERATIONS; ++i)
    401         {
    402           rdtscl(ini);
    403          
    404           WorldEntity* w = new Primitive(P_SPHERE);
    405          
    406           rdtscl(end);
    407           delete w;
    408           mittel += (end - ini - dt);
    409         }
    410       mi = mittel / (float)ITERATIONS;
    411       printf(" Generate a Primitive  object:\t\t%11.2f\n", mi);
    412 
     398      /*
     399        mittel = 0;
     400        for(i = 0; i < ITERATIONS; ++i)
     401        {
     402        rdtscl(ini);
     403       
     404        WorldEntity* w = new Primitive(P_SPHERE);
     405       
     406        rdtscl(end);
     407        delete w;
     408        mittel += (end - ini - dt);
     409        }
     410        mi = mittel / (float)ITERATIONS;
     411        printf(" Generate a Primitive  object:\t\t%11.2f\n", mi);
     412      */
    413413
    414414      mittel = 0;
     
    500500 
    501501     
    502      
    503       mittel = 0;
    504       w = new Primitive(P_SPHERE);
    505       for(i = 0; i < ITERATIONS; ++i)
    506         {
    507           rdtscl(ini);
    508          
    509           w->tick(0.0f);
    510            
    511           rdtscl(end);
    512           mittel += (end - ini - dt);
    513         }
    514       mi = mittel / (float)ITERATIONS;
    515       printf(" Call function tick() of Prim:\t\t%11.2f\n", mi);
    516      
     502      /*
     503        mittel = 0;
     504        w = new Primitive(P_SPHERE);
     505        for(i = 0; i < ITERATIONS; ++i)
     506        {
     507        rdtscl(ini);
     508       
     509        w->tick(0.0f);
     510       
     511        rdtscl(end);
     512        mittel += (end - ini - dt);
     513        }
     514        mi = mittel / (float)ITERATIONS;
     515        printf(" Call function tick() of Prim:\t\t%11.2f\n", mi);
     516      */
    517517     
    518518    }
Note: See TracChangeset for help on using the changeset viewer.