Should I move from VA to MV?

Currently I'm building my own system, kinda the combination of Infinity Engine and Dragon Age's(but in RPG Maker artstyle XD), if you have figured out something, yes, it will be the D&D system that fits in RM.

But the bottleneck comes when I building in VA: the performance, since the system is real time combat that several sides involved(including player's[note1]) and with several combatant in each side plus it's processing on the map scene directly, VA can't bear the system with its single CPU usage for sure(the FPS drop to 15~23 when I testing), despite I have optimize my IDA* and update methods[note2](Originally 8~13, before optimize, both have TheoAllen's anti-lag script, on 50X47 map, no parallel event, only "enemy events").

So I want to ask: will it better if I move from VA to MV? I've seen MV uses GPU, but is all thing that graphic-related is running on it? how many core of CPU it's using? Is MV still has performance issue on desktop anyway?

[note1]:
My game in VA has support all keyboard and mouse input, the player's party basically has Game_Player and 3 Game_Follower, and you can swap to any member that you want to control anytime; in D&D that allow 6 players so I want to extend to 5 followers in MV, if possible

[note2]:
My heuristic is generally better than just using Manhattan distance, and the events update is:
Separate battler events to N groups(let's say 5 here), in frame 1 update group 1, frame 2 update group 2 and so on til frame 6 update group 1, the meaning is not update all of the events in each single frame in order to get (a bit) better performance in general; If any event reach the tag <terminate>, which means this event no longer used, kill it and maintain the mechanic has least group with max member as possible.
I use VX Ace, and I like it more than RMMV. I have used both of them, and I have seen nothing wrong with VX Ace, and I will never change my project to MV. That said, it's really up to you. Most people like RMMV more, but others, like me, will want to stay with VX Ace.
Upon seeing the title, I thought it was a misplaced topic asking about moving from VA to MD or WV (typo).
But to stay on topic, if you need a higher resolution, go with MV, if you need to use the plugins, go with MV. If you are happy with VXAce, stay with VXAce, perhaps getting the Effectus script to reduce lag.

If you do go to MV, I recommend using Versions 1.4.0, 1.5.1 and 1.5.2 (when it releases), and to avoid 1.6.0 until further notice.
Javascript is a single threaded language, so versions prior to 1.6.0 have support of only one cpu core of power, however MV 1.6.0 supports web workers and ECMAScript 6 supports async functions experimentally (full support has been said to be in ECMAScript 8) but it's going to take a while before that is integrated in MV). So MV 1.6.0 can use multiple cpu cores if you're a good programmer. As for the recommendation to stay in MV 1.5.1, it all depends on plugin compatibility. If your plugins are compatible with MV 1.6.0, there should be no problem (with the exception of a bug or two).
Performance of MV is abysmal compared to Ace. I can talk from experience. I've never had games running at 1 or 2 fps in Ace, but it's common when I try MV games. HTML 5 is good for cross-platforming, but at the expense of execution speed.
The possibilities may be different, but the cost of usage is not worth it.
Performance of MV is abysmal compared to Ace. I can talk from experience. I've never had games running at 1 or 2 fps in Ace, but it's common when I try MV games. HTML 5 is good for cross-platforming, but at the expense of execution speed.
The possibilities may be different, but the cost of usage is not worth it.

Maybe what makes a game run at 1 or 2 fps is more about how it was made, than the programming language. I mean VX Ace is using only CPU to do everything including graphics. Javascript can take advantage of a graphics card. Ruby does not run as fast as JS natively, it works similar like Java. Thus I believe it is slower in general but what makes a difference in my opinion is what is going on every frame.
If you have a game running at 60 fps and you have 12 parallel processes going on that use scripts, loops and heavy to calculate stuff, then you will have trouble making things work smoothly. Even simple parallel processes might make a game slow, if you wont put a wait(30) inside them.
I believe it's more about how a game is made than the tool used to make it and I would love to hear your thoughts on it.
The reason you want MV are
  • Bigger tileset, bigger screen (technically VXAce can do bigger screen as well, but it's not supported by the native)
  • Cross-platform. Mobile, and web especially.
  • Dragonbones
  • Looking for anything that Javascript can do
  • Dark Theme
If you're not looking for those, just stick with VXAce.
If you're looking for performance, from people commentary (and my experience) MV tends to lag a lot ironically despite saying VXAce only use CPU and theoretically MV should run faster.

And as a disclaimer, I'm not sure if my anti-lag script has thing to do with this. If I recall correctly, it was simply disposing sprite that goes off screen to reduce update, and improve event iteration checking by simply checking the map table, not by iterating each events (17 * 13 is lesser than 1000 events). You mentioned IDA*, which I assume you know how to code? Are you sure it wasn't because of your code inefficiency? Is it even "compatible" with my anti-lag?
Maybe what makes a game run at 1 or 2 fps is more about how it was made, than the programming language. I mean VX Ace is using only CPU to do everything including graphics. Javascript can take advantage of a graphics card. Ruby does not run as fast as JS natively, it works similar like Java. Thus I believe it is slower in general but what makes a difference in my opinion is what is going on every frame.
If you have a game running at 60 fps and you have 12 parallel processes going on that use scripts, loops and heavy to calculate stuff, then you will have trouble making things work smoothly. Even simple parallel processes might make a game slow, if you wont put a wait(30) inside them.
I believe it's more about how a game is made than the tool used to make it and I would love to hear your thoughts on it.
I've tested a blank project in both makers.
Ace runs at 60 fps MV at half of it (35-40 max)
No script, no plugin, just the engine at default settings.
@cabfe My MV fresh project runs 95% of the time at 60 fps with not significant lag spikes at up to 54 fps. I have a quad core 1.6 GHz cpu, 4 GB RAM memory and integrated Intel HD graphics chip.
If you have faster hardware, then I presume it's compatibility issues. Not MV though.
It is true that MV core engine is poorly optimized and that I have more performance with VXAce, but it's partly due to resolution. However, if I construct my own stuff, I don't have nearly as much lag trouble as I do with the default engine.
Also, the advantage of MV is that you can use literally any programming language as long as you create your own executable. If I converted whole MV javascripts to c++, I'd have all advantages of c++. It's a ton of work, but the potential of MV is 100% customizability.
Javascript is a single threaded language, so versions prior to 1.6.0 have support of only one cpu core of power, however MV 1.6.0 supports web workers and ECMAScript 6 supports async functions experimentally (full support has been said to be in ECMAScript 8) but it's going to take a while before that is integrated in MV). So MV 1.6.0 can use multiple cpu cores if you're a good programmer. As for the recommendation to stay in MV 1.5.1, it all depends on plugin compatibility. If your plugins are compatible with MV 1.6.0, there should be no problem (with the exception of a bug or two).

So far it seems the only reason I move to MV is the possibility of multi-threading, therefore I can partition main/pathfinding/AI/DataProcessing in different thread which RGSS can't do. I tried to multi-threading in VA but still one CPU runs, cause the secondary thread runs extremely slow. tbh I haven't start in MV yet so I dunno what plugins I will use. Perhaps I'll stay in VA. (so I don't have to transfer my 30's of thousands lines ruby to js lol)

The reason you want MV are
  • Bigger tileset, bigger screen (technically VXAce can do bigger screen as well, but it's not supported by the native)
  • Cross-platform. Mobile, and web especially.
  • Dragonbones
  • Looking for anything that Javascript can do
  • Dark Theme
If you're not looking for those, just stick with VXAce.
If you're looking for performance, from people commentary (and my experience) MV tends to lag a lot ironically despite saying VXAce only use CPU and theoretically MV should run faster.

And as a disclaimer, I'm not sure if my anti-lag script has thing to do with this. If I recall correctly, it was simply disposing sprite that goes off screen to reduce update, and improve event iteration checking by simply checking the map table, not by iterating each events (17 * 13 is lesser than 1000 events). You mentioned IDA*, which I assume you know how to code? Are you sure it wasn't because of your code inefficiency? Is it even "compatible" with my anti-lag?

Yes I need the dark theme the white code editor is an absolutely pain
About whether my code is inefficiency, maybe yes, but definitely not the pathfinding part nor the compatibility, I have modified the anti-lag script to made it compatible with my system; I guess the reason cause the game lag are AI processing and collision detection, which I'm looking into currently.

I'm using khans' pixel movement from his Sapphire Battle System and now trying to make the collisions more "realistic"(eats more performance) but it has some serious problems in my system that I gotta solve, meantime see if I can optimize the collision detection. btw his code has almost no comments!!

The AI/combat part may be another heavy stress to the performance, the former one allows anyone to compose their own action logic of non-player control character, just like the "Tactics" in Dragon Age series; latter one I worried is the action sequence(still under construction tho), just like the one in yours: allow skills has different movement, makes character looks more neat when performing action, not mention here may be several character uses their skills at same time on screen that makes the FPS drops :/

If @Poryg said the multi-threading is possible in MV (in future anyway), like I said above I will move to MV and partition things from one single thread in order to get better performance.
@cabfe My MV fresh project runs 95% of the time at 60 fps with not significant lag spikes at up to 54 fps. I have a quad core 1.6 GHz cpu, 4 GB RAM memory and integrated Intel HD graphics chip.
If you have faster hardware, then I presume it's compatibility issues. Not MV though.
I have slower and yet it's not a problem to play Ace games.
The newest version of an engine shouldn't require a lot more to do roughly the same.
I'm using khans' pixel movement from his Sapphire Battle System and now trying to make the collisions more "realistic"(eats more performance) but it has some serious problems in my system that I gotta solve, meantime see if I can optimize the collision detection. btw his code has almost no comments!!
There you have it. I believe these were the cause of the lag. I've worked on someone's project, and it used commissioned ABS from someone with pixel movement as well. I had the same lag issues, mainly if I recall correctly (since we're not working on the project anymore) because of collision detection. And by that, it's not graphics issues. But code performance issue.

But it also not to say that Graphics aren't contributing the lag. If you happen to use animation a lot, you may best to store the Graphics in cache, so it won't load everytime you show an animation. It may take more RAM though, but definitely worth for smoothness.

About whether you should move to MV though, since your concern is about the performance, take it with the grain of salt. Some claims MV has better performance (sometimes with a little tweak), some reported MV runs poorly in their machine, so they're sticking in Ace. I believe neither are wrong. My personal advice, if you're looking for performance alone, don't. But if you're looking for another benefit as well, then go for it.
@cabfe Since node.js takes around 45% of my cpu power by itself and 75% of it when dev tools are launched, I don't think MV has too much to do about it. MV could do something about it only if it wanted to drop its selling point, in other words mobile export. Mobiles can't launch index.html properly without nw.js after all.
@Poryg Yes, I understand that the slowness of MV is inherited by its HTML5 features for mobile gaming. But the fact stays the same, it runs slow.
Since I'm not interested in mobile gaming, it's not an interesting deal for me to trade speed against portability, but I can understand that some will prefer it.
As you said, it's its selling point, especially in Japan where mobile games are in a boom phase.
I've tested a blank project in both makers.
Ace runs at 60 fps MV at half of it (35-40 max)
No script, no plugin, just the engine at default settings.
Interesting. It might have to do with other factors though. Can you give me some specs of your PC? Like CPU and graphics card?
Since the new engine handles graphics differently and has different workload, I would like to know on which system you did the test.
Also, when I get time, I will also test both of them blank on my system to see and maybe stress test both.

Edit:

Realistic collision comes with a high price. It is better to use hitboxes than use pixel precise evaluation. It is uber hard for the computer when it comes to high precision.
@Dreadshadow It's a very old PC, I had to change it because it started to show its age too much.
It was running an Athlon64 4200+ and a GT640 for the graphics. Under Windows XP, which might explain some things (maybe some routines don't function on old systems?)
Well Ace is using only the CPU to do stuff, and does everything with 32x32 tiles. Now MV takes advantage of the graphics card.
There are some differences though, that have to be noted:
MV has to deal with bigger tiles.
MV runs on different resolutuion.
MV starts by displaying 4 sprites, while Ace shows a single sprite.

On Title screen, it seems that MV is more hard to be handled by older hardware though.
Both programs run on 60FPS on my PC, but my PC has an i-7 7700K. So past processors are a thorn for both Ace and MV to be honest.
There you have it. I believe these were the cause of the lag. I've worked on someone's project, and it used commissioned ABS from someone with pixel movement as well. I had the same lag issues, mainly if I recall correctly (since we're not working on the project anymore) because of collision detection. And by that, it's not graphics issues. But code performance issue.

But it also not to say that Graphics aren't contributing the lag. If you happen to use animation a lot, you may best to store the Graphics in cache, so it won't load everytime you show an animation. It may take more RAM though, but definitely worth for smoothness.

About whether you should move to MV though, since your concern is about the performance, take it with the grain of salt. Some claims MV has better performance (sometimes with a little tweak), some reported MV runs poorly in their machine, so they're sticking in Ace. I believe neither are wrong. My personal advice, if you're looking for performance alone, don't. But if you're looking for another benefit as well, then go for it.

Oops it's a bit of late to reply...I have some busy stuff keep me from my project recently :\

I've tested my game and the lags caused from several parts including mine and others. Mine is mainly from the AI but I can improve by using some mathematics, but the collision detection part is a problem.

1. The default map collision is pre-bulilt, if I use a byte to store the collision info for 8 different things, that'll cost [map_width * map_height * TileSize^2] byte, so if I have a 100*100 map that will cost [3200 * 3200 = 10240000] ~= 10MB memory, in movent function takes O(1) to check whether the pixel is passable; seems not a problem tho.

2. By default the object collision detection is O(n^2, n = the number of objects), my thoughts to improve it is using space partitioning, perhaps a quad-tree; however, the objects are dynamic, thus we need another thing to check which partition the object stands in, so we need add another thing in the movement function to determine that; and this is the point here: will the time of determining object's space partition takes longer than default O(n^2)? If the space partition not working, is there anyway to optimize it?
You should compare algorithm complexities to determine that, thus you must first calucate them I suppose. I never had a lesson on algorithm complexity though. I mean I know a few theoretical parts but never calculated algorithm complexities, just created them as good as possible.
You should compare algorithm complexities to determine that, thus you must first calucate them I suppose. I never had a lesson on algorithm complexity though. I mean I know a few theoretical parts but never calculated alogrithms, just created them as good as possible.

Well, in my last reply I only did on the default one(that's quite simple 😛), but question is I don't know the exact complexity of quad-tree in space partition, in every frame it's O(n) for sure, but other details I can't figure out(since I never done it before), perhaps there even exist worst case that slower than default one, meanwhile this will cost extra memory(though it won't be a big problem); or someone has better idea...who knows?

Original thread: https://forums.rpgmakerweb.com/threads/should-i-move-from-va-to-mv.92011/