aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-08-09 20:01:32 +1000
committerDavid Walter Seikel2014-08-09 20:01:32 +1000
commit4c5e5b79ce4ebfc4ba45bb3d7af86f0cd1f711ed (patch)
tree8111781732874d961aa14ae2c76a2ed29996d49f /src
parentAdd particle and vehicle constants. (diff)
downloadSledjHamr-4c5e5b79ce4ebfc4ba45bb3d7af86f0cd1f711ed.zip
SledjHamr-4c5e5b79ce4ebfc4ba45bb3d7af86f0cd1f711ed.tar.gz
SledjHamr-4c5e5b79ce4ebfc4ba45bb3d7af86f0cd1f711ed.tar.bz2
SledjHamr-4c5e5b79ce4ebfc4ba45bb3d7af86f0cd1f711ed.tar.xz
Mention compiler speed even if the last one failed.
Diffstat (limited to 'src')
-rw-r--r--src/love/love.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/love/love.c b/src/love/love.c
index b9769a1..e18afe7 100644
--- a/src/love/love.c
+++ b/src/love/love.c
@@ -267,7 +267,20 @@ static Eina_Bool _dataLuaSL(void *data, int type, Ecore_Con_Event_Server_Data *e
267 me->bugs++; 267 me->bugs++;
268 } 268 }
269 else if (0 == strcmp(command, "compiled(false)")) 269 else if (0 == strcmp(command, "compiled(false)"))
270 {
270 PE("The compile of %s failed!", SID); 271 PE("The compile of %s failed!", SID);
272 if (me)
273 {
274 struct timeval now;
275
276 me->compileTime = timeDiff(&now, &me->startTime);
277 compiledCount++;
278 compileTime += me->compileTime;
279//// PD("Average compile speed is %f scripts per second", compiledCount / compileTime);
280 if (compiledCount == scriptCount)
281 PD("TOTAL compile speed is %f scripts per second", compiledCount / timeDiff(&now, &startTime));
282 }
283 }
271 else if (0 == strcmp(command, "compiled(true)")) 284 else if (0 == strcmp(command, "compiled(true)"))
272 { 285 {
273 if (me) 286 if (me)