I just switched over my game from UDP to HDRP, and it seems the camera’s HDRP script is causing lag spikes. When I remove the MainCamera and play the game, the lag spikes go away even when I move around in the world. (obviously cant see anything though). Each spike is a different call in the function that I selected there.
Any idea what could be causing this?
All of the lag spikes are under that first one InI_ExecuteRenderGraph, but each time they end with a different function call, the first spike is waiting on
RenderGraphResourceRegistry.GetTextureResource()
is Stack1.get_Count() under RenderGraphObjectPool.GetTempArray()
is ResourceHandle.get_iType()
is Object.IsNativeObjectAlive()
and so on for each spike.
Its never the same thing. Each one takes 400ms and causes a lag spike, not sure how they could be connected though