Which version for shmup? VX, MZ, or wait for Unite?

I'm planning to make a shmup game with RPG Maker, but I'm not sure which version to choose. I expect my game to have 1000~3000 sprites moving on screen for most of the time, and I want to make this game run smoothly on as many devices as possible.
I've created a test case in RPG Maker VX, but not MZ yet - I'm not an experienced JS programmer and JS didn't leave me great first impressions. In this test case I deleted all built-in scripts and wrote my own game loop, in which it created 5000 sprites on initialization, and every frame those sprites would be set to a random position in window. Here's my PC specs and test results:

OS : Windows 10 Home 21H2 (19044.1826)
CPU : AMD Ryzen 5 5600 6-Core Processor 3.50 GHz
RAM : 64.0 GB
GPU : AMD Radeon RX 6750XT
Sprite Count : 5000

FPS : 10 constant
CPU util : 12.2% max, none of the cores showed any sign of full utilization
GPU util : 2.1% max
RAM : 191.6 MB max

As to what did to those sprites every frame:
Ruby:
for i in 0...5000
  @@sprites[i].x = rand(600) - 300 + 640
  @@sprites[i].y = rand(600) - 300 + 360
end
And this is it, nothing fancy.

If this is still not enough, here's all the code for this simple test:
Ruby:
module TestSpritePerformance
 
  def self.main
    initialize
    loop do
      update
    end
  end
 
  def self.initialize
    Graphics.resize_screen(1280, 720)
    Graphics.vsync = false
    Graphics.frame_rate = 120
    @@sprites = []
    @@bitmap = Bitmap.new(32, 32)
    @@bitmap.fill_rect(0, 0, 32, 32, Color.new(255, 255, 255, 255))
    @@bitmap.fill_rect(1, 1, 30, 30, Color.new(255, 255, 255,   0))
    for i in 0...5000
      @@sprites.push(Sprite.new)
      setup_sprite(i)
    end
  end
 
  def self.setup_sprite(i)
    @@sprites[i].bitmap = @@bitmap
    @@sprites[i].x = 640
    @@sprites[i].y = 360
    @@sprites[i].update
  end
 
  def self.update_sprites
    for i in 0...5000
      @@sprites[i].x = rand(600) - 300 + 640
      @@sprites[i].y = rand(600) - 300 + 360
    end
  end
 
  def self.update
    Input.update
    update_sprites
    Graphics.update
  end
 
end

TestSpritePerformance.main

I wonder if this is because the inherent limitations of RGSS backend or that I'm moving those sprites in an unoptimized way, will MZ be a better solution for handling a large amount of sprites?
GDI+ is super slow.
Expect both MKXP and MZ to be able to provide some pretty significant improvements.
That said, I would expect Unite to be able to perform even better. Look into how batching works.

I would consider whether staying in the RPG Maker space is worth it. It doesn't really provide much in terms of shmups support.

*hugs*
- Zeriab
GDI+ is super slow.
Expect both MKXP and MZ to be able to provide some pretty significant improvements.
That said, I would expect Unite to be able to perform even better. Look into how batching works.

I would consider whether staying in the RPG Maker space is worth it. It doesn't really provide much in terms of shmups support.

*hugs*
- Zeriab
Rationally speaking, RPG Maker isn't a great engine to develop shmups for to begin with, regardless of which version, and I know very clearly before I came up with a plan for this project. But I decided to use RPG Maker nonetheless, for a very personal reason - I want to put an end to my childhood dream. RPG Maker engines were never great suited to make any thing other than FF6 clones, but if we look at the community, we'll see that RPG Maker isn't just about RPGs, it won't stop us from making all other kinds of games, even if there might be easier ways. To me RPG Maker is, in a sense, a symbol of indie game dev in general.
Now that you said "Expect both MKXP and MZ to be able to provide some pretty significant improvements", I'll try MZ and see if I can make a proof of concept. I hope the MZ version will give my game a more modern feel.
MKXP is this beautiful project by Ancurio: https://github.com/Ancurio/mkxp
Given that you have written C++ as your first language and the performance test code being written in Ruby I have the feeling you would enjoy that path more.
MKXP is this beautiful project by Ancurio: https://github.com/Ancurio/mkxp
Given that you have written C++ as your first language and the performance test code being written in Ruby I have the feeling you would enjoy that path more.
I'm back with test results for MKXP:
CPU util, GPU util and RAM usage are almost the same, while FPS decreased from a steady 10 to 7~9.
I saw a new console window when I launched the game in RPG Maker VX and its running normally, so I think I did setup MKXP correctly.
I should also mention this in the beginning of this post - The build I'm using to test performance with was already a modded version based on SDL2:
A translated web page of an unofficial runtime called Ruby Game Universal:
Which is claimed to be much faster than official build.
I don't quite understand.
Theoretically, SDL itself is very fast - considerably faster than PixiJS in fact - and should be able to handle thousands of sprites with ease, but here I am, my PC is struggling to keep up when there're only 5000. Another thing worth noting is that showing 5000 sprites alone didn't significantly make performance that terrible (but not great either, CPU and GPU util didn't change that much when I disabled update per frame, and FPS never reached 120), moving 5000 sprites did. I wonder what actually happened when I'm moving sprites.
Meanwhile, Bunny Mark test in Edge showed that my PC can run it in 800×600 60FPS with more than 50000 bunnies, and unlike RPG Maker VX, it's actually taking advantage of my GPU, GPU util peak at 57%.
I probably should have chosen MZ in the first place.
Interesting.
You are comparing one faster build to another faster build. Don't think I've seen such data before.
I did once play around with sprite pools (code: ) and did this thing to tease Kan:
With 3000 sprites default RGSS it slowed down to a couple to a couple of FPS.

There is a fork of MKXP called mkxp-z: https://roza-gb.gitbook.io/mkxp-z
It states to have animated bitmap support so it may be interested to look into how they do it.
We know that the bullet management code will be a hot place in terms of performance requirements I so would recommend writing C++ code and custom shaders to handle them possible with a Ruby API wrapper so the bullets can be managed via Ruby calls.

Going with MZ is also a possibility. Up to you to choose which path(s) to tread.

*hugs*
- Zeriab
I made shooting in RGSS3 way back before.


My conclusion is, that it is horrible. Yes, it is already using the object pool technique. Yes, I have already reduced the FPS from 60 to 40. But one thing you can not change, except it, is going to need a lot of effort is the audio lag. You will not get a smooth experience of sound effects and visuals because loading/playing the sound effect would lag the engine a few milliseconds. There was the reason why I didn't play any sound effects when the bullet hits. It is neglectable if you're using the engine the way it means to be (making a turn-based RPG). But for real-time action that requires precision, a slight lag is intolerable.

Granted, I made this in 2014, and the performance of the hardware might have already improved since then. However, it doesn't negate the fact that it wasn't optimized for that.

Move away from the RGSS engine. Use MZ and utilize the PIXI library.

EDIT:
Forgot to mention that, handling sprite is one thing. Check the collision is another thing. How you are going to check the collision of 3000 bullets is already a performance hell you are going into.

Original thread: https://forums.rpgmakerweb.com/threads/which-version-for-shmup-vx-mz-or-wait-for-unite.149617/