| CPC G06T 1/20 (2013.01) | 19 Claims |

|
1. A rendering method, wherein the method is applied to an electronic device, the electronic device runs an application, the electronic device comprises a first processor and a second processor, and the method comprises:
receiving, by the first processor, a rendering command delivered by the application, wherein the rendering command is used to instruct the second processor to render a first image based on a first resolution;
sending, by the first processor, a rendering instruction to the second processor, wherein the rendering instruction is used to instruct the second processor to render the first image;
generating, by the second processor, image data of the first image with a second resolution based on the rendering instruction, wherein the second resolution is not greater than the first resolution;
writing, by the second processor, the image data of the first image with the second resolution into a first memory;
reading, by the second processor, image data of the first image with a third resolution from the first memory, wherein the third resolution is greater than the second resolution; and
generating, by the second processor, the first image based on the image data of the first image with the third resolution;
wherein if a rendering manner of the application is forward rendering, the rendering instruction corresponds to a first framebuffer, and a quantity of drawing instructions executed on the first framebuffer is greater than a preset threshold; and
if the rendering manner of the application is deferred rendering, the rendering instruction corresponds to a framebuffer other than a last framebuffer in all framebuffers delivered by the application.
|