Build and Run speed editor vs bob

I’m setting up vscode and found out that doing build & run from the editor is much faster than through bob that I need to use for vscode.
What is happening behind the scene in the editor that makes it faster? Any way to reproduce it?

How much slower? There will be some overhead to call out from Vscode to Java and to start Bob. The editor replicates the build steps to compile Defold resource files so it doesn’t need Bob at all.

Right. From what I can gather the difference is in the building task that in the editor, once the initial engine build is done, looks almost instantaneous.

I’ve recorded a video to show the difference. On vscode I’ve build twice to be sure that is not re-building the engine.

What are your arguments to bob.jar?

One difference is that the editor does most of the building when you open the project.
That’s why you don’t notice it that much.

I’m using this guide as a starting point. For now it’s the same launch.json and shell script

In your video, the first time you build with bob, it will build all the changed assets (these are then cached). That’s what takes time.

The second time, it will read the project, notice that one file has changed, and rebuild that.

The reading of the project is the major time there, and it is what is “hidden” in the editor, when you open the project in the editor.

1 Like

Right, makes sense!