Correct. The black run button just starts the engine with the name of your script and the command line options you've set up.

When your game consumes a different amount of memory dependent on in which folder you start it, the first thing I'd do is comparing the files in the publish and development folders.