(SOLVED) Best performanceXpracticality map making

Ok, so here is a question for my fellow Makers. What do you you think is best: making a large map with a lot of small mini maps in it, setting "teleports" between them or smaller maps (separed) with said "teleports".

I'm making a game and setting up a large map with smaller areas within it is easyer to organize (imo). But it increases the loading time.

The other option is to create several maps pages, wich saves computer processing, but is more cumbersome to create.

I'm finding the first option a little less time consuming.

Nevertheless, I'm seeking opinions of more expererienced developers.

Thanks for charing.
it depends on a lot of things that you didn't mention in your post.
for example the load times for large maps should be neglegtable unless you use parallax mapping, and with parallax mapping there are other size limits that make most people use as small maps as they can.

additionally, I don't exactly understand what you mean by "smaller maps inside a bigger map" as a map is a map for the computer.

perhaps you can give a more detailed description or a mockup picture of what you're doing?
additionally, I don't exactly understand what you mean by "smaller maps inside a bigger map" as a map is a map for the computer.
I interpret it as put all interior maps into one big map instead of individual map files.
For outside areas or dungeons, I use pretty large maps. 100-150 on both x and y.
A very few larger in one direction or the other.
These are typically areas that don't have a lot of transitions or have transitions to "inside".
Then my non-dungeon interiors are mostly large maps with lots of separate areas.

One of my towns, for example, is pretty large...something like 125x125.
It has lots of transitions (houses, shops, etc) that go indoors. They all go to different
places on the same interior map. One thing to watch out for when using multi-purpose
interior maps are events that can affect things globally. Like lighting systems. Or on-transfer
common events - they don't always get run when you're going from place to place
on the same map. Or background sounds. Don't want the blacksmith and Inn to have
the same BGS. So, you need to take that into account...

I don't do this for performance reasons, I'm using tile-mapping, not parallax mapping.
I do this because the game has fancy plans (and pants to match!), and I don't want to hit
the 2000 map limit. Which, when I think about it, is pretty insane, but..you know...just in case.
yes, that is a valid way to handle interior maps.

however you don't need to force every interior map on a large town into the same map, sometimes it might make sense to keep a theme to which interior goes where and have two or three interior maps.
remember that you can have only one tileset per map, but different maps can have different tilesets - for example one map for all interiors of homes and one map for all interiors of shops, crafting places and so on. That would allow you to organise things better.

Or on-transfer
common events - they don't always get run when you're going from place to place
on the same map.
that sounds as if you're doing something wrong, you might invrstigate the way common events work.

called common events (trigger = none) will always run when called and return to the event that called them to continue that event.

automatic common events (trigger = parallel or autorun) will always loop and always run as long as the switch is active. On transfer to a different map they will restart from zero but continue running from there. The only way to stop such an event is to disable its switch.

However, you should NEVER call a common event that is set to automatic (either autotrigger). That will mess up the engine and control of the common event because you are not supposed to mix the two different methods of starting common events.
I'm using a plugin that calls common events on map-transfer. However, when you transfer within the same map, that plugin doesn't read that as a transfer.

Eh...now that I think about it - it's on Map Load. So, be wary of the difference between map load and map transfer....
I interpret it as put all interior maps into one big map instead of individual map files.
Yep, something like that.

Let me elaborate, @Andar :

I openned this post because I'm currently making a huge forest map (256x256) because I didn't want a lot of transfers in the map (to make it more fluid for players to walk). The said forest have A LOT of events (249 and counting). I usually develop in a hi-end pc, but sometimes use my work notebook for small things (most dialoge making). And I notice that in the notebook I can't even playtest due to the insane lagging.

That map took a lot of work and I don't want to remake it, but the lag made me worry about players with lower setups.

PS: I'm not using parallax.
And I notice that in the notebook I can't even playtest due to the insane lagging.
Thanks for the better explnation, it helps a lot - especially because I think you're looking in the wrong direction to find the cause of the lag.

