aboutsummaryrefslogtreecommitdiffstats
path: root/Lua/src/base
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-05-16 13:04:16 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-05-16 13:04:16 +0000
commit0612fdf8fd4badc25e4f1faab24f73c93b690389 (patch)
tree3265386147c35cd03f2dc521d82fe16883517cd7 /Lua/src/base
parent50b7732821d5f44ce6a1df17c1e7c5a3f639fc5e (diff)
downloadusdx-0612fdf8fd4badc25e4f1faab24f73c93b690389.tar.gz
usdx-0612fdf8fd4badc25e4f1faab24f73c93b690389.tar.xz
usdx-0612fdf8fd4badc25e4f1faab24f73c93b690389.zip
fixed benchmark stuff
deleted some old commented lines git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1731 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Lua/src/base')
-rw-r--r--Lua/src/base/UMain.pas32
1 files changed, 18 insertions, 14 deletions
diff --git a/Lua/src/base/UMain.pas b/Lua/src/base/UMain.pas
index a1c77900..7a9c6ed2 100644
--- a/Lua/src/base/UMain.pas
+++ b/Lua/src/base/UMain.pas
@@ -406,32 +406,36 @@ begin
luaopen_TextGL(Lua); // TextGL (Lua)
lua_pop(Lua, 1); // remove table from stack
luaopen_Texture(Lua); // Texture (Lua)
- lua_pop(Lua, 1); // remove table from stack }
+ lua_pop(Lua, 1); // remove table from stack
Log.BenchmarkEnd(1);
- Log.LogBenchmark('Initializing Lua', 1);
-
- Log.BenchmarkEnd(0);
- Log.LogBenchmark('Loading Time', 0);
+ Log.LogBenchmark('Initializing Lua', 1); }
- Log.LogStatus('Creating Core', 'Initialization');
- {Core := TCore.Create(
- USDXShortVersionStr,
- MakeVersion(USDX_VERSION_MAJOR,
- USDX_VERSION_MINOR,
- USDX_VERSION_RELEASE,
- chr(0))
- ); }
+ Log.BenchmarkStart(1);
Party := TPartyGame.Create;
+ Log.BenchmarkEnd(1);
+ Log.LogBenchmark('Initializing Party Manager', 1);
+ Log.BenchmarkStart(1);
LuaCore.RegisterModule('Log', ULuaLog_Lib_f);
LuaCore.RegisterModule('Gl', ULuaGl_Lib_f);
LuaCore.RegisterModule('TextGl', ULuaTextGl_Lib_f);
LuaCore.RegisterModule('Party', ULuaParty_Lib_f);
+ Log.BenchmarkEnd(1);
+ Log.LogBenchmark('Initializing LuaCore', 1);
+
+ Log.BenchmarkStart(1);
LuaCore.LoadPlugins;
- LuaCore.DumpPlugins;
+ Log.BenchmarkEnd(1);
+ Log.LogBenchmark('Loading Lua Plugins', 1);
+
+ LuaCore.DumpPlugins;
+
+
+ Log.BenchmarkEnd(0);
+ Log.LogBenchmark('Loading Time', 0);
//------------------------------