Yeah, I was going to say that too Dar13.
Speed-Improvement tips:
- Refrain from making big areas
- Place a segment behind a door, even if it is static
- Try to have as few dynamic objects as possible
- Static objects don't need physics calculated, change their 'physics on' property to 'no'.
- All dynamic objects can be spawned. Spawn enemies, crates, barrels, everything.
- Turning off physics on enemies is also a good idea too.
- Also, as general level design tip; make use of as much as the space as possible. Don't just let the player walk through a courtyard, let them explore the rooms surrounding it and spend more time in the area.
Some of the lag issues can't be solved, like the portals problem that renders unnecessary parts of your map. However, these tips will help keep the frame-rate exceptable even in fairly detailed maps.
AE