Bug Performance degrades when the paintOpacity of Bitmap is not 255.[RMMZ open_beta]

qiujiu

Veteran
Veteran
Joined
Oct 3, 2020
Messages
39
Reaction score
48
First Language
chinese
Primarily Uses
RMMV
RMMZ in open_beta updates the nwjs from 0.48.4 to 0.69.1.

But performance degrades when the globalAlpha of CanvasRenderingContext2D is not 1.
It means performance degrades when the paintOpacity of Bitmap is not 255.

For example:

(($ = {}) => { $.Spriteset_Map_createLowerLayer = Spriteset_Map.prototype.createLowerLayer; Spriteset_Map.prototype.createLowerLayer = function() { $.Spriteset_Map_createLowerLayer.apply(this,arguments); this.addChild(this._testSprite = new Sprite(new Bitmap(Graphics.width,Graphics.height))); this._testSprite.bitmap.paintOpacity = 200; this._testSprite.update = function() { this.bitmap.clear(); for (let i=0;i<30;i++) { this.bitmap.fillRect(0,0,100,100,"#ff0000"); } } }; })();

If the project runs with the code above in the nwjs in 0.69.1, the frame rate of the game will drop seriously.
But in the old 0.48.4 version of nwjs or the latest 0.70.1 version of nwjs , it works well without FPS dropping.
 

Latest Threads

Latest Posts

Latest Profile Posts

oneOfUs.jpg
Streaming more Poppet Quest game even in about 12 minutes.
Some dog owners really impress me. I'm pushing 2-3 metric tons of garbage containers that destroy everything they hit. What do you think is going to happen to your tiny dog when I run it over? And why are you crossing my path to argue with me? Have you never been hit by 200kgs of garbage?

Lesson for you folks. Never mess with an angry garbage container. Or its driver.
I didn't dispose of a file properly and now my whole game won't start: I get a script error in the Scene Manager stage of game launch. What to do? Transfer it all to a new project? That's going to be tedious. Fortunately I am only nine workdays into it.
>< IMGUR!!!! *clenches fist*
I swear it looked better in my head. But this ain't bad. Had to experiment to make the characters stand out and not blend too much with the background.

Also, before anyone say this. Yes, she is holding a winrar.

Forum statistics

Threads
131,680
Messages
1,222,156
Members
173,424
Latest member
filfes
Top