Changeset 1822
- Timestamp:
- Aug 27, 2012, 2:16:46 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build/vs2010/Lol.Core.Rules.props
r1712 r1822 25 25 <RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDebugDLL</RuntimeLibrary> 26 26 <RuntimeLibrary Condition="'$(Platform)'=='Xbox 360'">MultiThreadedDebug</RuntimeLibrary> 27 <PreprocessorDefinitions>_DEBUG; %(PreprocessorDefinitions)</PreprocessorDefinitions>27 <PreprocessorDefinitions>_DEBUG;LOL_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 28 28 </ClCompile> 29 29 <ClCompile Condition="'$(Configuration)'=='Release'"> … … 39 39 <IntrinsicFunctions>true</IntrinsicFunctions> 40 40 <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> 41 <PreprocessorDefinitions>NDEBUG; %(PreprocessorDefinitions)</PreprocessorDefinitions>41 <PreprocessorDefinitions>NDEBUG;LOL_RELEASE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 42 42 </ClCompile> 43 43 -
trunk/build/vs2010/Lol.Core.Vars.props
r1712 r1822 51 51 <GlLibs Condition="'$(Platform)'=='Win32'">$(GlewDir)\lib\i686-w64-mingw32</GlLibs> 52 52 <GlLibs Condition="'$(Platform)'=='x64'">$(GlewDir)\lib\x86_64-w64-mingw32</GlLibs> 53 <GlLibs Condition="'$(Platform)'=='PS3'">$(SCE_PS3_ROOT)\target\ppu\lib\PSGL\RSX\opt</GlLibs> 53 <GlLibs Condition="'$(Platform)|$(Configuration)'=='PS3|Debug'">$(SCE_PS3_ROOT)\target\ppu\lib\PSGL\RSX\debug</GlLibs> 54 <GlLibs Condition="'$(Platform)|$(Configuration)'=='PS3|Release'">$(SCE_PS3_ROOT)\target\ppu\lib\PSGL\RSX\opt</GlLibs> 54 55 <GlDeps Condition="'$(Platform)'=='Win32'">opengl32.lib;glew32.lib</GlDeps> 55 56 <GlDeps Condition="'$(Platform)'=='x64'">opengl32.lib;glew32.lib</GlDeps> -
trunk/src/ticker.cpp
r1818 r1822 34 34 nentities(0), 35 35 frame(0), recording(0), deltatime(0), bias(0), fps(0), 36 #if LOL_DEBUG 37 keepalive(0), 38 #endif 36 39 quit(0), quitframe(0), quitdelay(20), panic(0) 37 40 { … … 71 74 Timer timer; 72 75 float deltatime, bias, fps; 76 #if LOL_DEBUG 77 float keepalive; 78 #endif 73 79 74 80 /* Background threads */ … … 155 161 void *TickerData::GameThreadMain(void * /* p */) 156 162 { 163 #if LOL_DEBUG 164 Log::Info("ticker game thread initialised\n"); 165 #endif 166 157 167 for (;;) 158 168 { … … 200 210 data->bias = 0.f; 201 211 } 212 213 #if LOL_DEBUG 214 data->keepalive += data->deltatime; 215 if (data->keepalive > 10.f) 216 { 217 Log::Info("ticker keepalive: tick!\n"); 218 data->keepalive = 0.f; 219 } 220 #endif 202 221 203 222 /* If shutdown is stuck, kick the first entity we meet and see … … 304 323 data->drawtick.Push(0); 305 324 325 #if LOL_DEBUG 326 Log::Info("ticker game thread terminated\n"); 327 #endif 328 306 329 return NULL; 307 330 }
Note: See TracChangeset
for help on using the changeset viewer.