But didn’t you say on your google phone pixel or whatever you got like 40-50 fps? That’s pretty good. Also, it might just be that games like jailbreak and phantom forces were optimized really well. Jailbreak’s map is huge and its content but badcc is a very talented developer and I average 60 FPS on it, phantom forces also had a very talented scripter back then who probably kept it well optimized. The same can be said for other front page games as obviously they must’ve been optimized well (like really really well) to get on the front page. Not saying yours isn’t optimized, my PC was still averaging 60 FPS. But it might be that those games despite their largeness are just optimized more than yours. But yours is still playable so thats all that really matters.
Yes its playable, however, it just doesnt sit well with me. If other devs can optimize well then I can too, well I should but I dont know where to start
It could be one model or a few, maybe you didn’t find the right one yet.
I had someone put a cupcake model in my game one time and that single model had so many tris in it that if you got anywhere near it the game would lag so bad it was ridiculous. One tiny little cupcake did that.
(it had so many meshes in the model each one with many thousands of tris)
yeah something doesnt match up, im getting 180 fps in studio where the map is, so it cant be a part?
Why is your max fps higher than 60fps?
there are fps unlockers that can show u how much fps you should be getting, roblox automatically caps fps at 60 for some reason
however i dont think the problem is the map, i disabled all scripts and im getting a higher fps
this is weird but, I disabled all scripts

the time for renderjob is below 1ms now? when it would usually be from 7 - 23?
In studio your FPS is higher because studio servers are more optimized than regular ones. But still, I think this is just your device or something. Maybe your PC is filled with some junk that it doesn’t need which is slowing it down.
again, this doesnt make sense if my fps is fine in other roblox games, why is my game the odd one out?
figure out which scripts have heartbeat or renderstepped connections and disabled all of those, then enable them one at a time till you find which one is causing the lag.
if its not one of those 2 then it could be a regular while loop then it’ll be harder to find if you have a lot of scripts.
if you don’t have a lot of scripts you could turn them all on one at a time. or just try disabling only the suspect scripts and see if you guess the right one.
To be honest I have no idea, you’ve done everything. I guess your game can be the odd one out.
Actually @xipped I think I might have the answer. Adding to what this guy was saying if you have any loops or runservice connections on the client-side then minimize or get rid of those. Our FPS might be fine because we have good PCs but some slower PCs like yours might not be able to handle them. The server is probably fine though because if that was lagging the rest of us would lag too, not just you in particular. Some clients’ devices can handle lag better than others, so it might be that the loops don’t affect my or anyone else’s PC and just yours because yours can’t handle as much.
I see, there are loops in my game that I keep there
Are there alot on the client-side? Because that will directly impact the client’s FPS, that’s probably why the rest of us are fine. But, I think the server-side is optimized otherwise all of us would be lagging out.
these are the only 4 runservice loops that are constantly on
these are loops that are constantly on too
I tried optimizing this script at much as possible
theres over 220 items that are affected by wind, and if you realize I use bones for numerous stuff
Clothing, Basketball Hoop Nets, Banners and Cloths
Firstly can I just say while wait() do
is a bad move for two reasons, number 1 is that the :wait()
method is deprecated and is more inaccurate than task.wait() so use task.wait() instead of wait() (don’t worry its just four more letters to fix in your scripts). Second reason is that it is better to do something like while true do and then put a task.wait() inside of the loop instead (that one is a bit of a nitpick). Okay so now that that’s out of the way the optimization, I still don’t think this would cause huge optimization problems but try just disabling the scripts with these loops on the client and see what happens, maybe your FPS will fix up. If it does then that was obviously the issue.
And preloading assets with contentprovider on the client for optimization didn’t help either?
nope didnt help, but i still keep that code in the game
Yeah so maybe try just disabling those scripts temporarily right now, (the ones with loops on the client) and see if that changes anything.
So after trying to fix the lag it somehow got worse, I feel like theres nothing I can really do so I’m giving up on this project. Thanks though for all the help