Patent ID: 11935149
Assignee: SAMSUNG ELECTRONICS CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 0:
1. An electronic device comprising:
a display;
a memory; and
a processor configured to be operatively connected to the display and the memory,
wherein the processor is configured to:
generate a main thread related to a user input and data processing on an application in response to execution of the application and a render thread related to rendering image data in units of frames based on data processed by the main thread,

configure a target frame rate for displaying an execution screen of the application on the display,
calculate an expected processing time of the render thread for processing a current frame based on a processing time of at least one previous frame output through the display,
determine a time margin based on the target frame rate and the calculated expected processing time, and
process the user input and perform data processing by the main thread after the main thread waits in a sleep state for the time margin, wherein the user input is received while the render thread is processing the current frame.