Hi! I haven’t been on devforum for a while so I am happy to be back
I need some help hopefully you all can help me.
I made a new game a hangout for Roblox users, my main game is so laggy and never used to be this way. We added more parts, free models, scripts, etc. I already checked all the scripts and I don’t see any that are a vaccines/virus’s I took out all the fire components but it lags even worse I tried looking on youtube and added an anti-lag script from a well-known YouTuber it made the loading faster but the game is still so slow. I would like to mention I am on Chromebook when playing Roblox (but I use my parent’s windows laptop to dev) Anyway it wasn’t laggy before is it possibly because of the free models I added? (I added a lot of them). I have also heard that unions can make your game a lot laggier too with using free models there are multiple unions in my game. Lastly, I am not sure how I can use fewer parts because I have heard using fewer parts will reduce lag. I want to really put effort and multiple fun things into my game, I am not sure what to do. Please can you guys give me some feedback?
Free models often are not optimized very well in my experience. They usually have more parts than are required to achieve a certain effect. This is one of the reasons why creators build or model things themselves; so they can have precise control of the amount of detail.
There also may be a good chance it’s just reaching the limit of what your device can handle.
Why is the bible so laggy? I’m playing on a gaming laptop, and nothing, not even satisfactory, has made my laptop chug so hard.
Edit: Also, when I left the game, Roblox just crashed.
Edit 2: 1gb of memory used, and mostly by parts, physics and graphics
Edit 3: All of the meshes are broken.
Yeah, I made a game with no free models hardly and the game literally has no lagg I will try to make a new game Version 2 hopefully not using much free models will help the lagg a lot. Thank you for the feedback!
I’ve played the game now, and there are a few things I notice.
First, my machine is down to only 51 FPS, and others have said they lag as well, so it is unlikely that it is just your device.
The other thing I notice is that some free models have a very high part count; specifically the buses out back stand out to me as potential perpetrators of lag.
Edit: I have confirmed the buses (or at least the back of the building) as a major lag producer because when I turn my camera towards them my FPS drops by 10-20 frames. Also, I discovered that by swimming in the water, you can get around the clip blocking the bus area, so that may need to be fixed.
An idea would be to not use freemodels, as 90% of the time they contain a virus that will cause your game to lag. Same with anti-lag scripts, they are usually virus too. Refrain from using too many unions and parts.
Limiting usage of unions and meshes (parts > instances)
Limiting use of freemodels
Limited usage of scripts with severely long lines of code
Referring to the previous point, do not use unions. Welcome a slightly higher part count with open arms, or mesh whatever union you can. Once again parts will always be more optimised than unions and/or an excessive amount of meshes.
Delete any unnecessary or hidden parts.
I’m personally not sure how I’m able to help your case specifically, as I have not seen the part and both instance count, same as the explorer tab. But these are all useful ways that I have optimised my previous maps.
First of all, hi! My name is shieldmr3, I’m a scripter and a game dev.
If you’ve ever noticed your game is lagging, try modeling most of the things and keep them organized, use models and folders. Try not to use free models as much as you can, as some of them might have viruses. If you’re going to use a free model, look inside all the parts/models in it, and check the scripts. Viruses are very clear and easy to find, you can just find them by looking once into the script.
I know everyone else said most of this, but I’m just trying to help. Hope you found my answer helpful! Thank you,
shieldmr3