Sorry, I got completely absorbed in my new job and even forgot about this post. Here’s the GitHub project link. As I mentioned before, every library is updated to the latest version (as of March 20, 2025), and Pixi is at v7.4.2. Note that it’s not fully tested yet, but battles, save/load, shops, etc., work.
PIXI.js V8. Next generation of RPG Maker is possible ?
General DiscussionSorry, I got completely absorbed in my new job and even forgot about this post. Here’s the GitHub project link. As I mentioned before, every library is updated to the latest version (as of March 20, 2025), and Pixi is at v7.4.2. Note that it’s not fully tested yet, but battles, save/load, shops, etc., work.
Ok so far, I've found a way that PIxi8 could be achieved.
It's not easy.
Basically, it includes editing the calls that the core makes to pixi and create a kind of compatibility layer for the whole graphic system.
CORE -> Layer -> Pixi
This way, all pixi calls goes through the layer, and the layer "talks" to PIXI, so with this layer the upgrade to future pixi version becomes easy because just one file needs to be touched, and with some workaround the canvas could be re-created.
Apparently, with some flags is possible to force direct redenring (disabling fallback), so maybe the Webgpu could be achieved.
I'm going to go through this deep road. LOL
It's not easy.
Basically, it includes editing the calls that the core makes to pixi and create a kind of compatibility layer for the whole graphic system.
CORE -> Layer -> Pixi
This way, all pixi calls goes through the layer, and the layer "talks" to PIXI, so with this layer the upgrade to future pixi version becomes easy because just one file needs to be touched, and with some workaround the canvas could be re-created.
Apparently, with some flags is possible to force direct redenring (disabling fallback), so maybe the Webgpu could be achieved.
I'm going to go through this deep road. LOL
If I'm not mistaken, they also changed the way you create a Pixi app. Still, using a compatibility layer is definitely the best approach, it makes updating the RMMZ core scripts much easier in the future.
I had to pause work on this project mainly because I started a new job around that time, and I also wanted to make as few changes as possible to the base scripts. But now that I have more free time, I'm happy to start working on it again. Back then, Pixi 8 had terrible documentation, which didn’t help either.
Thanks for this, is there any drawbacks using this version instead of the regular mz one ?
Since sometimes using more recent nwjs or pixi updates can lower performances instead of boosting them (kind of the goal of this) cause of compatibility issues.
Honestly, I'm not entirely sure. I mainly focused on the migration and built a minimalistic debug scene that covers shops, battles, text inputs, and a forced game over. I haven’t tested it with plugins, but it should work, I made as few changes as possible to the core scripts. Most of the modifications are around the save/load functionality, since RMMZ handles that a bit differently by default.
If you run into any bugs, feel free to open an issue on GitHub and I’ll do my best to fix it.
WEBGL2? Yes.
WebGpu for the X-Thousand fps? Mmmh. Not sure.
I'll keep digging deep. (After a whole engine re-write).
Eventually, if I'll achieve that, I'll share the modded core.
P.S. maybe it's because I'm from linux using proton (steam), but I'm not sure.
Further inspection will be needed. On the way.
Update 1
This is the current problem with RMV\RMZ:
In the normal core: the renderer is created manually.
Pixi7 supports the handling for the canvas render directly from PIXI.Application, which is synchronous (ad rpg maker), while Pixi8 has the the Application asynchronous, which means is based on a "await until ready"-kind system.
So yeah, in the end, a whole boot system needs to be re-written.
Already porting pixi-tilemap to Pixi 7 was a hell, this will require some time.
Note: The problem between the rendertype (limited WebGL and WebGPU) may be in the way the system creates manually the render stage. Since it's manually creating, that could be the reason why WebGPU doesn't work.
Update 2
I've converted the core to esm (ES2020), and noticed that plugins stopped working (apparently overriding functions is problematic\not smooth and easy with esm), so now I got back to the normal js files.
I'm going to try to rely directly on PIXI for the render\stage system and see what will happen.
Going for another night of coding.
Update 3
I've found out that RM has an internal ticker system.
Relying on the pixi one, I got +XXXX FPS. LMFAO.
The game was unplayable.
What I found out: They capped voluntarily the FPS to 60 using a "wait anim" system.
Last Update
Tests done:
- Delegating completely the render to PIXI 8
- Delegating completely the tick system to the PIXI's internal system.
Results:
- Gameplay: same, scene_manager needed to be adjusted.
- Menus: FPS drops in menus
- Conclusion: unstability everywhere.
Final conclusion: after a whole rewrite of almost everything: Pixi 8 isn't worth it.
Reasons:
- No difference seen with pixi 7 in performance
- A lot of headaches to implement things since they are based on promises calls (await \ promise)
- Some performance are even worst (lag\stuttering\etc) even with capped FPS 60\120 (WebGL, not WebGPU)
- To make it work flawlessly, a whole engine re-write is needed, since now is all synchronous, and pixi 8 works with asynchronous ways.
It would take an infinite amount of time\coding and in the end the outcoming result is even not worth it (performance drops). Whatever they (the pixi guys) achieved, is totally not work-able with the whole rpg maker engine flow\system.
Bro you're a menace
Mind sharing your code with me? You can send it over via Discord (username: alekevin12, same profile pic as here) or drop it on GitHub if that's easier. Appreciate it!
This is the compatibility layer working for PIxiJS7 (last version).
You could put it after loading pixi (and libs) in your index.html, and BEFORE loading the Rpg maker core JS files.
Of course, you'll need to migrate all the PIXI calls from the core files (Class graphics, etc.) to this compat layer, but so far, it's working like a charm.
The most stable library to use today is PixiJS7.
Going for PixiJS 8 will require a whole engine rewrite plus definitely a new\decent editor that will support autoupgrade of nwjs, which is something that I could do (the editor) in Python (to have it multi-os compatibile), if and when I'll have some free time.
If I'll ever do that, I'll push it online as free, editor included. 🙂
Now, about my compat layer.
The thing is easy:
Everything where is used in plain PIXI, you should use core_gfx.
So core_gfx will be the "interpreter" between the core and PIXI, this way, if some ever update will be needed, we'll need to touch a single short file instead of +10k lines files.
Note: I've added also the ported pixi-tilemap.
If you'll rely on the compat-layer Pixi-picture won't be needed anymore, every call is handled natively by coregfx. These two are compatibile with both MV\MZ. I'm on MV, but tested on MZ works as well.
I just want so share that I have successfully port RPG Maker MV to run on Pixi v8 (I also have Pixi v7, Pixi v5, and improved Pixi v4). WebGPU in Pixi v8 would be a game changer compared to legacy WebGL.
nice ! will this be compatible with MZ as well ? does it improve performance or make it instable ? (tried some pixi v7 upgrades before but it wasn't really better)
Allow me to say... it's not a matter of what pixi\renderer is used... it's a matter in how optimized is the engine core...
Totally agree with what @KravenarGames mentioned earlier—optimization usually has a bigger impact on FPS than just upgrading the rendering engine. The main bottleneck is that RPG Maker is still heavy on CPU calculations, barely touching the GPU where Pixi actually shines.
However, WebGPU is the real game-changer here. It makes the effort worth it because it essentially "forces" the engine to utilize Pixi’s features more optimally during refactoring.
My workflow is a bit different from the usual "Optimize-> Port" method.
Instead, I do: Port to next Pixi -> Optimize.
(This makes bug tracing much easier since the codebase stays familiar).
As for compatibility: It’s surprisingly stable! My port barely breaks existing plugins. I even wrote a custom wrapper so that the default NW.js v0.48.4 in MZ works like magic with Pixi v8.
P.S. I'm actually taking it a step further by porting MV to Tauri. You get WebGPU support and a runtime size of just 1 MB (vs hundreds of MB with NW.js).
You can visit the GitHub project link in my signature. Please note that as of this writing, I've only pushed the update up to Pixi v7.
@RyanBram I'm interested in parts of your project, but I have concerns about AI usage in it's development, especially given the way the description has been written.
Was AI used in part or wholly in the development of your project? Could you disclose that?
Was AI used in part or wholly in the development of your project? Could you disclose that?
So it's also compatible with MZ ? you mentionned a custom wrapper that works with MZ and Pixi v8
Thanks for asking! I appreciate the opportunity to clarify this.
To be fully transparent: Yes, I utilize AI, but primarily as a research assistant and for documentation.
1. The Code & Logic:I used AI to analyze the documentation and internal code differences between Pixi versions to spot syntax changes. However, the architectural decisions were 100% manual myself.
Proof of this is in the code structure: If AI were fully in control, it would likely rewrite the RPG Maker core into modern ES syntax to match Pixi v8 standards. Instead, I made a conscious human decision to strictly maintain ES5 syntax (using Object.assign, etc.). This ensures legacy plugins remain compatible and the engine works on older NW.js runtimes.
2. Why AI was necessary:Finding human assistance for this specific port is nearly impossible, even within the Pixi community. To do this effectively, one needs deep knowledge of both Pixi internals and RPG Maker's unique architecture. While frameworks like Phaser are common knowledge there, RPG Maker MV is widely different and quite niche. Since finding a human with this specific intersection of skills is extremely rare, I used AI to help bridge that specific knowledge gap.
3. Documentation & Efficiency: Since English isn't my first language, I use AI to polish my drafts. Honestly, it’s a massive time-saver. It allows me to focus my mental energy on coding and development rather than getting stuck on writing perfect grammar.
Hope that clears things up!
To clarify regarding MZ compatibility:
The wrapper I mentioned earlier allows this engine to run smoothly on the NW.js version used by MZ, but fully porting the MZ Core Script itself to Pixi v8 is a different beast. I'm avoiding touching the MZ Core specifically for two reasons:
- Active Maintenance: Unlike MV, MZ is still actively maintained and updated by KADOKAWA.
- Licensing: MZ is not explicitly Open Source. This is a huge contrast to the MV Core Script, which is strictly MIT Licensed and openly encourages community support (Source: GitHub - rpgtkoolmv/corescript).
Instead of porting MZ directly, I am working on implementing MZ-like features into this MV port.
My goal is to recreate the MZ experience (mechanically) within this MIT-licensed MV engine, without lifting/using a single line of MZ's proprietary code. Best of both worlds!
Thank you.
Thanks! The transparency is much appreciated.
The port to Tauri worked well for me and I was able to distribute the game as a single exe using .msi. Looks great and it is very efficient.
One concern currently is nwjs specific code like require('fs') and other nwjs things (Steam Achievements, maybe?). I am sure there is a WebvView2 equivalent but I can't find much on it besides looking through the DevTools for WebView2 and guessing some of the chromium stuff. Haven't looked at it for a while now though (I tested Tauri v2 a few months ago I think with some success).
For a while, I was looking for a way to compile JS to bytecode (nwjc). I think ByteNode might be worth looking at? Either that or just a bit of obfuscation without hurting performance during deployment for Tauri.
I'll be keeping watch of this project. Thanks!
What about just turning off the every-frame-check for parallaxes and making it using only in maps where actually parallaxes are present? It increases x10 the fps. LOL
Note: WebGPU requires drivers to have a valid passthrough (last nwjs + os that supports current driver correctly). That means breaking the compatibility with Cordova (Android) and Linux (mostly because if you're not on AMD not all NWJS deals happily with Nvidia on Linux - Wayland). So, it's not really about the rendering engine, it's about how the core ticks internally to define the FPS and use power. With few small tweaks you can achieve definitely a lot remaining still on Pixi. Tested. 🙂
Have you tried an Android port? If not, could you share a project with your solution implemented and I'll try a quick port.
Original thread: https://forums.rpgmakerweb.com/threads/pixi-js-v8-next-generation-of-rpg-maker-is-possible.161775/