The map data itself is small enough to not have anything to do with the lag, the problems are the events alone - but not exactly in the way you think.

There are different types of events, and even older notebooks should have no problems with several hundred events as long as they are either decorative (not doing anything) or action-triggered (reacting to the player action only).
What really causes lag are parallel process events and to a smaller degree autonomous movement and some plugins.
By default autonomous movement stops outside the screen, so unless you used a plugin to change that behaviour it can also discounted for lag.

That leaves parallel processes - and one single badly written parallel process can lag even the best top-line computer to hell if the code is just bad enough, but there should be no problem handling a dozen optimized parallel processes.

From your description it is most likely that you have a borderline parallel process on the map - a process that requires a lot of processing power and only the big computer has the resources to handle it. It could be just too many optimized parallels, but that is unlikely unless the laptop is really low on memory and CPU.

so you should count and check on the parallel processes you have on that map, especially if you have accidentally set an event without content to parallel (which should never be done).
If you don't know how to optimize the more complex events, you can post screenshots of them and ask for help there.
Thanks for the better explnation, it helps a lot - especially because I think you're looking in the wrong direction to find the cause of the lag.

The map data itself is small enough to not have anything to do with the lag, the problems are the events alone - but not exactly in the way you think.

There are different types of events, and even older notebooks should have no problems with several hundred events as long as they are either decorative (not doing anything) or action-triggered (reacting to the player action only).
What really causes lag are parallel process events and to a smaller degree autonomous movement and some plugins.
By default autonomous movement stops outside the screen, so unless you used a plugin to change that behaviour it can also discounted for lag.

That leaves parallel processes - and one single badly written parallel process can lag even the best top-line computer to hell if the code is just bad enough, but there should be no problem handling a dozen optimized parallel processes.

From your description it is most likely that you have a borderline parallel process on the map - a process that requires a lot of processing power and only the big computer has the resources to handle it. It could be just too many optimized parallels, but that is unlikely unless the laptop is really low on memory and CPU.

so you should count and check on the parallel processes you have on that map, especially if you have accidentally set an event without content to parallel (which should never be done).
If you don't know how to optimize the more complex events, you can post screenshots of them and ask for help there.

Yeah, that's not that. I checked every single event on the map and they are all set as "player touch" or "action button".

Since I'm not using parallax, I thought for a moment that some of the events I'm using for "light effects" may be causing it, but I deleted all of then as a test and the lag continued.

I have a bunch of events with tilesets grafics (because I'll make then dissapear revealing a secret passage), perhaps they are the issue?

Other thing that I though about is the visustella encounter effect plugin. I'm using a lot of battle events in the area. I don't know if they could count as "parallel process" in this case.

Thank for your attention with this post!
I checked every single event on the map and they are all set as "player touch" or "action button".
what about the common events? they also run on the map and can be parallel processes.
and some people accidentally change unused common events to parallel, so you need to check every one not only the named CEs.

I'm using a lot of battle events in the area.
troop events run on the battlescreen and can't be parallels as troop events have no parallel option.
if you're talking about map events that trigger battles, that depends on what their triggers are, same as every other map event.
what about the common events? they also run on the map and can be parallel processes.
and some people accidentally change unused common events to parallel, so you need to check every one not only the named CEs.


troop events run on the battlescreen and can't be parallels as troop events have no parallel option.
if you're talking about map events that trigger battles, that depends on what their triggers are, same as every other map event.
No common events, either. I sincerelly would discard the notebook configuration (intel i5, 8 ram, no gpu) being an issue, but in my PC, the loading time of the map increases 2-3 seconds, being the reason why I thought it might be some map issue.

I don't want to take more of your time whith this matter, you alredy helped A LOT. And for that, I'm thankfull.

I'll close the post for now and, eventually, if I find the reason, I'll come back and let you know.

Thank you so much!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-best-performancexpracticality-map-making.133543/