I would like to know if there is a better way to optimize the SurfaceGui text in my game.
I know it’s a common thing for the text to disappear on a SurfaceGui by looking at a certain camera angle if it’s big enough, but the problem is that if I look down just a slight bit the text will disappear. There is also an issue with the SurfaceGui text where if you’re far away from an area with lots of SurfaceGuis already, the SurfaceGui in the area you are currently in will just disappear completely if you look straight forwards.
This happens I’m certain because behind this area (which is a second lobby for more experienced players) is the main lobby which also has a heavy amount of SurfaceGui text. This is especially a problem because there is also a boss fight area in this game with a sign that tells you how much time you have left to defeat the boss, looking at a certain direction (likely towards the two lobby areas with all the signs) will cause the sign to be unreadable making it harder for players to tell how much time they have left to defeat the boss.
Currently I have tried compiling all of the TextLabels into one SurfaceGui for each billboard card (the ones with the names and stats, the ones with the moveset attacks, etc.) to prevent lag, which I believe has cleaned up some of the lag but looking down just a slight bit causes the text to disappear.
This might be due to the fact that I had to manipulate the size of the TextLabel itself (not the font size) to get it to fit within the SurfaceGui. I may try using a UIGridLayout (or something else, I’ve used the thing that arranges TextLabels into one neatly compiled list before, I just can’t exactly remember the name of it at the moment) so that way it’ll at least fix the disappearing by looking down slightly issue, but I don’t know if it’ll fix the disappearing by looking straight forwards issue from being far away from an area with lots of these signs though.
I also have StreamingIntegrityMode set to PauseOutsideLoadedAreas with the minimum streaming distance set to 64 and the maximum streaming distance set to 1024 (this game also uses large maps), I don’t know if that will help or not but I figured I’d just throw that in there just in case that would have something to do with this.
Let me know if you have any advice on the matter, thank you! ^ ^





