How to efficiently manage a large number of bitmap objects——tiles

Hello, creators, I am a Chinese peer game developer. My English is not good. The following machine-translated content may have some grammatical errors. I hope you can understand.

I'm working on a new map loading mechanism. If it is completed, it can theoretically achieve universal multi-layer traffic. Of course, this requires writing an external map tool and designing a new map storage structure, but these are not problems.

The problem I have now is that multi-level map blocks mean more bitmap loading and refreshing, which seriously affects the frame rate.

I want to save map blocks, so that the covered map blocks are not allocated bitmaps, but only stored in the form of data. When the covering relationship changes, a small number of map blocks will be refreshed.

In fact, this method is not ideal in terms of operation. For visual effects, I need to keep the hollowed-out map blocks. If there are too many map blocks in one coordinate, the problem will return to the original state - too many bitmaps are loaded in the same coordinate.

I tried to replace it with mkxp. But after reading the project carefully, I found that he still retained rgss as the bottom layer, and some of the progress he made did not have much positive effect in my plan.

Do you have any ideas for more efficient management of tile objects? Please help me.

ps:

I did the loading and unloading of the visual range edge.

I predict that 16 * 32 tiles are required in a screen, which may be less, but this number is the most accurate.
--------------------------------------------------------------------------------------------------------------

map layers principle:

1.png


Think of it as a 3D grid model
Manage building objects and tree objects
Sprite-0002.png


Mask under the same coordinate
release the tiles completely covered
Sprite-0003.png
Moved to: RGSS Script Requests

Do you already have a script to do the loading/storage, and just want help to make it more efficient? If so, can you share that? Perhaps a demo project with a single map that someone can work with might be helpful.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-efficiently-manage-a-large-number-of-bitmap-objects-tiles.154556/