Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Bahamut-XIV on July 20, 2020, 09:26:19 am

Title: RMX-OS Party HUD
Post by: Bahamut-XIV on July 20, 2020, 09:26:19 am
Hallo ik currently making a online game With RMXP
The server and game works but now is my problem the following i use this party hud for online members RMX-OS Party HUD https://forum.chaos-project.com/index.php?topic=14424.0 but it gives a lot of lag and my Fps Will drop 4 its dramatic so i wonder if Anyone can help me

I am Very bad scripter in rmxp / normally im a web designer with php/mysql
So that have helped me with some stuff

Thank you in advance
Title: Re: RMX-OS Party HUD
Post by: KK20 on July 21, 2020, 03:57:02 am
Without installing RMX-OS (because it's too much of a hassle for me to bother), I can only look at the script and give you my best educated guess.

It seems like this code was written poorly when it comes to efficiency. In his update methods, he is constantly creating a new Sprite object, which, if this happens every frame, will be a heavy hit to performance. I don't know why it's doing this, but you can easily get away with just creating the Sprite objects on initialize (and performing whatever bitmap and positional changes to them) and then remove all the Sprite.new calls in the updates. Then the update methods only have to worry about updating the sprites' bitmap, or turning its visible flag to false when not in use.

I will warn you though, RMX-OS is not for beginners and will require a good understanding of Ruby if you want to truly utilize it.