1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-03 06:24:32 +00:00

remove iprof and BBGE_PROF (#74)

This commit is contained in:
fgenesis 2022-03-17 20:50:42 +01:00
parent 47f8677aa7
commit 26759c8be1
22 changed files with 3 additions and 2286 deletions

View file

@ -31,9 +31,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "BBGECompileConfig.h"
#define BBGE_PROF(x)
#define compile_assert(pred) switch(0){case 0:case (pred):;}
#ifdef _MSC_VER

View file

@ -1046,8 +1046,6 @@ void Core::run(float runTime)
while((runTime == -1 && !loopDone) || (runTime >0))
{
BBGE_PROF(Core_main);
nowTicks = SDL_GetTicks();
dt = (nowTicks-thenTicks)/1000.0;
thenTicks = nowTicks;
@ -1177,8 +1175,6 @@ void Core::run(float runTime)
showBuffer();
BBGE_PROF(STOP);
if (nestedMains == 1)
clearGarbage();
@ -1741,10 +1737,6 @@ void Core::updateCullData()
void Core::render(int startLayer, int endLayer, bool useFrameBufferIfAvail)
{
BBGE_PROF(Core_render);
if (startLayer == -1 && endLayer == -1 && overrideStartLayer != 0)
{
startLayer = overrideStartLayer;
@ -2048,8 +2040,6 @@ CountedPtr<Texture> Core::doTextureAdd(const std::string &texture, const std::st
CountedPtr<Texture> Core::addTexture(const std::string &textureName)
{
BBGE_PROF(Core_addTexture);
if (textureName.empty())
return NULL;
@ -2192,7 +2182,6 @@ void Core::enqueueRenderObjectDeletion(RenderObject *object)
void Core::clearGarbage()
{
BBGE_PROF(Core_clearGarbage);
// HACK: optimize this (use a list instead of a queue)
for (RenderObjects::iterator i = garbage.begin(); i != garbage.end(); i++)

View file

@ -30,7 +30,6 @@ Emitter::Emitter(ParticleEffect *pe) : Quad(), pe(pe)
void Emitter::destroy()
{
BBGE_PROF(Emitter_destroy);
for (Particles::iterator i = particles.begin(); i != particles.end(); i++)
{
(*i)->active = false;
@ -43,7 +42,6 @@ void Emitter::destroy()
void Emitter::spawnParticle(float perc)
{
BBGE_PROF(Emitter_spawnParticle);
Particle *p = particleManager->getFreeParticle(this);
p->active = true;
@ -231,8 +229,6 @@ void Emitter::render()
void Emitter::onRender()
{
BBGE_PROF(Emitter_onRender);
if (particles.empty()) return;
if (!data.spawnLocal)

View file

@ -39,7 +39,6 @@ void ParticleEffect::setDie(bool v)
void ParticleEffect::load(const std::string &name)
{
BBGE_PROF(ParticleEffect_load);
particleManager->loadParticleEffectFromBank(name, this);
}
@ -443,8 +442,6 @@ void ParticleEffect::stop()
void ParticleEffect::onRender()
{
BBGE_PROF(ParticleEffect_onRender);
RenderObject::onRender();
}

View file

@ -257,7 +257,6 @@ Particle *ParticleManager::stomp()
Particle *ParticleManager::getFreeParticle(Emitter *emitter)
{
BBGE_PROF(ParticleManager_getFreeParticle);
if (size == 0) return 0;
Particle *p = 0;
@ -354,7 +353,6 @@ int ParticleManager::getSize()
void ParticleManager::update(float dt)
{
BBGE_PROF(ParticleManager_update);
numActive = 0;
for (size_t i = 0; i < particles.size(); i++)
{