I have a game, that runs perfectly fine in studio (+60 fps) but as soon as i go an play test it i get 35 fps max, i have tried StreamingEnabled but it doesnt improve performance at all (it may be decreasing it but i could be wrong).
I have tried some tips such as StreamingEnabled, Voxel Lightning, …
So does anybody have ideas/tips to improve performance?
nope, in serverstorage there are only the tanks for the game, effects for the game and debug things and in ReplicatedStorage there are only RemoteEvents
The issue for studio running better is probably because the screen in studio is normally much smaller than the screen in the default roblox game. Your computer can render much less depending on how small the screen is.
If you have alot of unions/meshes in the game it will definitely lag out. Try to pinpoint laggy objects by going near them and see if your frames drop. And if you can replace those objects with something less laggier.
If you only lag in playtest you need to check your scripts. If you don’t lag in studio and your scripts are perfect you shouldn’t lag in playtest. If you don’t lag in Roblox Player then check your server scripts. If you do lag in Roblox Player check your local scripts.
well i lag when playtesting in studio and in the roblox player but i even used the profiler to maybe find the issue but i didnt so, what should i test/look out for?
well the area of lag is the whole map, if most of the map is in view the fps drops, altho i have tried to replace trees with trees with less parts and so on and it kinda improved perfromance.
But i did notice when i was aiming/in the scope the fps went back to +60 so it could either be a issue with a cam script ot the amout of objects in view
You could try adding some fog so it doesn’t have to render so much or you could turn off shadows for some parts or objects that have a lot of shadow that’s not that visible!
Sadly i cant really turn up the fog cause you need to be able to see things in a distance, and i have tried to turn off shadows for the trees and bushes but it didnt do anything performance wise. Maybe i used the wrong settings for StreamingEnabled but im not sure
Edit: idk if its relevant but, i only get the fps drops on the client, when i playtest and the go to the server view the fps are fine again
ok, if you want to take a look at the cam scripts:
(sets the cam to the scope view)
local UpdateCam = function()
RunService.Heartbeat:Connect(function()
if InScope == true then
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CameraSubject = TankObj.Tank.TurretGroup.BarrelGroup.BarrelParts.Barrel.ScopePart
Camera.CFrame = TankObj.Tank.TurretGroup.BarrelGroup.BarrelParts.Barrel.ScopePart.CFrame
end
end)
end