INSANE graphics glitches in my game

For no apparent reason, sometimes when I play my game, it experiences INSANE visual artefacts that HUGELY impact gameplay. This happens both in-game and in-studio.

GIFs showing how my game is supposed to look:
https://i.gyazo.com/2b7baf1597402a5e557851ff6c5bbe53.gif
https://i.gyazo.com/224dd84cd9d8b380f091212f8bfd2293.gif

Some GIFs showing the glitch:
https://i.gyazo.com/117a5f535e92766dd6fc00ab8eb762fe.gif
https://i.gyazo.com/3b31b5ceba16e95f7e931a21f607fd8d.gif

This is an absolutely gigantic issue and I have zero clue as to why it happens. Iā€™m fairly certain itā€™s not a fault of any scripts and thereā€™s most likely no viruses in my game (I never use free models but I have a few plugins) Please let me know if anyone knows what causes it and how to fix it.

1 Like

How did you get the gifs of what itā€™s supposed to look like? What did you change in between the two gifs?

Are your graphics drivers up to date, if so, try getting a friend to play it on their computer and see if it still happens.

Very odd that your character doesnā€™t move correctly in the glitches GIFs, is this a published place? And if so, can you try to download a older copy of the game and test if the graphical glitches occur

floating point error Iā€™m guessing

1 Like

I just closed the game and rebooted it. I will try seeing from another device if this glitch happens and will check my graphics drivers.

Yes, itā€™s published and Iā€™ve had players on it before. Iā€™ll try the previous versions too.

I always make sure to create my games starting at 0, 0, 0 so I doubt this is the issue.

1 Like

Just to be sure, you should disable every single script in your game, then play test your game and see if the issue is resolved or not

It almost looks like Roblox is trying to discard objects from rendering because it thinks they might not be ā€œvisibleā€.

I recall the camera in workspace has a second property the focus property.

Have you tried checking itā€™s CFrame and LookVector and see where itā€™s at?
This might sound weird and unrelated but I just remember that Roblox uses the focus property to determine what has priority in rendering.

1 Like

Have you tried any free models from the toolbox?
Have you recently installed any new plugins?
Does anyone else have access to the game through Team Create? If so they may have inadvertently installed a model or plugin thatā€™s affected the game.
Does it happen to other players now?

Thatā€™s pretty weird. Iā€™d check on the client if the parts are just visually disappearing, that would cross off streaming and maybe some script problems.

I would try turning off streaming enabled (property under Workspace) and see if it still happens. (It doesnā€™t look very much like stuff streaming out though.)

Update: Havenā€™t experienced this glitch for a while now. Still have no idea what caused it but I think itā€™s related to my laptop overheating and frying my graphics card. lol.

1 Like

Update: This issue is still happening if I add this line of code into my Animate script.

For context, ā€˜Gyroā€™ is an AlignOrientation and the goal was to have rotation using AlignOrientation in my custom animate script so itā€™s smoother and I can change the speed of changing directions when swinging a weapon.

100% of the time, removing this specific line will stop the visual glitches.

Visual glitch:
https://i.gyazo.com/68b13f164938f0fa32d851c1ed878709.mp4

How itā€™s supposed to look:
https://i.gyazo.com/a99432b5accaa18a6dc93e2b9b627ff1.mp4

Fixed completely by commenting out this one line.

Maybe the force may be too high? If it is it will might do those glitches.

The properties on the AlignOrientation have always been like this:
image

Iā€™m fairly sure there isnā€™t a ā€˜forceā€™ value on AlignOrientation.

This also wouldnā€™t explain why setting the CFrame of the AlignOrientation would make it glitch out like that, I even set the CFrame similarly just a few lines above it.

I fixed the issue. For some reason using CFrame.lookAt can return very strange and long CFrame values which seems to cause issues to do with streaming. I tried disabling streaming but that didnā€™t work, so I tried instead to shorten the abnormal numbers using math.round.

Before:

After:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.