Page 1 of 1

Map editor loading

Posted: Sun Jun 28, 2020 9:59 am
by Shock
This happens when you use some tiles/objects etc in map editor, so the main trouble is that when you click on some of the objects, it is loading for some time and then you can edit that object you have chosen, it is really annoying to wait while making a map, maybe there's an solve of the problem?

Re: Map editor loading

Posted: Sun Jun 28, 2020 5:53 pm
by Gurt
Can you provide more feedback other than it takes some time when selecting some objects?
The more objects you select (100+) the longer time it can take to calculate any common properties to show in the properties window. Preparing the properties window also take some time. This only takes a few milliseconds and shouldn't be a problem.
The map editor also needs to load before it can be used at all.

What you might experience is the list images populating the tree-list once they have finished loaded in the background after starting the editor. Once the tree-list rebuilds itself it can freeze the editor for about 1-2 seconds. This is done once after starting the map editor from the main menu. If you don't care about the list images you can disable them in the config.ini by changing EDITOR_DISABLE_LIST_IMAGES to 0.

Re: Map editor loading

Posted: Sun Jun 28, 2020 9:55 pm
by Shock
Sometimes it works well without any lags/loadings, but when it happens - i cannot find the reason. Well if it happens, just when i use any object or click on it, i can see that editor is loading as it starts, i don't even choose multiply objects. It loads a bit faster when i click on TargetObjectJoint for example. But other objects, triggers are loading for 2 seconds or sometimes even 3. Same thing happens when you place them somewhere. The map also takes a little longer to load than usual even if it's empty. Now it works well, but not always. Player with nickname "MyXa" had same trouble and he says that these pre-loads suffered him for a long time. So, in common it happens when you do basic actions: Clicking the object, deleting the object, placing the object
Also... Once i just deleted my list images and nothing changed even when map editor reloaded well.
If i catch the frame, i'll show how it works.

Re: Map editor loading

Posted: Sun Jun 28, 2020 10:19 pm
by Gurt
The map editor also have a feature that, when enabled, all objects using your selected tiles will be marked. This allows you to see triggers using your selected objects. This can take time to calculate and nothing you want to have active at all times. It's a visual aid in the editor when selecting tiles. I think you toggle it with CAPS LOCK. I think that's what you're experience. The more stuff in your level the longer it will take to select stuff.

Re: Map editor loading

Posted: Sun Jun 28, 2020 10:38 pm
by Shock
I think i haven't used CAPS CLOCK before, thank you, now i know :)
Well i hope once i'll show what actual trouble is.