Description
Once, there was an issue with Raycasts. At first I thought it was the Raycasts themselves.
But there were issues, and one of the issues is caused by Roblox’s default CameraModule.
These lag spikes are from the default CameraModule script that comes with Roblox.
The causing function seems to be queryPoint from PlayerModule.CameraModule.ZoomController.Popper. And these lag spikes happen on every hardware.
So, there’s a community attempt and Roblox’s attempt.
Both have in common that they try to “pierce” through things, but there seems to be something wrong with parts that are stacked into each other, and or parts that are slightly positioned differently.
Whenever there are stacked parts, the script handles something wrong, and it seems to have issues piercing through. The piercing gets stuck, and it “loops” through these forever. And because of it recursively triggering this function everytime, it causes these lag spikes.
Re-production Steps
-
Open the re-production place file from the Private Message.
-
Delete
PlayerModuleDisabledorPlayerModuleif there is any, as that is my override, that I kept there. -
Start the game with F5 or similar.
-
Go to this thing
-
Make the camera collide on these parts, by holding Right Click and moving it around.
Expected Result
No performance impact, but the camera stops at where it should stop. ![]()
Actual Result
A lot of spikes in the MicroProfiler.
A private message is associated with this bug report






