Performance issues and low FPS

Hello, I'm very sory to bother you, but today came up another problem, now it's just pure technical.
I created variable representing hero's Inteligence and item to increase it's value. Method I used - I think - Is good, but there is a performance problem. Let's run through some technical stuff.

My current hardware is
AMD A4-6320 APU 3.8GHz (2-cores) and nVidia GeForce 210 with 8GB RAM + SSD Disc 250MB
(I know, not powerful hardware, but for my fav games is enough)

My game nativelly is designed in 1920x1080 resolution in RPG Maker MV 1.5.1 with following plugins:
Spoiler
Yanfly plugins:
  • Core Engine
  • Load Custom Fonts
  • Message Core
  • Battle Engine Core
  • Action Sequence Pack 1 & 2
  • Animated SV Enemies
  • Visual ATB Gauges
  • Visual HP Gauges
  • Battle System ATB
  • Victory Aftermath
  • Skill Core
  • Skill Cooldown
  • Auto Passive States
  • Party System
  • Row Formation
  • Balloon Icons
  • Turn Order Display
  • Battle Status Window
  • Status Menu Core
  • GAB Window
  • Mini Label Events
  • Menu Variables display (Tigress Collaboration)
  • Actor Variables Display
  • Region Restrictions
  • Quest Journals
Some Random Dude (SRDude)
  • Title Command Customizer
  • Summon Core
  • Super Tool Engine
  • HUD Maker
  • Background Menu
Sasuke Kannazuki
  • Simple Message SV
Dan "Liquidize" Deptula
  • Made With MV Splash Screen
CityShrimp
  • Fog Of War

Until today it was good and now game both in preview and after deployment likes to crash when Inteligence Variable reaches 5 value - not always, but often, and main menu drops to lousy 12 FPS! Also in very basic and common things project likes to behave strangely (unexpected freezes for few seconds, drop framerate, late response to keyboard, wide range of frame rate on static map - approx 24fps to 41fps)

Now for some images:

This is how I made Book

and here is image showing 12 FPS in main menu

What else I can add that I noticed whenever I enter "Item" menu to use Tome of Inteligence, performance drops down. In other words, the more I enter menu with items, the more lower performance goes. I checked lowering game resolution won't solve problem, only delay it.

The question is how you handle constant high performance and did anyone experienced something similar?
did anyone experienced something similar?
Yes me

The question is how you handle constant high performance
delete all stuff from rrmv
study javascript
make you own optimised engine.

😛👍
Have you try the most basic problem solving -> remove every plugin that possibly related.
And for your case is (just my guess)
  • Core Engine
  • Load Custom Fonts
  • Message Core
  • Status Menu Core
  • GAB Window
  • Menu Variables display (Tigress Collaboration)
  • Actor Variables Display
Then add one by one and keep playtest. Sorry if not helping much.
You didn't give a Screenshot of the most important thing - the common event that is called to handle the variable.
Show that, and check if the variable is configured in any of your Plugins.
If one of your Plugins uses variables for configuration, you always need to make sure that that variable is configured and reserved correctly. If you don't and then use that variable for something else, you'll be triggering changes in the plugin without knowing.
@Jonforum - I was thinking on migrating project to Fusion 2.5, but it was too much work - actualy start from zero.

@ashm - I did it, there were some better results, but still not what I expect.

@Andar, here they are:


@Edit:// I try tommorow with better graphic unit and see results.
If the game crashes, then it can't reduce to 12FPS because it's crashed. So does it crash, or not? If it crashes, it will give you an error message, which you should show us. You should also hit F8 and open the Console tab and give us a screenshot of that.

If it doesn't actually crash, but just slows down, my guess is that you've got some other event (set to parallel process) or plugin that's getting triggered based on that variable.
As I said in first post it's not regular crash. I'll try to describe as precise as it possible.


#1 I run deployed game to do some testings, game menu shows up and when loads highlight image I notice tiny freeze and then music starts play.

#2 I select "New Game" and starts intro cinematic made on in-game engine, looks good but FPS is only 30-40FPS (should be 60) no "jumps" and "freezes"

#3 Player is transfered to another map with fixed values, fade out map shows smoothly, fade in to another map I notice another small "freeze" and FPS remains 20-40FPS.

#4 I walk to bookshelf to get 5x Tome of Inteligence and I open main menu to access Inventory, suddenly FPS drops to constant FPS12 (navigation through menu begins to be pain in a*s.

