mirror of
https://github.com/minetest/minetest.git
synced 2024-11-10 01:33:46 +01:00
addon extended resource accounting
This commit is contained in:
parent
abe74ea5ea
commit
10502b59bc
16
src/game.cpp
16
src/game.cpp
@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#include <IGUIStaticText.h>
|
#include <IGUIStaticText.h>
|
||||||
#include <IGUIFont.h>
|
#include <IGUIFont.h>
|
||||||
#include <IMaterialRendererServices.h>
|
#include <IMaterialRendererServices.h>
|
||||||
|
#include "IMeshCache.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "server.h"
|
#include "server.h"
|
||||||
#include "guiPauseMenu.h"
|
#include "guiPauseMenu.h"
|
||||||
@ -3314,6 +3315,21 @@ void the_game(
|
|||||||
delete shsrc;
|
delete shsrc;
|
||||||
delete nodedef;
|
delete nodedef;
|
||||||
delete itemdef;
|
delete itemdef;
|
||||||
|
|
||||||
|
//extended resource accounting
|
||||||
|
infostream << "Irrlicht resources after cleanup:" << std::endl;
|
||||||
|
infostream << "\tRemaining meshes : "
|
||||||
|
<< device->getSceneManager()->getMeshCache()->getMeshCount() << std::endl;
|
||||||
|
infostream << "\tRemaining textures : "
|
||||||
|
<< driver->getTextureCount() << std::endl;
|
||||||
|
for (unsigned int i = 0; i < driver->getTextureCount(); i++ ) {
|
||||||
|
irr::video::ITexture* texture = driver->getTextureByIndex(i);
|
||||||
|
infostream << "\t\t" << i << ":" << texture->getName().getPath().c_str()
|
||||||
|
<< std::endl;
|
||||||
|
}
|
||||||
|
infostream << "\tRemaining materials: "
|
||||||
|
<< driver-> getMaterialRendererCount ()
|
||||||
|
<< " (note: irrlicht doesn't support removing renderers)"<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user