Need help on proceduraly creating levels


I hope this is the right place to ask:
for the Dungeon Crawler Game I am currently working on I want to randomly generate the Level. I allready have an idea how I want to approach the generation process itself, but need some input on how to do certain stuff (perefered in C++):

  1. What is the best way to place large amount of static meshes so it does not affect the performance ?
  2. How do I generate a NavMesh for my generated Level?
  3. How do I handle lighting? Is there a way to build lighting at runtime?
  4. Is there a good way to create prefabs in UE4? For example, I want to precreate a full room, that contains a Quest NPC. The room then is intergrated in to the randomly generated dungeon. A room can consist of multiple static meshes, but also Blueprints.

You probably want to check out this discussion:!

Or this one:

Thanks. Gonna chekc that out asap