Jump to content

Performance issues!

Closed 2.3 1.1.1

MaLai

Hello,

 

It looks like the plugin is causing a huge performance issue.

Whenever the plugin gets loaded after around 2hours the server goes into "slow motion". It feels like we just have 5fps. Everything is slow motion and you can't really play anymore. If we unload the plugin then everything runs instantly smooth like before.

 

We tested this multiple times. Every 2-3hours is this happening and it's only getting back to work normally when we unload the plugin.

 

 

Share this comment


Link to comment


@MaLai Hey, Sorry but we couldn't recreate the issue with VehicleHud 2.3
I tested this in few of my clients active server and it was there more than a day, didnt faced any issues, like lags or servers slows down etc. 
Also its just a simple EngineStart on hook and only counts when they start riding on it!
Can you provide more info on this. or join Discord and explain the situation
https://discord.com/invite/cCWadjcapr

Share this comment


Link to comment

Hmm I don't know if I should write this because we payed for a plugin that not only us brings a huge performance issue on our server.

But since not every server have his own developer I will write the solution for the problem. For the future: ask other developer if they can help you. It's not our job to find the solution for a issue like this. It's your job to find the problem because you get payed for the plugin. This is what our developer said about the plugin:

 

The plugin is wrote from a newbie. To many mistakes and things a experience dev never would do.

The plugin starts on each engine start a timer. The problem its only checking if a player already have a timer. It's not checking or deleting the timer when a player left the vehicle. So the timer will still run all the time. If a player rides another vehicle another timer will be started and so on. We have around 130 different players per day. If every player runs two vehicles then there are 260 timers running...the whole time! Until the server can't handle any more timers and break up.

The solution is: make also a routine if a player left the vehicle that the plugin stops and deleting the timer.

Also the plugin is bigger than most other plugins. You just copied each function for every vehicle instead of making it with just one variable. This would make the plugin much smaller and you would save over 1000 lines.

The plugin runs after one hour already with a 400sec hook time.

 

Hopefully you will this fast.

Edited by MaLai

Share this comment


Link to comment

Sorry I understand it wrong. Its creating always a new timer instead of using the exist one. So starting a car 10x times creates 10 timers without deleting the old ones. And yes old timers will still runs until the plugin gets unloaded.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.7k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.