The invention discloses a real-time dynamic light and shadow rendering optimization method based on an unreal engine, and relates to the field of light and shadow rendering, and the method comprises the steps: firstly distributing shadow importance scores for all grid objects in a scene based on a camera view cone and AI
context data, and carrying out the priority
ranking of potential shadow projectors; and then, performance budget evaluation is carried out in combination with the current
frame rate and the GPU load, and intelligent shadow
projector selection and LOD application are carried out on the sorted shadow projection object
list according to the performance budget evaluation. And finally, the optimized shadows to be rendered are sent to a light
visual angle rendering and VSM page filling process in batches, and a movable
light source optimization virtual schlieren is generated. According to the method, the unnecessary calculation overhead is remarkably reduced, so that the rendering efficiency and the
frame rate stability are greatly improved while the high-quality dynamic light and
shadow effect is ensured, and the core problem that the traditional performance and quality are difficult to balance is effectively solved.