PIXI.js V8. Next generation of RPG Maker is possible ?

I did see Pixiv8 for MZ from Japan: https://booth.pm/en/items/7147423
I haven't personally tried it but I thought it might interest people but I do have it. It gives you a 40 page manual and here are some of the information. I can only give a summary as the author doesn't allow manual distribution?
Code:
--------------------------------------------------------------------------------
WHAT IS MOREPIXI?
--------------------------------------------------------------------------------
MorePixi is a complete rewrite of RPG Maker MZ's core scripts that upgrades 
PixiJS from v5 to v8.13.2. It's NOT a regular plugin - it replaces the entire 
core script system.

--------------------------------------------------------------------------------
REQUIREMENTS
--------------------------------------------------------------------------------
• PIXI: v8.13.2
• NW.js: Default for MZ core script version 1.9.0
• ⚠️ EXISTING MZ PLUGINS WILL NOT WORK - They need to be rewritten for MP

--------------------------------------------------------------------------------
INSTALLATION
--------------------------------------------------------------------------------
1. Backup these files in your project (rename them):
   - js/main.js
   - js/libs/pixi.js

2. Copy the included js folder into your project's js folder

3. Files installed:
   - js/libs/pixi.js (new PixiJS v8)
   - js/main.js (modified loader)
   - js/mp_core.js (replaces rmmz_core.js)
   - js/mp_managers.js (replaces rmmz_managers.js)
   - js/mp_sprites.js (replaces rmmz_sprites.js)
   - js/mp_objects.js (replaces rmmz_objects.js)
   - js/mp_scenes.js (replaces rmmz_scenes.js)
   - js/mp_windows.js (replaces rmmz_windows.js)

⚠️ If you use "Update Core Script" in the editor, you'll need to reinstall!

--------------------------------------------------------------------------------
KEY CHANGES FOR PLUGIN DEVELOPERS
--------------------------------------------------------------------------------

1. NO MORE BITMAP CLASS
   // MZ (old)
   sp.bitmap = ImageManager.loadPicture("Actor1_1");
   
   // MP (new)
   sp.loadTextureAsync("img/pictures/Actor1_1.png");

2. UPDATE → tUPDATE
   // MZ (old)
   MyClass.prototype.update = function() { ... }
   
   // MP (new)  
   MyClass.prototype.tUpdate = function() { ... }

3. ASYNC FUNCTIONS END WITH "Async"
   // MZ (old)
   DataManager.loadDatabase();
   
   // MP (new)
   DataManager.loadDatabaseAsync();

4. CLASS SYNTAX REQUIRED FOR DERIVED CLASSES
   // MZ (old)
   function MyScene() { this.initialize(...arguments); }
   MyScene.prototype = Object.create(Scene_Base.prototype);
   
   // MP (new)
   class MyScene extends Scene_Base { }

5. PROMISES INSTEAD OF CALLBACKS
   // MZ (old)
   sp.bitmap.addLoadListener((bitmap) => { ... });
   
   // MP (new)
   sp.loadTextureAsync(src).then((texture) => { ... });

6. WINDOW SKIN SIMPLIFIED
   // MZ (old)
   this.windowskin = ImageManager.loadSystem("Window2");
   
   // MP (new)
   this.windowskin = "Window2";

--------------------------------------------------------------------------------
NEW CLASSES
--------------------------------------------------------------------------------
• CanvasSprite - For direct canvas drawing (replaces Bitmap drawing)
• BackgroundSprite - For scene background snapshots
• Sprite_Snap - For capturing containers/sprites to texture
• TextureManager - New texture caching system (replaces ImageManager for textures)
• Container_Clickable - Clickable container for button creation
• Sprite_Parallax - For parallax/battle backgrounds
• Window_ScrollTextEx - Message-independent scroll text

--------------------------------------------------------------------------------
NOTABLE FEATURES
--------------------------------------------------------------------------------
• Textures are now shared between sprites (better memory usage)
• Weather effects work in battle scenes too
• MV animations can be imported (put [mv] in animation name)
• Multiple symbols can be mapped to one key
• Automatic text line-break functions added
• FPS counter removed from release builds (use FpsViewer.js plugin if needed)

--------------------------------------------------------------------------------
WARNINGS
--------------------------------------------------------------------------------
⚠️ This is NOT a finished product
⚠️ NO SUPPORT is provided by the author
⚠️ Existing MZ plugins WILL NOT work without modification
⚠️ Use at your own risk

