- Joined
- Jan 8, 2014
- Messages
- 1,055
- Reaction score
- 785
- First Language
- English
- Primarily Uses
- RMMV
I was wondering if theirs any fix or if anyones figured a way to use PIXI.Graphics. For those that don't know, if you create a PIXI.Graphic it will mess up the windows rendering
Example:
I've found a few fixes myself. You can set "cacheAsBitmap" to true. But for my current plugin I don't want to do this because it reshapes multiple polygons every step. When I cache them as bitmaps, I'll have an fps of like 20-30 when moving. Without caching it can maintain 60.
Another fix, which is probably a really horrible idea. Is to reload the Graphics._renderer whenever a window opens, I'm doing this with:
Graphics._createAllElements()Since doing "._createRenderer()" by its self wasn't working.
But when doing this you will receive a warning in the console.
I also had another idea, of creating a second renderer and stage. But not sure if pixi allows for 2 webgl renderers and also sounds like a pretty bad idea.
So was wondering if anyone has a better solution. And if this an issue with how the Window class is written or is it from the PIXI version? since the PIXI.Graphics render function looks completely different in v3.0.8 which is what I used before MV came out to learn js.
Edit: Well looks like you can run two renderers
http://quasixi.com/lab/test.html
Even rewrote it for MV and runs fine now, But I'd rather wait on your guys opinion on having 2 renderers and if there's any other solution.
Example:
Another fix, which is probably a really horrible idea. Is to reload the Graphics._renderer whenever a window opens, I'm doing this with:
Graphics._createAllElements()Since doing "._createRenderer()" by its self wasn't working.
But when doing this you will receive a warning in the console.
I also had another idea, of creating a second renderer and stage. But not sure if pixi allows for 2 webgl renderers and also sounds like a pretty bad idea.
So was wondering if anyone has a better solution. And if this an issue with how the Window class is written or is it from the PIXI version? since the PIXI.Graphics render function looks completely different in v3.0.8 which is what I used before MV came out to learn js.
Edit: Well looks like you can run two renderers
http://quasixi.com/lab/test.html
Even rewrote it for MV and runs fine now, But I'd rather wait on your guys opinion on having 2 renderers and if there's any other solution.
Last edited by a moderator:
