Embodiments of this application relate to the field of electronic technologies. Provided are a rendering method and apparatus, a device, and a storage medium. In a
graphics rendering process, for a to-be-rendered model included in to-be-rendered data, when the to-be-rendered model meets a first condition,
ray tracing rendering is performed on the to-be-rendered model based on first
ray emission density; or when the to-be-rendered model meets a second condition,
ray tracing rendering is performed on the to-be-rendered model based on
second ray emission density. When the first condition is different from the second condition, the first ray emission density is different from the
second ray emission density. In the technical solution, when a condition met by the to-be-rendered model changes, ray emission density for performing ray tracing rendering can be adaptively adjusted, which reduces
power consumption during rendering and improves rendering efficiency while ensuring a rendering effect.