And some more information:
• PIXI_v8 has several memory leak issues reported, so when using PIXI items independently, it's good to use heap snapshots to check.
• If a specific PIXI object increases by the same number each time you repeat instance creation and destruction, try adjusting destroy().
• It also depends on GC timing, so after thinking "it's increasing", wait a bit and retake the heap. During MP development, there were often false alarms. (ParticleContainer might also be nothing to worry about)
Hi
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!
I'm putting Tauri on hold for now, because I happened to find a solution that's easier to maintain than Rust and magically compresses the executable to only ~259KB vs Tauri's ~1MB vs ~200MB nwjs.

If you're interested, you can check it out here:
https://github.com/RyanBram/Rover

or download the binary here:
https://ryanbram.itch.io/rover-universal-html5-app-launcher

Regarding distribution, if I have more spare time, I can set up a compiler system where all assets and JS are compiled using a compiler. This is a real compiler, not embedded into a ZIP and placed in the EXE header.




Have you tried an Android port? If not, could you share a project with your solution implemented and I'll try a quick port.
I have archived all the core RPG Maker files here:
https://github.com/RyanBram/RPG-MV-Ace/tree/main/archive

You can try them out. But I must say that I ported them to Pixi v8 with the sole purpose of getting them to run without testing them with many plugins.

Pixi v7 is the most stable so far, but it hasn't undergone optimization yet because I was focused on upgrading Pixi before optimization. My plan is to optimize Pixi v7, add many built-in features to make it easier for users, and then revisit my Pixi v8.

You can check the Android performance (which may not have improved significantly yet) via the following website:
https://ryanbram.github.io/RPGMV-Ace/

Feel free to try it on Android since I'm maintaining the MIT license for this plugin.

Best regards,
RyanBram
Okay, Let me share some light, after a deep inspection.
Upgrade NWJS to last 102 version -> Possible.
Upgrade PixiJS to last version? Not possible (or, better to say, you can do it but it's pointless).
The max version supported is 7.x. (I did that on MV)
Results? Even more lag. LOL
NWJS is basically Chrome sandboxed, it doesn't have access to real drivers.
So we can forget about WebGpu and WebGL, the only thing that will work will always be the
Canvas Rendering . - aka - can't reach proper performance ever in this life.
Oh, and, you can use Canvas rendering if you code your own software rendering system, because they removed the Canvas Rendering from the library, that means... no fallback -> Persistant Black Screen.
Unless... someone would compile from the scratch NWJS to un-sandbox it, and let it access to the system.
It took me two days of tests and inspections.

You're welcome.

P.s. there are workarounds of course, like forgetting about NWJS and use another embedding system but since we cannot customize the editor, and neither the export process.. is really worth it to complicate our life with that? Meh.
Massive update

I have rewritten MZ to PIXIJS V8 It is still in development and being tested but Bitmap and Sprite perfectly work and behave.


I also have decoupled a lots of the limitations that was given in rpg maker MZ original code base (More flexible filter handlings, Built-in functions helpers to helps programmers

and Fully Typed TS rewrite and use modern convention. It behaves likes an ESM module and in the future you will be able to literally do plugins like module packages.


Many of the caveat is now that pixijs is mostly Async so a lots of the operations for rpg maker will shift towards a more Asynchronous approach


Some sample of how it will work :

Code:
class MyCustomClass extends SceneBase {
  
  // no need for constructor in heritance
  
  // Mainly for TS to stop complaining about non standards constructor
  override initialize(...args: any[]){
    // some initialization code
    super.initialize(...args);
  }
  
  override preload(){
    ImageManager.queue("texturefolder", "texturePath"); // user can queue a preload to be fired at start of the scene.
    ImageManager.queue("texturefolder", "texture", LoadingType.BACKGROUND); // here we tell the engine to not Lock the engine and just load it in the background!
  }
  
  foo(){
    // in this context we do not have an async way but we can tell the system to lock like standard rpg maker
    ImageManager.load("texturefolder", "texturePath");
    
  }
  
  async bar(){
    await ImageManager.loadAsync("texturefolder", "texturePath"); // in thise case we locking  the thread but in a async fashion. 
                                                                  // Async will automatically tell the Engine that the scene is not ready
  }
  
  
}

ALL of this code is still quite experimental and might change!
question???
Why did you do that ???
answer : Because I was bored and maybe slight non medicamented ADHD 😅

ill try to push a new update soon! but I will warn this is a MASSIVE rewrite and the engine changed a lots (although many of the current API stay similar just in a more modular fashion!)

1773346155332.png

1773346040620.png

1773346003033.png

Original thread: https://forums.rpgmakerweb.com/threads/pixi-js-v8-next-generation-of-rpg-maker-is-possible.161775/