Jump to content

createPickup - performance problem, low FPS


Killbean

Recommended Posts

Hello guys,

I am using MTA createPickup method (https://wiki.multitheftauto.com/wiki/CreatePickup) to create pickups in front of interiors. I am calling createPickup on serverside around 170 times (I have around 170 enterable interiors). But this takes my client FPS by a lot (about -20FPS). I dont understand why it takes so much FPS because pickups are rendered only from some distance.

Does anonyone know how to solve this? Thank you very much!

Link to comment

Thanks for a tip - I had some resource that recalculated distance to all pickups every frame. I deleted it, but it still takes around -12FPS continuous. It is more efficient to call createPickup on server or client? Or for long term performance it does not matter?

Thanks!

Link to comment
  • Moderators
15 minutes ago, Killbean said:

Thanks for a tip - I had some resource that recalculated distance to all pickups every frame. I deleted it, but it still takes around -12FPS continuous. It is more efficient to call createPickup on server or client? Or for long term performance it does not matter?

Thanks!

If everyone has to see, call it on server side.

Try to find which resource use the most CPU with performancebrowserhttps://wiki.multitheftauto.com/wiki/Resource:Performancebrowser
- use the following option to see detailed informations: d

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...