#5 I'm starting using 1st Book - OK, 2nd Book, OK (FPS is still 12), 3rd Book - game performance begins slightly drops, 4th book - FPS varies between 10 and 40 (even player is idle), 5th book - shows hourglass on cursor and game close itself, sometimes I'm able to walk player around map and crash is kinda... Delayed?

I just want to remind, game is natively design in 1920x1080 resolution
that still sounds as if one of your plugins is configured by that variable.
And that has nothing to do with the screenshot of the variable display plugin you showed, because there you configure the plugin to show variables - I'm talking about a plugin that is configured by variables, which is the other way around.

One example that caused a lot of false bug reports with VX Ace: Yanfly's message script for Ace had two variables configured to control the height and width of the message window. If you changed the two variables before the show text event command, the script would change the height or width (or both) of the displayed text.
There were hundreds of users who ignored that configuration and simply put the script into their game, and then cried "my text windows vanished/is only one letter wide" - because they used the default preconfigured variable for something else, setting the text width to 1 or 0 without realising that.

And that is what you have to look for - is there a plugin that changes its behaviour based on the value of that variable?
Nope, this Inteligence variable is only to display count of used Tomes of Inteligence, this var is not altered in any other events, plugins, items etc. and there are no parallel events exept only one wich runs only to regenare HP / MP and when regenation is complete, event stops.

But IQ var is only affected by item Tome of Inteligence, nothing else
OK - change the common event to increase variable 999 instead of variable 6.
Does the same effect happen?
if not, then your assumption that the variable 6 is used nowhere else is wrong and you have to find the place where it is used to configure everything correctly.
Dear @Andar. I checked everything and I tested game again, and this time did not crashed, however maybe this will help something.


And I'm sure HD resolution is easy to handle by my hardware, because I made HD map in Fusion 2.5 and I got 60FPS


I will continue struggle tommorow and if it fails I'll just go down with resolution
I never asked for the resolution because this problem has nothing to do with it.
And I'm not sure how to read your answer (I won't even watch the video).

If the game doesn't slow when using variable 999, then that is proof for the fact that the variable 6 is used somewhere else, exactly as we told you. And now you have to search until you find that "somewhere else".
Yami's overlay script in Ace was another one that used variables and people often had problems with because they never configured the script to use a different variable, and never named the variable to prevent it being used for something else. If that script was converted to a plugin and you're using that, there's another candidate.

Most people don't take the time to look at their plugins and make sure any variables/switches used are 'reserved' so as not to be accidentally used for something else. That sounds exactly like what's happening here. If you are absolutely certain that you've looked at all plugins, made sure all switches/variables are not being used by something else, and have named them all to make it clear they're used by the plugin so you don't accidentally use them for something else, then you're in a very small minority.
I spent whole night checking every single map, every single event, plugin and common event, of course I found some minor things to fix, but their very minor, nothing big to fix and causing problem. But this deep research helped me find "a bugger" who drops fps rate in main menu.
It's - sadly - SRDMenuBackground.js - I'm very upset, because plugins idea is great and I really enjoy watch his videos and I think he's cool dude.
But back to my problem. I disabled this plugin and reading Tome of Inteligence is not causing problems. Also I made some modifications in bgm/bgs/me/se sounds - cut tails and silence and lower bitrate even further and that also helped a bit. I take short nap and I continue to struggle.

I forgot to mention - game deployed to Web browser works flawlessly - even on the worst free web hosting I could find. So maybe QTWebEngine is causing some problems.

And next I try the simplest thing I should done if first place - update drivers
And It's fixed!
I also had this performance issue and guess what ,I did not even have common events neither too many plugins but the game was lagging too much despite ,I have only added maps to my game. Well this plugin worked for me at least - https://github.com/lekoder/rpgmaker-optimization. It rapidly increased my performance and when ever frame rates drops it will skip the frame. I wasn't having any problem in V 1.5.1 but V 1.6.1 seems a bit laggy to me. I am using Steam Version
@TengenTopka - I've just done "test run" with this plugin and ... I must say I got satisfying results.
I re-designed my game and I dropped resolution from 1920x1080 to 1408x792 and with my GPU (GeForce 210) in stress I got 40FPS. However my good friend who runs computer shop told me today that in three weeks graphic cards prices will drop by 20%-30% so I'm aiming for better GPU.
But back to plugin - anyone who has some performance issuses - get this plugin and put in your game.

Original thread: https://forums.rpgmakerweb.com/threads/performance-issues-and-low-fps.94819/