How can I execute Lightmass by itself?

Since I’m thinking about optimizing the lighting process I need to be able to execute Lightmass by itself without Swarm and without the editor if possible. Is there any way to do that? I need it for profiling.

Thanks.

Lightmass pulls its task descriptions from the local swarm agent so it can’t be run standalone. However you can enter ‘lightmassdebug’ into the console in the editor, and then start a lighting build. It will now wait for you to launch the lightmass executable, which can be useful for debugging or profiling.