This application relates to the field of
image processing and display technology, and provides an
image processing method, electronic device, and storage medium based on a vertical
synchronization signal. The method includes: the electronic device responding to a first vertical
synchronization signal to render and cache a first layer in a first buffer
queue at a first moment. At the first moment, after a second vertical
synchronization signal and when there is no first
image frame to be refreshed and displayed in the third vertical synchronization
signal, the electronic device immediately triggers layer
compositing of the first layer to obtain a second
image frame. The second vertical synchronization
signal follows the first vertical synchronization
signal and is spaced at a first preset period, while the third vertical synchronization signal follows the second vertical synchronization signal and is spaced at a second preset period. Therefore, by triggering immediate
compositing when there is a
delay in rendering the first layer and the corresponding third vertical synchronization signal can refresh and display the second
image frame, frame dropping can be avoided, ensuring smooth
image display.