-
公开(公告)号:US20180329742A1
公开(公告)日:2018-11-15
申请号:US15974002
申请日:2018-05-08
Applicant: MediaTek Inc.
Inventor: Tzu-Jen Lo , Yu-Ming Lin , Te-Hsin Lin , Shu-Mei Huang , Po-Ting Chen
CPC classification number: G06F9/4887 , G06F9/5027
Abstract: Frame running time of a device is estimated dynamically. The device includes a processor that executes threads of an application, and a graphics processor that receives commands from the processor for rendering frames. For each frame, the processor records a timer period for each thread in a set of threads that contribute to operations of a render thread. The render thread writes the commands for the graphics processor to render the frames. Each thread in the set of threads has a corresponding timer that controls a sleep state of the thread. The processor calculates a frame non-running time for a current frame using recorded one or more timer periods, and calculates the frame running time for the current frame by subtracting the frame non-running time from an end-to-end frame period.