From 8d444a3327c80bfce454f5ff3b2e7ac83675942a Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 28 Oct 2013 04:29:46 +0100 Subject: [PATCH] Get rid of a few unnecessary continueity resets. Continuity resets load a bunch of small files from disk; this speeds up the startup precess very slightly if the files are not in the OS's file cache yet. --- Aquaria/BitBlotLogo.cpp | 2 +- Aquaria/DSQ.cpp | 2 +- Aquaria/Mod.cpp | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Aquaria/BitBlotLogo.cpp b/Aquaria/BitBlotLogo.cpp index 132b49a..6747d0f 100644 --- a/Aquaria/BitBlotLogo.cpp +++ b/Aquaria/BitBlotLogo.cpp @@ -78,7 +78,7 @@ void BitBlotLogo::skipLogo() void BitBlotLogo::getOut() { - dsq->continuity.reset(); + //dsq->continuity.reset(); #ifdef AQUARIA_DEMO dsq->title(); diff --git a/Aquaria/DSQ.cpp b/Aquaria/DSQ.cpp index 28d8117..6d53b0a 100644 --- a/Aquaria/DSQ.cpp +++ b/Aquaria/DSQ.cpp @@ -1537,7 +1537,7 @@ This build is not yet final, and as such there are a couple things lacking. They setMousePosition(core->center); - dsq->continuity.reset(); + //dsq->continuity.reset(); loadBit(LOAD_FINISHED); diff --git a/Aquaria/Mod.cpp b/Aquaria/Mod.cpp index d646000..cf21efd 100644 --- a/Aquaria/Mod.cpp +++ b/Aquaria/Mod.cpp @@ -247,17 +247,13 @@ void Mod::applyStart() if (!dsq->runScript(scriptPath, "init")) { debugLog("MOD: runscript failed"); - dsq->continuity.reset(); setActive(false); - dsq->continuity.reset(); dsq->title(); } if (isActive() && dsq->game->sceneToLoad.empty()) { debugLog("MOD: no scene loaded in mod-init"); - dsq->continuity.reset(); setActive(false); - dsq->continuity.reset(); dsq->title(); } else if (isActive())