mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-05-12 03:53:52 +00:00
track sizes of core objects to motivate the numbers to go down
This commit is contained in:
parent
c82aab1e51
commit
c528a6186f
2 changed files with 16 additions and 19 deletions
|
@ -770,26 +770,24 @@ static bool sdlVideoModeOK(int disp, const int w, const int h, const int bpp)
|
||||||
|
|
||||||
void DSQ::init()
|
void DSQ::init()
|
||||||
{
|
{
|
||||||
|
#define PSIZEOF(x) { std::ostringstream os_; os_ << ("sizeof(" #x ") = ") << sizeof(x); debugLog(os_.str()); }
|
||||||
|
PSIZEOF(RenderObject);
|
||||||
|
PSIZEOF(Quad);
|
||||||
|
PSIZEOF(Element);
|
||||||
|
PSIZEOF(Shot);
|
||||||
|
PSIZEOF(Bone);
|
||||||
|
PSIZEOF(PauseQuad);
|
||||||
|
PSIZEOF(Entity);
|
||||||
|
PSIZEOF(CollideEntity);
|
||||||
|
PSIZEOF(ScriptedEntity);
|
||||||
|
PSIZEOF(Avatar);
|
||||||
|
PSIZEOF(ParticleEffect);
|
||||||
|
PSIZEOF(Emitter);
|
||||||
|
PSIZEOF(Particle);
|
||||||
|
#undef PSIZEOF
|
||||||
|
|
||||||
core->settings.runInBackground = true;
|
core->settings.runInBackground = true;
|
||||||
|
|
||||||
#ifdef BBGE_BUILD_WINDOWS
|
|
||||||
/*
|
|
||||||
const std::string welcomeMessage = \
|
|
||||||
"Thank you for reviewing Aquaria!\n\
|
|
||||||
This build is not yet final, and as such there are a couple things lacking. They include:\n\
|
|
||||||
* documentation (not 100% complete)\n\
|
|
||||||
* mod editing (some known issues)\n\
|
|
||||||
* gamepad support/config (some known issues)\n\
|
|
||||||
\nFor the best experience, we recommend playing using the mouse or mouse and keyboard.\n\
|
|
||||||
Have fun!";
|
|
||||||
|
|
||||||
if (!welcomeMessage.empty())
|
|
||||||
{
|
|
||||||
MessageBox(core->hWnd, welcomeMessage.c_str(), "Welcome to Aquaria", MB_OK);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
#endif
|
|
||||||
|
|
||||||
disableMiniMapOnNoInput = true;
|
disableMiniMapOnNoInput = true;
|
||||||
fpsText = 0;
|
fpsText = 0;
|
||||||
cmDebug = 0;
|
cmDebug = 0;
|
||||||
|
|
|
@ -408,7 +408,6 @@ static void compile_time_assertions()
|
||||||
compile_assert(oo(Path) == oo(Quad));
|
compile_assert(oo(Path) == oo(Quad));
|
||||||
compile_assert(oo(Path) == oo(Avatar));
|
compile_assert(oo(Path) == oo(Avatar));
|
||||||
compile_assert(oo(Path) == oo(BaseText));
|
compile_assert(oo(Path) == oo(BaseText));
|
||||||
compile_assert(oo(Path) == oo(PauseQuad));
|
|
||||||
compile_assert(oo(Path) == oo(ParticleEffect));
|
compile_assert(oo(Path) == oo(ParticleEffect));
|
||||||
#undef oo
|
#undef oo
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue