ID:270294
 
Well I'v bin working on sabre XI for a long time..... finnaly got it ready for alpha with it's 10 minute compiling(my other games that are bigger take like 25 seconds) and now I relized that when I host it for like... 2 mins after the 2 mins the host/player gets major lag..... I have no idea how to stop this but I think my game is on debug mode LoL so how do I turn it off?
(The empty switch statement just takes me to my Sabre XI.dme file to nothing and I cant find the problem so ignore it)
------------------------------------------------------
loading Sabre XI.dme
Sabre XI.dme:32::warning: empty switch statement
loading World.dmp
saving Sabre XI.dmb (DEBUG mode)

Sabre XI.dmb - 0 errors, 1 warning (double-click on an error to jump to it)
updating World.dmp...done
-------------------------------------------------------
You're probably ending a file with an empty switch. Check all files, and check their bottoms for any if procs.
In response to Mysame
You think the empty switch statement is the lag/compile lag?.... Else where I dont need to find it... I just need to find a way to stop host/players from lagging (none of my games lag when I host) and maybe the game to compile faster than 10 mins for not a big game
Debug mode won't cause severe slowdown.

Compile time should be related to your CPU - A compile time over a minute might indicate a problem, though. My project of 25.000 lines split up into about 40 files in 8 different directories took roughly 15 seconds to compile, at most.

I'd start looking at optimizing your game, first off. Use the profiler to check which procedures take a long time.
In response to Flame Guardian
Well my game is preety little yet it takes 1-10 mins to compile (somtimes slower to compile for errors) I'm going to make a new envirement and import it their to check what'l happen first.... if it doesent work i'll try your idea
In response to Alathon
Alathon wrote:
Compile time should be related to your CPU - A compile time over a minute might indicate a problem, though. My project of 25.000 lines split up into about 40 files in 8 different directories took roughly 15 seconds to compile, at most.

Compile time can also be related to map size. If you have huge maps being placed into the game at compile time, compiling will take longer.