Maximum Variable, Switches, Common Events, & Database Limits

I know I have seen information on this in different places, but I can't seem to find a specific post by searching, either here or just doing a basic internet search.

In the Help files, it says that the maximum number of animations and tiles is 1,000. Other data items can go up to 9,999.

In a project, it appears that there is a 5,000 limit on Variables and Switches by default.

For everything in the database (Actors, Classes, Skills, Items, Weapons, Armor, Enemies, Troops, States, and Common Events) increasing the maximum to 2,000 seemed fine. However, as soon as you go to 2,001 for any of those things, you get a message that says if you increase too much, it could impact the performance of the game.

So I am curious if anyone has actual experience going above 2,000 for any of those database things.

If so, how far did you go before you observed an issues?

Has anyone experienced any issues before you hit the 2,000 mark?

Also, does anyone know if this might be cumulative? Meaning that 2,500 for one database thing might not cause a problem, but increasing 5 or 6 things to 2,500 might be an issue?

I am trying to figure out how creative I can get without triggering a performance issue due to too many of something.

I appreciate any information or experiences you are willing to share.

Thanks!
At the very least, going above 2000 shouldn't cause any notable problems in your actual game. I think that the warning is moreso about the editor itself. The editor isn't designed in a very RAM-conscious manner, which is why they had initially added limits to everything. When they increased the limits, I guess they didn't want to expend the time/money to improve the RAM economy of the code, so they just slapped in a warning.

Also, does anyone know if this might be cumulative? Meaning that 2,500 for one database thing might not cause a problem, but increasing 5 or 6 things to 2,500 might be an issue?
Yes, it's cumulative. But if your computer is reasonably modern, I doubt you will have any serious problems with 5 or 6 things at 2500. If your computer *isn't* reasonably modern... then you probably still don't need to worry about it, because by the time you manage to create a game that massive, you'll probably have a new computer anyway.
Thanks, @Arthran ! That is very helpful!

I don't think that I will have to worry about the upper limits in general, but there are a few things I have thought about that could gobble up a significant number of spaces in the database so I thought it would be best to try to figure that out before I got too far down the road of testing concepts like that.
I never tried. But I can make an educated guess.

RPG Maker is not a database manager (SQL and such). The data is saved in JSON format. And you can increase up to 2000 rows. By rows, it means just a "line break" character (or comma) splitting those text/string. Each 'row' can hold as many characters depending on how much you put into the database. For example, a class with hundreds of traits can significantly increase the character counts per row.

To expand on what Arthran said. When you have all databases in large numbers, when you made a single change, it doesn't just change that thing (update this row in SQL), but it saved the entire database. The time for each save/load might increase. You don't want to hear complaints from customers that your tool performed poorly so that might be the reason they impose this limitation.
I personally haven't had a need to bypass any other limits beyond the Variables and Switches using this simple code...

Code:
/////////////////////////////////////////////////
///// Bypass Switch/Variable Database Limit /////
/////////////////////////////////////////////////
Game_Switches.prototype.setValue = function(switchId, value) {
    if (switchId > 0) {
        this._data[switchId] = value
        this.onChange()
    }
}
Game_Variables.prototype.setValue = function(variableId, value) {
    if (variableId > 0) {
        if (typeof value === "number") {
            value = Math.floor(value)
        }
        this._data[variableId] = value
        this.onChange()
    }
}

Normally if you try to use a script command to change a switch or variable higher than you have "unlocked" in the database/editor the game could crash... using this you can access any variable as high as you want if you want to designate certain ranges for certain things.

Example of how I use this:
Quest related variables/switches are in the 10000-19999 range
Enemy kill counts and Enemy related values in the 20000-29999 range
stuff that is all handled by plugins usually.

Anything else that will be used "normally" sticks to standard rules of less than 5000



In order to make it so my game feels like it has a large variation for weapons and armor I use Independent Items along with Random Prefixes and Suffixes so there are ~200k variations of equipment the player can find while only having about 500 base items in the database.
Thanks, @Ahuramazda !

I had read about going beyond the 5,000 limit for Variables and Switches, but I hadn't paid much attention to it yet. I think your example is interesting and thanks for that code.

Since I don't fully understand how to use that, and maybe others who find this thread won't either, just to clarify, would you use that code in an event each time you wanted to access something higher than 5,000? I have only started to learn Java Script so while I recognize a bit of that code, I'm not 100% sure of what it is doing exactly and where to insert that.

Also, I'm not sure what you mean by prefixes and suffixes to expand the item variations. Does that involve plugins?

Thanks again for the input!
@ZombieKidzRule
Just take that code I gave above and save it as a .js file and put it near the top of your plugin list, all that is needed!

And the Prefix/Suffix part is a plugin...

I have mine working for MZ, but sadly I am unsure of if it works with fossil or not.
I self-ported before fossil was ever created, so I cannot share the code as edited. :/

There is also an extension plugin for it apparently, but I cannot vouch for what it does:

Original thread: https://forums.rpgmakerweb.com/threads/maximum-variable-switches-common-events-database-limits.158877/