*legal double post*
@Oscar92player It appears to be your lucky day.
😛 I noticed that the new pixi-tilemap version fixes an issue I was having with it. Basically it wouldn't render the tilemap for a certain amount of frames when the map was entered. I had this happen on vanilla MV maps and on UM7 so I knew it had to be something within either PIXI or pixi-tilemap. Anyway, since the new version didn't have that glitch, I added it into my own game and in the process I figured out the changes that are required for it to work with the new version. So I added some compatibility code in the official release as well since it wasn't a really big change.
Thanks for the update!
I've tried the new version of the plugin, but for some reason, my map appears in black. There are no code errors on the console, either, just the message that says:
Code:
Ultra Mode 7: Detected a newer 'pixi-tilemap' implementation, enabling compatibility code.
An image from the sample project:
No other plugins installed on the project, since I'm using a sample project for testing purposes. Maybe I'm missing something? :/
UPDATE: Well, I found that the screen goes black because I some part of the code I needed to add to the "main.js" inside the 'js' folder:
Code:
PIXI.tilemap.Constant.boundCountPerBuffer = 1;
PIXI.tilemap.Constant.maxTextures = 16;
This part of code is related to some of the lines that can be found on the new "pixi-tilemap.js" version (lines 202 to 205):
Code:
maxTextures: 4,
bufferSize: 2048,
boundSize: 1024,
boundCountPerBuffer: 4,
This is directly related to the fix of
this thread that needed to use the "new pixi-tilemap.js" version. It needs that part of the code to prevent the Change Tileset command to cause framedrops and lag on maps that use that command on parallel process events.
If I remove the added code from tthe "main.js", the map will work just fine, but the framedrops will be there because of the Change Tileset command on the parallel process event.