I'm using Tile-Based Deferred rendering and I have run into an issue with my lights flickering.
For a long time now I would just add all my lights at once and let the renderer do its thing eg. build a big light list while generating my world data and just upload the light list to the GPU and leave it there.
This wasn't an issue because I can render 1000's of lights and the render would just take it but because I'm not uploading them every frame the lights are static and that works well for world lights but now I want my projectiles\other things to have dynamic lights so I now upload the light list every frame after culling it with my octree\frustum of course and it works well apart from flickering as I pan the camera\frustum moves.
I update my mesh data the same way and meshes don't flicker so I'm kinda stumped, I have tried offsetting the frustum I use for culling so that my camera is about 25% inside the frustum rather than have the frustum start at the camera position and also widening the FOV.
If there is any code you need to see let me know.
It happens to all the lights but I notice it much more as the light moves from in front of me to the sides of the screen, it seem like it would be the lights flickering off for a frame, I have been trying to debug it with the VS GFX tools but I only happens when the camera moves, as soon as I stop moving the lights are fine, I'm trying to cap a frame that shows the lights in the midst of a flicker so I can check for NAN's or Inf. I had a read of another answer for the same type of thing but his fix didn't do anything.
Last night I also tried changing the way I do my containment\intersection tests and still no change.
My directional light is fine no flickering there its just point lights\spot lights that flicker.
While writing this I had a brain storm, another thing I did over the weekend was offset my camera to a 3rd person view so maybe I'm passing my player object position to the renderer and not the actual offset camera position.