Game lags when a quad background is added.
My game was functioning at 60fps consistently until I added a quad background.
The background is a quad with the standard shader placed behind all the scene game objects. It is very large so that it covers the whole screen when viewed by the camera.
It is not static, it moves exactly as the camera moves to keep the background fixed.
It has shadows disabled (both casting and receiving). It uses metallic property of the shader. It has light probes and reflection probes disabled.
The lag happens periodically when the FPS momentarily falls to about 40 fps.
I have only two scenes: a start menu and my game scene. I switch between scenes by doing SceneManager.LoadScene(/* 0 or 1 */)
I don't do any object deletion because I have read that it is taken care of by LoadScene.
How do I investigate what is causing this lag? I can even confirm that by removing the quad, the game doesn't have the lag anymore.
Thank you
Your answer
Follow this Question
Related Questions
Is anybody else completely unable to use Unity? 2 Answers
Unity Beta Lagging In Worst Conditions (i mean horribly) 0 Answers
lag in android device but fps is good 0 Answers
Game FPS suddenly slow on Android 1 Answer
Unity lagging when isn't running game 0 Answers