Killbean Posted April 21, 2021 Share Posted April 21, 2021 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
Moderators Patrick Posted April 21, 2021 Moderators Share Posted April 21, 2021 Hi. 170 markers should not cause continuous FPS drops, after creation. Maybe you have an onClientRender event where you loop trough these markers in every frame? Or something similar? 1 Link to comment
Killbean Posted April 22, 2021 Author Share Posted April 22, 2021 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 Patrick Posted April 22, 2021 Moderators Share Posted April 22, 2021 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 performancebrowser: https://wiki.multitheftauto.com/wiki/Resource:Performancebrowser - use the following option to see detailed informations: d Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now