# Tips for modifying sources

### Adjust provinces smoothing.

The map editor automatically applies the distance field method to improve the quality of the provinces and avoid the staircase effect. If the provincial boundaries are too smooth, then you can change the value in the file libs/drawpixels/src/drawpixels.cpp\
Below is an example of changing the blur strength from 2 to 1. You can adjust this as you need. Search for the blur function (search for "static uint8\_t \* blur") and find below:\
`int box = 2; // set 1 to have a 3x3 box`\
Change the value 2 to 1 (was `int box = 2;`, change to `int box = 1;)`

### Defold lags when working with the map editor.

Solution: open the main/main.script file and change the line `IMAGE_DATA_PATH = ""` with, for example, disk D `IMAGE_DATA_PATH = "D:/"` The main thing is that a folder outside the project is specified. Also delete the image\_data and exported\_map files in your project folder (save if you need them. This is the map image data and the exported map)

After changing IMAGE\_DATA\_PATH, the map data will not be saved to the project folder, but to the specified path. Fewer files in the project folder - fewer files are processed by Defold


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.denismakhortov.com/guides/map-editor/map-editor-tips.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
