Depreciation from Pixi.JS in Terrax Lighting Causes Eventual Lag

This is displayed in the console every time a new screen is loaded, whether map or menu.


Deprecation Warning: DisplayObjectContainer has been shortened to Container, please use Container from now on.


Here is the code referenced at line 24821 of pixi.js



    // Handle IE < 10 and Safari < 6
    if (typeof stack === 'undefined') {
        console.warn('Deprecation Warning: ', msg);
    } else {
        // chop off the stack trace which includes pixi.js internal calls
        stack = stack.split('\n').splice(3).join('\n');


        if (console.groupCollapsed) {
            console.groupCollapsed('%cDeprecation Warning: %c%s', 'color:#614108;background:#fffbe6', 'font-weight:normal;color:#614108;background:#fffbe6', msg);
            console.warn(stack);
            console.groupEnd();
        } else {
            console.warn('Deprecation Warning: ', msg);
            console.warn(stack);
        }


This problem disappears without Terrax Lighting on, and it's clearly being used by that script.

Thank you for any help solving this as my game really relies on Terrax and it's unplayable with this problem.
Do you have the newest version?
If you have lag even if you close the console, then this is not the cause of it.
No, it's not lag caused by closing the console. Every time the game switches maps or opens a menu or loads a new screen, it displays the Depreciation message and referenced Pixi.JS which is used by Terrax Lighting. The more times the depreciation message is shown, the more it slows down, until it's not playable. I realized it while opening and closing the menu a bunch of times to look in the debug menu while testing.


If I turn Terrax off, it works normally, with no messages in the console.


The version I'm using is 1.4.0, which is the latest.


You can observe the problem starting here in my Let's Make a Game video: (should start at 26:20 time)










EDIT: I later cut out the code for the Skill Sequencer that goes to the ABS... and it took out that console message, but the Depreciation in pixi.js is unrelated.
If you have lag even if you close the console, then this is not the cause of it.



I originally misread this. I tried closing the console and testing if the slowdown/downright stopping occurs after multiple map/menu changes. it still does.
Terrax is apparently already working on the solution to this problem. Thanks though guys.
I was noticing the same thing in my game and I've tried everything to solve what was causing it... the only errors I've been getting was the same as you from the lighting plugin. I went through and updated all of my plugins and made sure everything was at its latest version.


When testing my game it would go from constant 62 fps to changing rapidly between 55-62 after about 15 minutes of testing, and then about every 15 minutes past that. It would always go back to normal after a battle occurred, but if you were in a location with no battles it would just keep lasting until you left the map you were currently on. 
Terrax told me this:

Yes, it seems the pixi library got updated in the last RPGMaker patch, i'm still looking for a solution to the problem, the fix is easy enough, but then the plugin wil no longer work on any game that was created before the update..


Thanks for the notice.. working on a solution  🙂



So, yeah. I've just turned it off and will be patiently waiting for his next version.
Luckily is isn't a game breaking lag for me, so I can continue testing with it on and just try to ignore the lag when it does happen. Hopefully Terrax can find the solution quickly and it will be as easy as he says it will be 😀
Luckily is isn't a game breaking lag for me, so I can continue testing with it on and just try to ignore the lag when it does happen. Hopefully Terrax can find the solution quickly and it will be as easy as he says it will be 😀



It's breaking only if I enter the menu a lot, to access debug. The changing of in and out of the menu, which I regularly do to check the variables and switches are in the right places. Also, I feel no need to continue to build my game to rely on Terrax while it's not working. I know that he'll come through. But, for now I'm just leaving it off because the messages in my console bother me, but you're right... it takes time and lots of map changes for the effect to become disruptive. But... it eventually does do that, the longer you were to play it. And, it probably would be game breaking if you were a player and not just developing.

But like... yeah, I evented a system for torches that radiusgrow on the light and trigger a timer than when they run out, shut the torches back off the radiusgrow it back down, so you have to supply on torches or your radius will shrink down to like 100 and you basically can't see anything. It's really cool and I don't want to cut it.


But I'm confident he'll come out with something. 


I just hate seeing the message in my console and don't need it on for testing right now.
Is there still no fix? I am getting alot of Depreciation. Mainly from OrangeOverlays and his plugins. As well as MBS Map Zoom? can someone point me in the direction to new plugins? cause it has been a very long time and there still is no patch note. This is breaking my game so please help.

Original thread: https://forums.rpgmakerweb.com/threads/depreciation-from-pixi-js-in-terrax-lighting-causes-eventual-lag.71230/