[go: up one dir, main page]

CN117714788B - Stable frame scheduling method, device, terminal equipment and computer-readable storage medium - Google Patents

Stable frame scheduling method, device, terminal equipment and computer-readable storage medium Download PDF

Info

Publication number
CN117714788B
CN117714788B CN202310520291.6A CN202310520291A CN117714788B CN 117714788 B CN117714788 B CN 117714788B CN 202310520291 A CN202310520291 A CN 202310520291A CN 117714788 B CN117714788 B CN 117714788B
Authority
CN
China
Prior art keywords
temperature
frame rate
current
historical
predicted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310520291.6A
Other languages
Chinese (zh)
Other versions
CN117714788A (en
Inventor
李荻
姜仕双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310520291.6A priority Critical patent/CN117714788B/en
Publication of CN117714788A publication Critical patent/CN117714788A/en
Application granted granted Critical
Publication of CN117714788B publication Critical patent/CN117714788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4781Games

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application is applicable to the technical field of computer application, and provides a frame stabilizing scheduling method, a device, terminal equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring an expected frame rate and a current frame rate corresponding to a current application; acquiring the current temperature of the terminal equipment where the current application is located and historical temperatures at a plurality of historical moments, wherein the historical moments refer to display moments of a plurality of historical data frames before the current data frame; according to the expected frame rate, the current temperature and each historical temperature, determining the predicted temperature of the terminal equipment after the preset duration; determining a frame rate adjustment strategy corresponding to the current application according to the predicted temperature; and adjusting the current frame rate according to the frame rate adjustment strategy. Therefore, the temperature condition of the terminal equipment is prejudged in advance, and when the fact that the temperature is possibly too high is predicted, the frame rate of the application is slowly reduced in advance, so that the problem of frame dropping and blocking caused by sudden drop of the frame rate of the application is avoided, and the user experience is improved.

Description

稳帧调度方法、装置、终端设备及计算机可读存储介质Stable frame scheduling method, device, terminal equipment and computer-readable storage medium

技术领域Technical Field

本申请属于计算机应用技术领域,尤其涉及一种稳帧调度方法、装置、终端设备及计算机可读存储介质。The present application belongs to the field of computer application technology, and in particular, relates to a stable frame scheduling method, device, terminal equipment and computer-readable storage medium.

背景技术Background Art

随着智能手机等终端设备的大量普及与快速发展,智能手机等终端设备的功能也越来越完善,比如,用户可以通过智能手机运行各类型的游戏应用进行娱乐。在终端设备中运行大型游戏应用等功耗较高的应用时,由于场景复杂、交互频繁,因此给资源调度及功耗优化带来巨大的挑战。尤其是在一些功耗高的游戏应用中,长时间运行会导致终端设备温度过高,而导致用户被低温烫伤,以及对系统硬件(如屏幕、电池、主板等)造成不可逆损伤。With the widespread popularity and rapid development of terminal devices such as smartphones, the functions of terminal devices such as smartphones are becoming more and more complete. For example, users can run various types of game applications for entertainment through smartphones. When running large-scale game applications and other high-power applications in terminal devices, due to complex scenarios and frequent interactions, it brings huge challenges to resource scheduling and power consumption optimization. Especially in some high-power game applications, long-term operation will cause the terminal device temperature to be too high, resulting in low-temperature burns to users, and irreversible damage to system hardware (such as screens, batteries, motherboards, etc.).

相关技术中,对于一些功耗较高的游戏应用,通常采用温控限频限帧的策略来防止终端设备温度过高,即在终端设备的温度超过一定的限值时,将游戏应用的帧率和频点降低到一定水平之下,以降低终端设备的温度。然而,随着游戏时长的不断增加,这种限帧限频的策略不仅会导致系统性能急剧下降,发挥不了系统中央处理器和图像处理器的全部运算能力,而且会导致帧率骤降,造成掉帧卡顿,严重影响用户体验。In the related art, for some high-power gaming applications, a temperature control, frequency limiting and frame limiting strategy is usually used to prevent the terminal device from overheating. That is, when the temperature of the terminal device exceeds a certain limit, the frame rate and frequency of the gaming application are reduced to a certain level to reduce the temperature of the terminal device. However, as the gaming time continues to increase, this frame and frequency limiting strategy will not only cause a sharp decline in system performance, and fail to bring into play the full computing power of the system's central processor and graphics processor, but will also cause a sharp drop in frame rate, resulting in frame drops and freezes, which seriously affects the user experience.

发明内容Summary of the invention

本申请实施例提供了一种稳帧调度方法、装置、终端设备及计算机可读存储介质,可以解决采用温控限频限帧的策略来防止终端设备温度过高,不仅会导致系统性能急剧下降,发挥不了系统中央处理器和图像处理器的全部运算能力,而且会导致帧率骤降,造成掉帧卡顿,严重影响用户体验的问题。The embodiments of the present application provide a stable frame scheduling method, apparatus, terminal device and computer-readable storage medium, which can solve the problem of using a temperature control, frequency limiting and frame limiting strategy to prevent the terminal device from overheating, which not only causes a sharp decline in system performance and fails to exert the full computing power of the system's central processing unit and image processor, but also causes a sudden drop in frame rate, resulting in frame drops and freezes, seriously affecting the user experience.

第一方面,本申请实施例提供了一种稳帧调度方法,包括:获取当前应用对应的期望帧率及当前帧率;获取当前应用所在的终端设备的当前温度及在多个历史时刻的历史温度,其中,历史时刻是指处于当前数据帧之前的多个历史数据帧的显示时刻;根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度;根据预测温度,确定当前应用对应的帧率调整策略;根据帧率调整策略,对当前帧率进行调整。In the first aspect, an embodiment of the present application provides a stable frame scheduling method, including: obtaining an expected frame rate and a current frame rate corresponding to a current application; obtaining a current temperature of a terminal device where the current application is located and historical temperatures at multiple historical moments, wherein a historical moment refers to a display moment of multiple historical data frames before a current data frame; determining a predicted temperature of the terminal device after a preset time period based on the expected frame rate, the current temperature, and each historical temperature; determining a frame rate adjustment strategy corresponding to the current application based on the predicted temperature; and adjusting the current frame rate based on the frame rate adjustment strategy.

在第一方面的一种可能的实现方式中,上述根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度,包括:In a possible implementation manner of the first aspect, determining the predicted temperature of the terminal device after a preset period of time according to the expected frame rate, the current temperature, and each historical temperature includes:

根据期望帧率及各个历史温度,确定终端设备对应的温升速率;Determine the temperature rise rate corresponding to the terminal device based on the expected frame rate and each historical temperature;

根据当前温度、温升速率及预设时长,确定预测温度。Determine the predicted temperature based on the current temperature, temperature rise rate and preset duration.

可选的,在第一方面另一种可能的实现方式中,上述根据期望帧率及各个历史温度,确定终端设备对应的温升速率,包括:Optionally, in another possible implementation of the first aspect, determining the temperature rise rate corresponding to the terminal device according to the expected frame rate and each historical temperature includes:

确定每个历史时刻对应的温控窗口,其中,每个温控窗口中包括预设数量的历史温度;Determine a temperature control window corresponding to each historical moment, wherein each temperature control window includes a preset number of historical temperatures;

根据每个温控窗口中包括的各个历史温度,确定每个历史时刻对应的平均历史温度;According to each historical temperature included in each temperature control window, determine the average historical temperature corresponding to each historical moment;

根据历史时刻的数量及期望帧率,确定温控时长;Determine the temperature control duration based on the number of historical moments and the expected frame rate;

根据各个平均历史温度及温控时长,确定温升速率。Determine the temperature rise rate based on the average historical temperatures and temperature control duration.

可选的,在第一方面再一种可能的实现方式中,上述当前温度包括当前系统温度及当前壳温,上述历史温度包括历史系统温度及历史壳温;相应的,上述根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度,包括:Optionally, in another possible implementation of the first aspect, the current temperature includes a current system temperature and a current shell temperature, and the historical temperature includes a historical system temperature and a historical shell temperature; accordingly, determining the predicted temperature of the terminal device after a preset time period according to the expected frame rate, the current temperature, and each historical temperature includes:

根据期望帧率、当前系统温度及各个历史系统温度,确定终端设备在预设时长后的预测系统温度;Determine the predicted system temperature of the terminal device after a preset time period based on the expected frame rate, the current system temperature and various historical system temperatures;

根据期望帧率、当前壳温及各个历史壳温,确定终端设备在预设时长后的预测壳温;Determine the predicted shell temperature of the terminal device after a preset time period based on the expected frame rate, the current shell temperature and each historical shell temperature;

根据预测系统温度及预测壳温,确定预测温度。Determine the predicted temperature based on the predicted system temperature and the predicted shell temperature.

可选的,在第一方面又一种可能的实现方式中,上述根据预测温度,确定当前应用对应的帧率调整策略,包括:Optionally, in yet another possible implementation of the first aspect, determining the frame rate adjustment strategy corresponding to the current application according to the predicted temperature includes:

在预测温度小于或等于第一预警温度时,将帧率调整策略确定为保持当前帧率不变;When the predicted temperature is less than or equal to the first warning temperature, the frame rate adjustment strategy is determined to keep the current frame rate unchanged;

在预测温度大于第一预警温度时,将帧率调整策略确定为降低当前帧率。When the predicted temperature is greater than the first warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate.

可选的,在第一方面又一种可能的实现方式中,上述在预测温度大于第一预警温度时,将帧率调整策略确定为降低当前帧率,包括:Optionally, in yet another possible implementation of the first aspect, when the predicted temperature is greater than the first warning temperature, determining the frame rate adjustment strategy to reduce the current frame rate includes:

在预测温度大于第一预警温度且小于或等于第二预警温度时,将帧率调整策略确定为以第一降帧幅度降低当前帧率,其中,第二预警温度大于第一预警温度;When the predicted temperature is greater than the first warning temperature and less than or equal to the second warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate by the first frame reduction amplitude, wherein the second warning temperature is greater than the first warning temperature;

在预测温度大于第二预警温度时,将帧率调整策略确定为以第二降帧幅度降低当前帧率,其中,第二降帧幅度大于第一降帧幅度。When the predicted temperature is greater than the second warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate by a second frame reduction amplitude, wherein the second frame reduction amplitude is greater than the first frame reduction amplitude.

可选的,在第一方面另一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还包括预先训练的温度与帧率调整策略的映射关系;相应的,上述根据预测温度,确定当前应用对应的帧率调整策略,包括:Optionally, in another possible implementation manner of the first aspect, the predicted temperature is determined by using a pre-trained frame stabilization decision model, and the pre-trained frame stabilization decision model also includes a mapping relationship between the pre-trained temperature and the frame rate adjustment strategy; accordingly, determining the frame rate adjustment strategy corresponding to the current application according to the predicted temperature includes:

根据预测温度及温度与帧率调整策略的映射关系,将与预测温度对应的帧率调整策略,确定为帧率调整策略。According to the predicted temperature and the mapping relationship between the temperature and the frame rate adjustment strategy, the frame rate adjustment strategy corresponding to the predicted temperature is determined as the frame rate adjustment strategy.

可选的,在第一方面再一种可能的实现方式中,上述根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度之后,还包括:Optionally, in another possible implementation of the first aspect, after determining the predicted temperature of the terminal device after a preset time period according to the expected frame rate, the current temperature, and each historical temperature, the method further includes:

根据预测温度,确定当前应用对应的帧率容忍度调整策略;Determine the frame rate tolerance adjustment strategy corresponding to the current application based on the predicted temperature;

根据帧率容忍度调整策略,对当前应用对应的当前帧率容忍度进行调整。According to the frame rate tolerance adjustment strategy, the current frame rate tolerance corresponding to the current application is adjusted.

可选的,在第一方面又一种可能的实现方式中,上述根据预测温度,确定当前应用对应的帧率容忍度调整策略,包括:Optionally, in yet another possible implementation of the first aspect, determining the frame rate tolerance adjustment strategy corresponding to the current application according to the predicted temperature includes:

在预测温度小于或等于安全温度时,将帧率容忍度调整策略确定为降低当前帧率容忍度;When the predicted temperature is less than or equal to the safe temperature, the frame rate tolerance adjustment strategy is determined to reduce the current frame rate tolerance;

在预测温度大于安全温度且小于或等于第一预警温度时,将帧率容忍度调整策略确定为保持当前帧率容忍度不变;When the predicted temperature is greater than the safe temperature and less than or equal to the first warning temperature, the frame rate tolerance adjustment strategy is determined to keep the current frame rate tolerance unchanged;

在预测温度大于第一预警温度时,将帧率容忍度调整策略确定为升高当前帧率容忍度。When the predicted temperature is greater than the first warning temperature, the frame rate tolerance adjustment strategy is determined to increase the current frame rate tolerance.

可选的,在第一方面又一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还包括预先训练的温度与帧率容忍度调整策略的映射关系;相应的,上述根据所述预测温度,确定当前应用对应的帧率容忍度调整策略,包括:Optionally, in another possible implementation manner of the first aspect, the predicted temperature is determined by using a pre-trained frame stabilization decision model, and the pre-trained frame stabilization decision model also includes a mapping relationship between the pre-trained temperature and the frame rate tolerance adjustment strategy; accordingly, determining the frame rate tolerance adjustment strategy corresponding to the current application according to the predicted temperature includes:

根据预测温度及温度与帧率容忍度调整策略的映射关系,将与预测温度对应的帧率容忍度调整策略,确定为帧率容忍度调整策略。According to the predicted temperature and the mapping relationship between the temperature and the frame rate tolerance adjustment strategy, the frame rate tolerance adjustment strategy corresponding to the predicted temperature is determined as the frame rate tolerance adjustment strategy.

可选的,在第一方面另一种可能的实现方式中,上述根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度之后,还包括:Optionally, in another possible implementation of the first aspect, after determining the predicted temperature of the terminal device after a preset time period according to the expected frame rate, the current temperature, and each historical temperature, the method further includes:

根据预测温度,确定终端设备对应的处理器频点调整策略;Determine the processor frequency adjustment strategy corresponding to the terminal device based on the predicted temperature;

根据处理器频点调整策略,对终端设备对应的当前处理器频点进行调整。According to the processor frequency adjustment strategy, the current processor frequency corresponding to the terminal device is adjusted.

可选的,在第一方面再一种可能的实现方式中,上述根据预测温度,确定终端设备对应的处理器频点调整策略,包括:Optionally, in another possible implementation of the first aspect, determining the processor frequency adjustment strategy corresponding to the terminal device according to the predicted temperature includes:

在预测温度小于或等于第二预警温度时,将处理器频点调整策略确定为保持当前处理器频点不变;When the predicted temperature is less than or equal to the second warning temperature, the processor frequency adjustment strategy is determined to keep the current processor frequency unchanged;

在预测温度大于第二预警温度时,将处理器频点调整策略确定为降低当前处理器频点。When the predicted temperature is greater than the second warning temperature, the processor frequency adjustment strategy is determined to reduce the current processor frequency.

可选的,在第一方面又一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还包括预先训练的温度与处理器频点调整策略的映射关系;相应的,上述根据预测温度,确定终端设备对应的处理器频点调整策略,包括:Optionally, in another possible implementation manner of the first aspect, the predicted temperature is determined using a pre-trained stable frame decision model, and the stable frame decision model also includes a mapping relationship between a pre-trained temperature and a processor frequency adjustment strategy; accordingly, determining the processor frequency adjustment strategy corresponding to the terminal device according to the predicted temperature includes:

根据预测温度及温度与处理器频点调整策略的映射关系,将与预测温度对应的处理器频点调整策略,确定为处理器频点调整策略。According to the predicted temperature and the mapping relationship between the temperature and the processor frequency adjustment strategy, the processor frequency adjustment strategy corresponding to the predicted temperature is determined as the processor frequency adjustment strategy.

第二方面,本申请实施例提供了一种稳帧调度装置,包括:第一获取模块,用于获取当前应用对应的期望帧率及当前帧率;第二获取模块,用于获取当前应用所在的终端设备的当前温度及在多个历史时刻的历史温度,其中,历史时刻是指处于当前数据帧之前的多个历史数据帧的显示时刻;第一确定模块,用于根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度;第二确定模块,用于根据预测温度,确定当前应用对应的帧率调整策略;第一调整模块,用于根据帧率调整策略,对当前帧率进行调整。In the second aspect, an embodiment of the present application provides a stable frame scheduling device, including: a first acquisition module, used to obtain the expected frame rate and the current frame rate corresponding to the current application; a second acquisition module, used to obtain the current temperature of the terminal device where the current application is located and the historical temperatures at multiple historical moments, wherein the historical moment refers to the display moment of multiple historical data frames before the current data frame; a first determination module, used to determine the predicted temperature of the terminal device after a preset time period based on the expected frame rate, the current temperature and each historical temperature; a second determination module, used to determine the frame rate adjustment strategy corresponding to the current application based on the predicted temperature; a first adjustment module, used to adjust the current frame rate according to the frame rate adjustment strategy.

在第二方面的一种可能的实现方式中,上述第一确定模块,包括:In a possible implementation manner of the second aspect, the first determining module includes:

第一确定单元,用于根据期望帧率及各个历史温度,确定终端设备对应的温升速率;A first determining unit, configured to determine a temperature rise rate corresponding to the terminal device according to an expected frame rate and each historical temperature;

第二确定单元,用于根据当前温度、温升速率及预设时长,确定预测温度。The second determination unit is used to determine the predicted temperature according to the current temperature, the temperature rise rate and the preset time.

可选的,在第二方面另一种可能的实现方式中,上述第一确定单元,具体用于:Optionally, in another possible implementation manner of the second aspect, the first determining unit is specifically configured to:

确定每个历史时刻对应的温控窗口,其中,每个温控窗口中包括预设数量的历史温度;Determine a temperature control window corresponding to each historical moment, wherein each temperature control window includes a preset number of historical temperatures;

根据每个温控窗口中包括的各个历史温度,确定每个历史时刻对应的平均历史温度;According to each historical temperature included in each temperature control window, determine the average historical temperature corresponding to each historical moment;

根据历史时刻的数量及期望帧率,确定温控时长;Determine the temperature control duration based on the number of historical moments and the expected frame rate;

根据各个平均历史温度及温控时长,确定温升速率。Determine the temperature rise rate based on the average historical temperatures and temperature control duration.

可选的,在第二方面再一种可能的实现方式中,上述当前温度包括当前系统温度及当前壳温,上述历史温度包括历史系统温度及历史壳温;相应的,上述第一确定模块,包括:Optionally, in another possible implementation of the second aspect, the current temperature includes a current system temperature and a current shell temperature, and the historical temperature includes a historical system temperature and a historical shell temperature; accordingly, the first determining module includes:

第三确定单元,用于根据期望帧率、当前系统温度及各个历史系统温度,确定终端设备在预设时长后的预测系统温度;A third determination unit, configured to determine a predicted system temperature of the terminal device after a preset time period according to the expected frame rate, the current system temperature and each historical system temperature;

第四确定单元,用于根据期望帧率、当前壳温及各个历史壳温,确定终端设备在预设时长后的预测壳温;A fourth determination unit, configured to determine a predicted shell temperature of the terminal device after a preset time period according to an expected frame rate, a current shell temperature, and each historical shell temperature;

第五确定单元,用于根据预测系统温度及预测壳温,确定预测温度。The fifth determining unit is used to determine the predicted temperature according to the predicted system temperature and the predicted shell temperature.

可选的,在第二方面又一种可能的实现方式中,上述第二确定模块,包括:Optionally, in yet another possible implementation manner of the second aspect, the second determining module includes:

第六确定单元,用于在预测温度小于或等于第一预警温度时,将帧率调整策略确定为保持当前帧率不变;A sixth determining unit, configured to determine the frame rate adjustment strategy to keep the current frame rate unchanged when the predicted temperature is less than or equal to the first warning temperature;

第七确定单元,用于在预测温度大于第一预警温度时,将帧率调整策略确定为降低当前帧率。The seventh determining unit is configured to determine the frame rate adjustment strategy to reduce the current frame rate when the predicted temperature is greater than the first warning temperature.

可选的,在第二方面又一种可能的实现方式中,上述第七确定单元,具体用于:Optionally, in yet another possible implementation manner of the second aspect, the seventh determining unit is specifically configured to:

在预测温度大于第一预警温度且小于或等于第二预警温度时,将帧率调整策略确定为以第一降帧幅度降低当前帧率,其中,第二预警温度大于第一预警温度;When the predicted temperature is greater than the first warning temperature and less than or equal to the second warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate by the first frame reduction amplitude, wherein the second warning temperature is greater than the first warning temperature;

在预测温度大于第二预警温度时,将帧率调整策略确定为以第二降帧幅度降低当前帧率,其中,第二降帧幅度大于第一降帧幅度。When the predicted temperature is greater than the second warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate by a second frame reduction amplitude, wherein the second frame reduction amplitude is greater than the first frame reduction amplitude.

可选的,在第二方面另一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还包括预先训练的温度与帧率调整策略的映射关系;相应的,上述第二确定模块,包括:Optionally, in another possible implementation manner of the second aspect, the predicted temperature is determined by using a pre-trained frame stabilization decision model, and the pre-trained frame stabilization decision model also includes a mapping relationship between a pre-trained temperature and a frame rate adjustment strategy; accordingly, the second determination module includes:

第八确定单元,用于根据预测温度及温度与帧率调整策略的映射关系,将与预测温度对应的帧率调整策略,确定为帧率调整策略。The eighth determining unit is configured to determine, according to the predicted temperature and the mapping relationship between the temperature and the frame rate adjustment strategy, the frame rate adjustment strategy corresponding to the predicted temperature as the frame rate adjustment strategy.

可选的,在第二方面再一种可能的实现方式中,上述装置,还包括:Optionally, in another possible implementation of the second aspect, the apparatus further includes:

第三确定模块,用于根据预测温度,确定当前应用对应的帧率容忍度调整策略;A third determination module is used to determine a frame rate tolerance adjustment strategy corresponding to the current application according to the predicted temperature;

第二调整模块,用于根据帧率容忍度调整策略,对当前应用对应的当前帧率容忍度进行调整。The second adjustment module is used to adjust the current frame rate tolerance corresponding to the current application according to the frame rate tolerance adjustment strategy.

可选的,在第二方面又一种可能的实现方式中,上述第三确定模块,包括:Optionally, in yet another possible implementation of the second aspect, the third determining module includes:

第九确定单元,用于在预测温度小于或等于安全温度时,将帧率容忍度调整策略确定为降低当前帧率容忍度;a ninth determining unit, configured to determine, when the predicted temperature is less than or equal to the safe temperature, a frame rate tolerance adjustment strategy to reduce a current frame rate tolerance;

第十确定单元,用于在预测温度大于安全温度且小于或等于第一预警温度时,将帧率容忍度调整策略确定为保持当前帧率容忍度不变;a tenth determining unit, configured to determine, when the predicted temperature is greater than the safety temperature and less than or equal to the first warning temperature, a frame rate tolerance adjustment strategy to keep the current frame rate tolerance unchanged;

第十一确定单元,用于在预测温度大于第一预警温度时,将帧率容忍度调整策略确定为升高当前帧率容忍度。The eleventh determining unit is configured to determine the frame rate tolerance adjustment strategy to increase the current frame rate tolerance when the predicted temperature is greater than the first warning temperature.

可选的,在第二方面又一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还包括预先训练的温度与帧率容忍度调整策略的映射关系;相应的,上述第三确定模块,包括:Optionally, in yet another possible implementation manner of the second aspect, the predicted temperature is determined by using a pre-trained frame stabilization decision model, and the pre-trained frame stabilization decision model also includes a mapping relationship between a pre-trained temperature and a frame rate tolerance adjustment strategy; accordingly, the third determination module includes:

第十二确定单元,用于根据预测温度及温度与帧率容忍度调整策略的映射关系,将与预测温度对应的帧率容忍度调整策略,确定为帧率容忍度调整策略。The twelfth determining unit is configured to determine the frame rate tolerance adjustment strategy corresponding to the predicted temperature as the frame rate tolerance adjustment strategy according to the predicted temperature and the mapping relationship between the temperature and the frame rate tolerance adjustment strategy.

可选的,在第二方面另一种可能的实现方式中,上述装置,还包括:Optionally, in another possible implementation of the second aspect, the apparatus further includes:

第四确定模块,用于根据预测温度,确定终端设备对应的处理器频点调整策略;A fourth determination module, used to determine a processor frequency adjustment strategy corresponding to the terminal device according to the predicted temperature;

第三调整模块,用于根据处理器频点调整策略,对终端设备对应的当前处理器频点进行调整。The third adjustment module is used to adjust the current processor frequency corresponding to the terminal device according to the processor frequency adjustment strategy.

可选的,在第二方面再一种可能的实现方式中,上述第四确定模块,包括:Optionally, in yet another possible implementation of the second aspect, the fourth determining module includes:

第十三确定单元,用于在预测温度小于或等于第二预警温度时,将处理器频点调整策略确定为保持当前处理器频点不变;A thirteenth determining unit, configured to determine the processor frequency adjustment strategy to keep the current processor frequency unchanged when the predicted temperature is less than or equal to the second warning temperature;

第十四确定单元,用于在预测温度大于第二预警温度时,将处理器频点调整策略确定为降低当前处理器频点。The fourteenth determining unit is configured to determine the processor frequency adjustment strategy to reduce the current processor frequency when the predicted temperature is greater than the second warning temperature.

可选的,在第二方面又一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还包括预先训练的温度与处理器频点调整策略的映射关系;相应的,上述第四确定模块,包括:Optionally, in yet another possible implementation manner of the second aspect, the predicted temperature is determined using a pre-trained frame stabilization decision model, and the pre-trained frame stabilization decision model also includes a mapping relationship between a pre-trained temperature and a processor frequency adjustment strategy; accordingly, the fourth determination module includes:

第十五确定单元,用于根据预测温度及温度与处理器频点调整策略的映射关系,将与预测温度对应的处理器频点调整策略,确定为处理器频点调整策略。The fifteenth determining unit is used to determine the processor frequency adjustment policy corresponding to the predicted temperature as the processor frequency adjustment policy according to the predicted temperature and the mapping relationship between the temperature and the processor frequency adjustment policy.

第三方面,本申请实施例提供了一种终端设备,包括:存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,其中,处理器执行计算机程序时实现如前所述的稳帧调度方法。In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the stable frame scheduling method as described above when executing the computer program.

第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现如前所述的稳帧调度方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the stable frame scheduling method as described above.

第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行如前所述的稳帧调度方法。In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute the stable frame scheduling method as described above.

本申请实施例与现有技术相比存在的有益效果是:通过根据终端设备的多个历史温度预测终端设备在预设时长后的温度,以对终端设备的温度情况进行提前预判,并在预测到温度可能过高时,提前对应用的帧率进行缓慢降低,从而避免了应用出现帧率断崖式下降现象,并解决了帧率骤降导致的掉帧卡顿问题,提升了用户的使用体验。Compared with the prior art, the embodiments of the present application have the following beneficial effects: by predicting the temperature of the terminal device after a preset period of time based on multiple historical temperatures of the terminal device, the temperature condition of the terminal device is predicted in advance, and when it is predicted that the temperature may be too high, the frame rate of the application is slowly reduced in advance, thereby avoiding a cliff drop in the frame rate of the application, solving the problem of frame drops and stuttering caused by a sudden drop in the frame rate, and improving the user experience.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1是本申请一实施例提供的稳帧调度方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a stable frame scheduling method provided by an embodiment of the present application;

图2是本申请另一实施例提供的稳帧调度方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a stable frame scheduling method provided by another embodiment of the present application;

图3是本申请再一实施例提供的稳帧调度方法的流程示意图;FIG3 is a flow chart of a stable frame scheduling method provided in yet another embodiment of the present application;

图4是本申请又一实施例提供的稳帧调度方法的流程示意图;FIG4 is a flow chart of a stable frame scheduling method provided by another embodiment of the present application;

图5是本申请一实施例提供的稳帧调度方法的架构图;FIG5 is an architecture diagram of a stable frame scheduling method provided in an embodiment of the present application;

图6是本申请一实施例提供的稳帧调度方法的调度流程图;FIG6 is a scheduling flow chart of a stable frame scheduling method provided in an embodiment of the present application;

图7是本申请实施例提供的稳帧调度装置的结构示意图;FIG7 is a schematic diagram of the structure of a stable frame scheduling device provided in an embodiment of the present application;

图8是本申请实施例提供的终端设备的结构示意图。FIG8 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and/or combinations thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term “and/or” used in the specification and appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

下面参考附图对本申请提供的稳帧调度方法、装置、终端设备、存储介质及计算机程序进行详细描述。The stable frame scheduling method, apparatus, terminal device, storage medium and computer program provided by the present application are described in detail below with reference to the accompanying drawings.

图1示出了本申请实施例提供的一种稳帧调度方法的流程示意图。FIG1 shows a schematic flow chart of a stable frame scheduling method provided in an embodiment of the present application.

如图1所示,该稳帧调度方法,包括以下步骤:As shown in FIG1 , the stable frame scheduling method includes the following steps:

步骤101,获取当前应用对应的期望帧率及当前帧率。Step 101, obtaining the expected frame rate and current frame rate corresponding to the current application.

需要说明的是,本申请实施例的稳帧调度方法可以由本申请实施例的稳帧调度装置执行。本申请实施例的稳帧调度装置可以配置在任意终端设备中,以执行本申请实施例的稳帧调度方法。比如,本申请实施例的稳帧调度装置可以配置在手机、电脑、可穿戴式设备等终端设备中,以在应用运行过程中进行稳帧处理。It should be noted that the stable frame scheduling method of the embodiment of the present application can be executed by the stable frame scheduling device of the embodiment of the present application. The stable frame scheduling device of the embodiment of the present application can be configured in any terminal device to execute the stable frame scheduling method of the embodiment of the present application. For example, the stable frame scheduling device of the embodiment of the present application can be configured in a terminal device such as a mobile phone, a computer, a wearable device, etc., to perform stable frame processing during the application operation process.

其中,当前应用,可以是指当前时刻在终端设备中正在前台运行、且需要进行稳帧处理的应用。比如,当前应用可以为当前时刻正在终端设备中前台运行的视频应用、游戏应用等功耗较大的应用。The current application may refer to an application currently running in the foreground of the terminal device and requiring frame stabilization processing. For example, the current application may be a video application, a game application, or other application with high power consumption currently running in the foreground of the terminal device.

其中,期望帧率,可以为当前应用期望达到的最优帧率。作为一种示例,期望帧率可以为当前应用默认的最优帧率,也可以为当前应用所在的终端设备所支持的最高帧率;或者,也可以为用户在启动当前应用之后自行设定的帧率,本申请实施例对此不做限定。The expected frame rate may be the optimal frame rate that the current application expects to achieve. As an example, the expected frame rate may be the default optimal frame rate of the current application, or the highest frame rate supported by the terminal device where the current application is located; or, it may be the frame rate set by the user after starting the current application, which is not limited in the embodiments of the present application.

需要说明的是,若应用允许用户在启动应用时选择期望达到的最优帧率,则可以将期望帧率确定为用户自行设定的帧率,以在应用运行过程中在终端设备的运行情况允许的情况下按照用户的需求确定应用的帧率。并且,若用户自行设定的帧率大于终端设备所支持的最高帧率时,可以将终端设备所支持的最高帧率确定为当前应用的期望帧率。It should be noted that if the application allows the user to select the optimal frame rate expected to be achieved when starting the application, the expected frame rate can be determined as the frame rate set by the user, so that the frame rate of the application can be determined according to the user's needs when the terminal device's operating conditions allow during the application. In addition, if the frame rate set by the user is greater than the maximum frame rate supported by the terminal device, the maximum frame rate supported by the terminal device can be determined as the expected frame rate of the current application.

其中,当前帧率,可以是指当前应用在当前时刻的帧率。The current frame rate may refer to the frame rate of the current application at the current moment.

在本申请实施例中,可以将终端设备当前正在前台运行的应用确定为当前应用,并可以在当前应用启动后,获取当前应用期望达到的最优帧率确定为期望帧率,并获取当前应用在当前时刻的帧率确定为当前帧率。In an embodiment of the present application, the application currently running in the foreground of the terminal device can be determined as the current application, and after the current application is started, the optimal frame rate that the current application expects to achieve can be obtained and determined as the expected frame rate, and the frame rate of the current application at the current moment can be obtained and determined as the current frame rate.

作为一种可能的实现方式,若当前应用不允许用户自行设定期望达到的帧率,则可以将当前应用的默认最优帧率确定为期望帧率,或者还可以将当前应用所在的终端设备所支持的最高帧率确定为期望帧率;若当前应用允许用户自行设定期望达到的帧率,则可以在当前应用启动后,在当前应用启动后的显示界面中显示期望帧率设置对话框,以使用户可以通过期望帧率设置对话框选择或输入期望达到的帧率,进而可以将用户在期望帧率设置对话框中选择或输入的帧率,确定为期望帧率。As a possible implementation method, if the current application does not allow the user to set the expected frame rate by himself, the default optimal frame rate of the current application can be determined as the expected frame rate, or the highest frame rate supported by the terminal device where the current application is located can also be determined as the expected frame rate; if the current application allows the user to set the expected frame rate by himself, then after the current application is started, the expected frame rate setting dialog box can be displayed in the display interface after the current application is started, so that the user can select or enter the expected frame rate through the expected frame rate setting dialog box, and then the frame rate selected or entered by the user in the expected frame rate setting dialog box can be determined as the expected frame rate.

作为一种可能的实现方式,为了在保证应用显示效果的同时,降低终端设备的资源调度压力,可以仅对终端设备中已安装的功耗高、场景复杂或者帧率要求高的应用进行稳帧调度。因此,可以根据终端设备中已安装的应用生成需要进行稳帧调度的预设应用列表,并在终端设备当前前台运行的应用为预设应用列表中的应用时,将该应用确定为当前应用,并采用本申请的稳帧调度方法对该应用进行稳帧调度;若终端设备当前前台运行的应用不是预设应用列表中的应用,则可以不将该应用确定为当前应用,即可以不采用本申请的稳帧调度方法对该应用进行稳帧调度,以在不必要时节约终端设备的计算资源。As a possible implementation method, in order to reduce the resource scheduling pressure of the terminal device while ensuring the application display effect, stable frame scheduling can be performed only for the applications installed in the terminal device that have high power consumption, complex scenarios, or high frame rate requirements. Therefore, a preset application list that needs to be stable frame scheduled can be generated based on the applications installed in the terminal device, and when the application currently running in the foreground of the terminal device is an application in the preset application list, the application is determined as the current application, and the stable frame scheduling method of the present application is used to perform stable frame scheduling on the application; if the application currently running in the foreground of the terminal device is not an application in the preset application list, the application may not be determined as the current application, that is, the stable frame scheduling method of the present application may not be used to perform stable frame scheduling on the application, so as to save the computing resources of the terminal device when it is not necessary.

作为一种可能的实现方式,还可以预先设定需要进行稳帧调度的预设应用类型,因此可以在终端设备当前前台运行的应用的应用类型为预设应用类型时,将该应用确定为当前应用,并采用本申请的稳帧调度方法对该应用进行稳帧调度;在终端设备当前前台运行的应用的应用类型不是预设应用类型时,将可以不将该应用确定为当前应用,即可以不采用本申请的稳帧调度方法对该应用进行稳帧调度,以在不必要时节约终端设备的计算资源。As a possible implementation method, a preset application type that needs to be scheduled for stable frame can also be pre-set. Therefore, when the application type of the application currently running in the foreground of the terminal device is the preset application type, the application can be determined as the current application, and the stable frame scheduling method of the present application can be used to perform stable frame scheduling on the application; when the application type of the application currently running in the foreground of the terminal device is not the preset application type, the application may not be determined as the current application, that is, the stable frame scheduling method of the present application may not be used to perform stable frame scheduling on the application, so as to save the computing resources of the terminal device when unnecessary.

作为一种示例,可以根据终端设备中已安装应用的功耗设定预设应用列表或预设应用类型,比如,可以将功耗大于或等于功耗阈值的应用加入预设应用列表;或者,还可以确定终端设备中已安装的各类型应用的平均功耗,并将平均功耗大于功耗阈值的应用类型确定为预设应用类型。举例来说,可以将大型游戏应用、视频应用等确定为预设应用类型,或者将终端设备中已安装的大型游戏应用、视频应用等加入预设应用列表。As an example, a preset application list or preset application type can be set according to the power consumption of the applications installed in the terminal device. For example, applications with power consumption greater than or equal to the power consumption threshold can be added to the preset application list; or, the average power consumption of each type of application installed in the terminal device can be determined, and the application type with average power consumption greater than the power consumption threshold can be determined as the preset application type. For example, large-scale game applications, video applications, etc. can be determined as preset application types, or large-scale game applications, video applications, etc. installed in the terminal device can be added to the preset application list.

作为一种示例,为了使得对终端设备中各应用的稳帧调度效果更加符合用户的个性化需求,还可以运行用户自定义需要进行稳帧调度的应用,因此,可以允许用户在终端设备的设置菜单中选择需要进行稳帧调度的应用,并将用户选择的应用加入预设应用列表;或者,可以允许用户在终端设备中的设置菜单中选择需要进行稳帧调度的应用类型,并将用户选择的应用类型确定为需要进行稳帧调度的预设应用类型。As an example, in order to make the stable frame scheduling effect of each application in the terminal device more in line with the user's personalized needs, it is also possible to run user-defined applications that require stable frame scheduling. Therefore, the user can be allowed to select the application that needs to be scheduled for stable frame in the setting menu of the terminal device, and the application selected by the user can be added to the preset application list; or, the user can be allowed to select the application type that needs to be scheduled for stable frame in the setting menu of the terminal device, and the application type selected by the user can be determined as the preset application type that needs to be scheduled for stable frame.

需要说明的时,上述列举的确定需要进行稳帧调度的应用的方式,仅为示例性的,不能视为对本申请的限制。实际使用时,可以根据实际需要及具体的应用场景设定需要进行稳帧调度的应用及其设定方式,本申请实施例对此不做限定。It should be noted that the above-listed methods for determining applications that require stable frame scheduling are only exemplary and cannot be regarded as limitations on this application. In actual use, the applications that require stable frame scheduling and the methods of setting them can be set according to actual needs and specific application scenarios, and this embodiment of the application does not limit this.

步骤102,获取当前应用所在的终端设备的当前温度及在多个历史时刻的历史温度,其中,历史时刻是指处于当前数据帧之前的多个历史数据帧的显示时刻。Step 102, obtaining the current temperature of the terminal device where the current application is located and the historical temperatures at multiple historical moments, wherein the historical moment refers to the display moment of multiple historical data frames before the current data frame.

其中,当前温度,可以是指终端设备在当前时刻的温度。The current temperature may refer to the temperature of the terminal device at the current moment.

其中,当前数据帧,可以是指终端设备在当前时刻显示的当前应用中的数据帧。需要说明的时,本申请实施例中的当前时刻即为当前数据帧的显示时刻。The current data frame may refer to a data frame in the current application displayed by the terminal device at the current moment. It should be noted that the current moment in the embodiment of the present application is the display moment of the current data frame.

其中,历史数据帧,可以是指在当前数据帧之前显示、且与当前数据帧相邻的多个数据帧;相应的,历史时刻,即为处于当前时刻之前、且与当前时刻相邻的多个显示时刻。比如,当前数据帧为当前应用启动之后显示的第101个数据帧,则历史数据帧可以为第81个至第100个数据帧,历史时刻即为第81个至第100个数据帧的显示时刻。Among them, historical data frames may refer to multiple data frames displayed before the current data frame and adjacent to the current data frame; correspondingly, historical moments are multiple display moments that are before the current moment and adjacent to the current moment. For example, if the current data frame is the 101st data frame displayed after the current application is started, the historical data frames may be the 81st to 100th data frames, and the historical moments are the display moments of the 81st to 100th data frames.

需要说明的是,实际使用时,可以根据实际需要及具体的应用场景,设定采集的历史温度的数量,本申请实施例对此不做限定。比如,可以采集终端设备在20个、50个历史时刻的历史温度,等等。It should be noted that in actual use, the number of historical temperatures collected can be set according to actual needs and specific application scenarios, and the present application embodiment does not limit this. For example, the historical temperatures of the terminal device at 20 or 50 historical moments can be collected, and so on.

在本申请实施例中,可以在终端设备中配置温度传感器,以采集终端设备运行时的温度,进而可以将温度传感器在当前时刻采集到的温度确定为当前温度,并将温度传感器在各个历史时刻采集到的温度,分别确定为各个历史温度。In an embodiment of the present application, a temperature sensor can be configured in the terminal device to collect the temperature when the terminal device is running, and then the temperature collected by the temperature sensor at the current moment can be determined as the current temperature, and the temperature collected by the temperature sensor at each historical moment can be determined as each historical temperature.

步骤103,根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度。Step 103, determining the predicted temperature of the terminal device after a preset time period according to the expected frame rate, the current temperature and various historical temperatures.

其中,预测温度,可以是指根据终端设备当前及之前的历史运行状况(历史温度),预测的终端设备在一段时间后可能达到的温度。需要说明的是,由于预测温度是根据终端设备的当前温度及历史温度预测的一段时间后终端设备可能达到的温度,因此预测温度可以反应终端设备在一段时间后的运行状况,从而通过预测温度可以及时对终端设备的温度进行预判,以对当前应用的帧率进行提前调度,从而保证当前应用的帧率稳定性,防止终端设备温度过高之后再对当前应用的帧率进行大幅度调整,导致的帧率骤降,以提升当前应用的运行稳定性和显示效果。Among them, the predicted temperature may refer to the temperature that the terminal device may reach after a period of time, based on the current and previous historical operating conditions (historical temperature) of the terminal device. It should be noted that since the predicted temperature is the temperature that the terminal device may reach after a period of time, based on the current temperature and historical temperature of the terminal device, the predicted temperature can reflect the operating conditions of the terminal device after a period of time, so that the temperature of the terminal device can be predicted in time through the predicted temperature, so as to schedule the frame rate of the current application in advance, thereby ensuring the frame rate stability of the current application, and preventing the frame rate of the current application from being adjusted significantly after the terminal device temperature is too high, resulting in a sudden drop in the frame rate, so as to improve the operating stability and display effect of the current application.

其中,预设时长,可以根据实际需要及具体的应用场景设定,本申请实施例对此不做限定。比如,预设时长可以为1分钟(即对终端设备1分钟之后的温度进行预测)、2分钟、5分钟,等等。The preset duration can be set according to actual needs and specific application scenarios, and the present application embodiment does not limit this. For example, the preset duration can be 1 minute (i.e., predicting the temperature of the terminal device 1 minute later), 2 minutes, 5 minutes, and so on.

在本申请实施例中,终端设备的多个历史温度可以反应终端设备在获取到的最早的历史时刻与当前时刻之间的时段(以下将该时段成为当前历史时段)内的温度变化情况,因此,可以根据终端设备的多个历史温度以及当前历史时段的时长,确定终端设备的温度变化情况,进而根据预设时长及终端设备的温度变化情况,确定出预设时长后的预测温度。In an embodiment of the present application, multiple historical temperatures of the terminal device can reflect the temperature changes of the terminal device in the time period between the earliest historical moment obtained and the current moment (hereinafter this time period is referred to as the current historical time period). Therefore, the temperature changes of the terminal device can be determined based on the multiple historical temperatures of the terminal device and the length of the current historical time period, and then the predicted temperature after the preset time length can be determined based on the preset time length and the temperature changes of the terminal device.

需要说明的是,最早的历史时刻可以是指在当前时刻获取到的各个历史温度对应的最早的历史时刻。比如,当前数据帧为当前应用中显示的第101个数据帧,各个历史数据帧为第81个至第100个数据帧,则最早的历史时刻是指第81个数据帧的显示时刻,当前历史时段是指第81个数据帧的显示时刻与当前时刻(即第101个数据帧的显示时刻)之间的时段。另外,由于通过本申请的方法对当前应用进行稳帧调度时,可以在显示每个数据帧的时刻均确定是否需要对当前应用的当前帧率进行调整,因此当前应用在当前历史时段内各个历史时刻的实际帧率有可能是不断变化的,并且当前历史时段通常十分短,因此直接通过最早历史时刻与当前时刻之间的差值确定当前历史时段的时长通常不够准确,因此可以采用期望帧率代替当前应用在当前历史时段内的帧率,并根据当前历史时段内包括的数据帧的数量与期望帧率的比值,确定为当前历史时段的时长,以提升终端设备的温度变化情况确定的准确性,进而提升稳帧调度的准确性。It should be noted that the earliest historical moment may refer to the earliest historical moment corresponding to each historical temperature acquired at the current moment. For example, if the current data frame is the 101st data frame displayed in the current application, and each historical data frame is the 81st to 100th data frame, then the earliest historical moment refers to the display moment of the 81st data frame, and the current historical period refers to the period between the display moment of the 81st data frame and the current moment (i.e., the display moment of the 101st data frame). In addition, when the method of the present application is used to perform stable frame scheduling on the current application, it can be determined whether the current frame rate of the current application needs to be adjusted when each data frame is displayed. Therefore, the actual frame rate of the current application at each historical moment in the current historical period may be constantly changing, and the current historical period is usually very short. Therefore, directly determining the length of the current historical period by the difference between the earliest historical moment and the current moment is usually not accurate enough. Therefore, the expected frame rate can be used instead of the frame rate of the current application in the current historical period, and the length of the current historical period is determined based on the ratio of the number of data frames included in the current historical period to the expected frame rate, so as to improve the accuracy of determining the temperature change of the terminal device, thereby improving the accuracy of the stable frame scheduling.

进一步的,可以通过温升速率表示终端设备的温度变化情况,以对终端设备的温度变化情况进行量化,提升预测温度确定的准确性,进而进一步提升稳帧调度的可靠性。即在本申请实施例一种可能的实现方式中,上述步骤103,可以包括:Furthermore, the temperature change of the terminal device can be represented by the temperature rise rate to quantify the temperature change of the terminal device, improve the accuracy of the predicted temperature determination, and further improve the reliability of the stable frame scheduling. That is, in a possible implementation of the embodiment of the present application, the above step 103 may include:

根据期望帧率及各个历史温度,确定终端设备对应的温升速率;Determine the temperature rise rate corresponding to the terminal device based on the expected frame rate and each historical temperature;

根据当前温度、温升速率及预设时长,确定预测温度。Determine the predicted temperature based on the current temperature, temperature rise rate and preset duration.

作为一种可能的实现方式,可以将当前时刻获取到的历史温度的数量,确定为当前历史时段内包括的温度数量n,假设期望帧率为fps,则当前历史时段的时长可以为n/fps。之后,可以将各个历史温度之和与当前历史时段的时长的比值,确定为终端设备对应的温升速率。即可以通过公式(1)确定终端设备对应的温升速率:As a possible implementation method, the number of historical temperatures obtained at the current moment can be determined as the number of temperatures n included in the current historical period. Assuming that the expected frame rate is fps, the duration of the current historical period can be n/fps. Afterwards, the ratio of the sum of each historical temperature to the duration of the current historical period can be determined as the temperature rise rate corresponding to the terminal device. That is, the temperature rise rate corresponding to the terminal device can be determined by formula (1):

其中,v为终端设备对应的温升速率,ti为第i个历史时刻的历史温度,n为当前历史时段内包括的温度数量,i为历史温度的序号,fps为期望帧率。Among them, v is the temperature rise rate corresponding to the terminal device, ti is the historical temperature at the i-th historical moment, n is the number of temperatures included in the current historical period, i is the sequence number of the historical temperature, and fps is the expected frame rate.

作为一种可能的实现方式,由于终端设备在进行动画或视频展示时,需要达到较高的帧率才能使得人眼感受到画面是连续变化的,因此相邻两个数据帧的显示时刻之间的时间间隔通常极短,从而温度传感器在每个历史时刻直接采集到的历史温度通常具有一定的误差与随机性,因此,对于一个历史时刻,可以利用与该历史时刻相邻的多个历史时刻的温度求得该历史时刻的温度,以保证温升速率确定的可靠性。即在本申请实施例一种可能的实现方式中,上述根据期望帧率及各个历史温度,确定终端设备对应的温升速率,可以包括:As a possible implementation method, since the terminal device needs to achieve a high frame rate when performing animation or video display so that the human eye can feel that the picture is continuously changing, the time interval between the display moments of two adjacent data frames is usually very short, so that the historical temperature directly collected by the temperature sensor at each historical moment usually has a certain error and randomness. Therefore, for a historical moment, the temperature of the historical moment can be obtained by using the temperatures of multiple historical moments adjacent to the historical moment to ensure the reliability of the temperature rise rate determination. That is, in a possible implementation method of the embodiment of the present application, the above-mentioned determination of the temperature rise rate corresponding to the terminal device based on the expected frame rate and each historical temperature may include:

确定每个历史时刻对应的温控窗口,其中,每个温控窗口中包括预设数量的历史温度;Determine a temperature control window corresponding to each historical moment, wherein each temperature control window includes a preset number of historical temperatures;

根据每个温控窗口中包括的各个历史温度,确定每个历史时刻对应的平均历史温度;According to each historical temperature included in each temperature control window, determine the average historical temperature corresponding to each historical moment;

根据历史时刻的数量及期望帧率,确定温控时长;Determine the temperature control duration based on the number of historical moments and the expected frame rate;

根据各个平均历史温度及温控时长,确定温升速率。Determine the temperature rise rate based on the average historical temperatures and temperature control duration.

其中,温控窗口,可以是指长度为预设数量的空数列。实际使用时,可以根据实际需要及具体的应用场景,确定预设数量的具体取值(即温控窗口的长度),本申请实施例对此不做限定。比如,预设数量,可以为3、5、10,等等。The temperature control window may refer to an empty sequence with a preset length. In actual use, the specific value of the preset number (i.e., the length of the temperature control window) may be determined according to actual needs and specific application scenarios, and the present application embodiment does not limit this. For example, the preset number may be 3, 5, 10, and so on.

其中,历史时刻对应的温控窗口,可以是指将该历史时刻的历史温度,以及处于该历史时刻之前且与该历史时刻相邻的多个历史时刻的历史温度作为温控窗口的元素,填入温控窗口后生成的数列。Among them, the temperature control window corresponding to the historical moment may refer to a sequence generated by filling the temperature control window with the historical temperature of the historical moment and the historical temperatures of multiple historical moments before and adjacent to the historical moment as elements of the temperature control window.

举例来说,假设预设数量为5,即温控窗口的长度为5,假设历史时刻包括第81个至第100个数据帧的显示时刻,其中,第90个数据帧的显示时刻的历史温度为32度,第89、88、87、86个数据帧的显示时刻的历史温度分别为32度、31.5度、32度、32.1度,则第90个数据帧的显示时刻对应的温控窗口为[32 32 31.5 32 32.1]。For example, assuming that the preset number is 5, that is, the length of the temperature control window is 5, and assuming that the historical moments include the display moments of the 81st to 100th data frames, where the historical temperature at the display moment of the 90th data frame is 32 degrees, and the historical temperatures at the display moments of the 89th, 88th, 87th, and 86th data frames are 32 degrees, 31.5 degrees, 32 degrees, and 32.1 degrees, respectively, then the temperature control window corresponding to the display moment of the 90th data frame is [32 32 31.5 32 32.1].

其中,历史时刻对应的平均历史温度,可以是指该历史时刻对应的温控窗口中包括的各个历史温度的平均值。The average historical temperature corresponding to a historical moment may refer to the average value of each historical temperature included in the temperature control window corresponding to the historical moment.

在本申请实施例中,在确定出n个历史时刻对应的温控窗口之后,可以分别确定出n个温控窗口中包括的各个历史温度的平均值,分别作为n个历史时刻对应的平均历史温度,之后根据将历史时刻的数量与期望帧率的比值,确定为温控时长,进而将各个平均历史温度之和与温控时长的比值,确定为终端设备对应的温升速率。即终端设备对应的温升速率可以通过公式(2)和公式(3)确定:In the embodiment of the present application, after determining the temperature control windows corresponding to n historical moments, the average values of the historical temperatures included in the n temperature control windows can be determined respectively, and used as the average historical temperatures corresponding to the n historical moments respectively. Then, the temperature control duration is determined based on the ratio of the number of historical moments to the expected frame rate, and then the ratio of the sum of the average historical temperatures to the temperature control duration is determined as the temperature rise rate corresponding to the terminal device. That is, the temperature rise rate corresponding to the terminal device can be determined by formula (2) and formula (3):

其中,v为终端设备对应的温升速率,avg(ti)为第i个历史时刻对应的平均历史温度,n为当前历史时段内包括的历史时刻的数量,i为历史时刻的序号,fps为期望帧率,a为预设数量,tij为第i个历史时刻对应的温控窗口中的第j个历史温度。Wherein, v is the temperature rise rate corresponding to the terminal device, avg( ti ) is the average historical temperature corresponding to the i-th historical moment, n is the number of historical moments included in the current historical period, i is the sequence number of the historical moment, fps is the expected frame rate, a is the preset number, and tij is the j-th historical temperature in the temperature control window corresponding to the i-th historical moment.

在本申请实施例中,确定出终端设备对应的温升速率之后,可以根据当前时刻的当前温度、温升速率及预设时长,确定出终端设备在预设时长后的预测温度。作为一种示例,可以通过公式(4)确定出终端设备在预设时长后的预测温度:In the embodiment of the present application, after determining the temperature rise rate corresponding to the terminal device, the predicted temperature of the terminal device after the preset time period can be determined according to the current temperature at the current moment, the temperature rise rate and the preset time period. As an example, the predicted temperature of the terminal device after the preset time period can be determined by formula (4):

t=t0+dur×v(4)t=t 0 +dur×v(4)

其中,t为终端设备在预设时长后的预测温度,t0为当前温度,dur为预设时长,v为终端设备对应的温升速率。Among them, t is the predicted temperature of the terminal device after the preset time, t0 is the current temperature, dur is the preset time, and v is the temperature rise rate corresponding to the terminal device.

进一步的,由于终端设备的系统温度、壳温均会影响终端设备的性能与用户体验,因此在对终端设备的温度进行预测时,可以分别预测终端设备的系统温度与壳温,以进一步提升稳帧调度的可靠性。即在本申请实施例一种可能的实现方式中,上述当前温度包括当前系统温度及当前壳温,上述历史温度包括历史系统温度及历史壳温;相应的,上述步骤103,可以包括:Furthermore, since the system temperature and shell temperature of the terminal device will affect the performance and user experience of the terminal device, when predicting the temperature of the terminal device, the system temperature and shell temperature of the terminal device can be predicted separately to further improve the reliability of stable frame scheduling. That is, in a possible implementation of the embodiment of the present application, the current temperature includes the current system temperature and the current shell temperature, and the historical temperature includes the historical system temperature and the historical shell temperature; accordingly, the step 103 may include:

根据期望帧率、当前系统温度及各个历史系统温度,确定终端设备在预设时长后的预测系统温度;Determine the predicted system temperature of the terminal device after a preset time period based on the expected frame rate, the current system temperature and various historical system temperatures;

根据期望帧率、当前壳温及各个历史壳温,确定终端设备在预设时长后的预测壳温;Determine the predicted shell temperature of the terminal device after a preset time period based on the expected frame rate, the current shell temperature and each historical shell temperature;

根据预测系统温度及预测壳温,确定预测温度。Determine the predicted temperature based on the predicted system temperature and the predicted shell temperature.

其中,系统温度,可以包括终端设备的中央处理器(Central Processing Unit,CPU)温度、主板温度、显卡温度、硬盘温度、内存温度等核心硬件的温度中的至少一种;或者,系统温度也可以是对上述核心硬件温度中的一种或多种进行加权得到的整体温度。Among them, the system temperature may include at least one of the temperatures of the core hardware of the terminal device, such as the central processing unit (CPU) temperature, the motherboard temperature, the graphics card temperature, the hard disk temperature, and the memory temperature; or, the system temperature may also be the overall temperature obtained by weighting one or more of the above core hardware temperatures.

举例来说,假设根据CPU温度与主板温度确定系统温度,作为一种示例,可以将同一时刻采集到的CPU温度与主板温度的平均值,确定为该时刻的系统温度;作为另一种示例,还可以将同一时刻采集到的CPU温度与主板温度的加权和,确定为该时刻的系统温度,其中,CPU与主板温度分别对应的权重可以根据实际需要确定,本申请实施例对此不做限定。For example, assuming that the system temperature is determined based on the CPU temperature and the motherboard temperature, as an example, the average value of the CPU temperature and the motherboard temperature collected at the same time can be determined as the system temperature at that moment; as another example, the weighted sum of the CPU temperature and the motherboard temperature collected at the same time can also be determined as the system temperature at that moment, wherein the weights corresponding to the CPU and motherboard temperatures can be determined according to actual needs, and the embodiments of the present application are not limited to this.

需要说明的是,实际使用时,确定系统温度时采用的核心硬件的温度类型可以根据终端设备中实际存在的部件或实际的使用需求确定,本申请实施例对此不做限定。比如,为了节约算力,可以直接将最重要的CPU温度作为系统温度;或者,在终端设备为电脑时,由于电脑中的部件齐全且算力较高,因此可以根据CPU温度、主板温度、显卡温度、硬盘温度综合确定系统温度;在终端设备为手机时,由于手机中可能不存在硬盘、显卡等部件,并且手机算力相对较弱,因此,可以根据CPU温度与主板温度确定系统温度,或者直接将CPU温度确定为系统温度,等等。It should be noted that, in actual use, the temperature type of the core hardware used to determine the system temperature can be determined according to the actual components in the terminal device or the actual usage requirements, and the embodiments of the present application do not limit this. For example, in order to save computing power, the most important CPU temperature can be directly used as the system temperature; or, when the terminal device is a computer, since the computer has complete components and high computing power, the system temperature can be determined based on the CPU temperature, motherboard temperature, graphics card temperature, and hard disk temperature; when the terminal device is a mobile phone, since there may be no hard disk, graphics card and other components in the mobile phone, and the computing power of the mobile phone is relatively weak, the system temperature can be determined based on the CPU temperature and the motherboard temperature, or the CPU temperature can be directly determined as the system temperature, and so on.

其中,壳温,可以是指终端设备外壳的温度。The shell temperature may refer to the temperature of the shell of the terminal device.

其中,当前系统温度,可以是指终端设备在当前时刻的系统温度;当前壳温,可以是指终端设备在当前时刻的壳温。The current system temperature may refer to the system temperature of the terminal device at the current moment; the current shell temperature may refer to the shell temperature of the terminal device at the current moment.

在本申请实施例中,可以在终端设备的CPU、主板、硬盘、显卡等一个或多个核心硬件处设置温度传感器,以及在终端设备的外壳附近的合适位置设置温度传感器,以实时采集这些核心硬件的温度以及终端设备的壳温,并根据各个温度传感器在当前应用的每个数据帧的显示时刻采集的温度,确定终端设备在每个数据帧的显示时刻的系统温度及壳温,从而确定出终端设备的当前系统与当前壳温,以及终端设备在当前时刻对应的多个历史时刻的历史系统温度与历史壳温。之后,即可以根据期望帧率、当前系统温度即各个历史系统温度,对终端设备在预设时长后的系统温度进行预测,以得到预测系统温度;以及可以根据期望帧率、当壳温及各个历史壳温,对终端设备在预设时长后的壳温进行预测,以得到预测壳温。进而,可以根据预测系统温度与预测壳温,确定终端设备在预设时长后的预测温度。In the embodiment of the present application, a temperature sensor can be set at one or more core hardware such as the CPU, motherboard, hard disk, and graphics card of the terminal device, and a temperature sensor can be set at a suitable position near the shell of the terminal device to collect the temperature of these core hardware and the shell temperature of the terminal device in real time, and determine the system temperature and shell temperature of the terminal device at the display time of each data frame according to the temperature collected by each temperature sensor at the display time of each data frame of the current application, so as to determine the current system and current shell temperature of the terminal device, as well as the historical system temperature and historical shell temperature of the terminal device at multiple historical moments corresponding to the current moment. After that, the system temperature of the terminal device after a preset time can be predicted based on the expected frame rate, the current system temperature, that is, each historical system temperature, to obtain the predicted system temperature; and the shell temperature of the terminal device after a preset time can be predicted based on the expected frame rate, the current shell temperature, and each historical shell temperature, to obtain the predicted shell temperature. Furthermore, the predicted temperature of the terminal device after a preset time can be determined based on the predicted system temperature and the predicted shell temperature.

作为一种示例,可以将预测系统温度与预测壳温的平均值,确定为终端设备在预设时长后的预测温度。As an example, the average value of the predicted system temperature and the predicted shell temperature may be determined as the predicted temperature of the terminal device after a preset period of time.

作为一种示例,还可以分别为预测系统温度与预测壳温分别设置不同的权重,进而将预测系统温度与预测壳温的加权和,确定为终端设备在预设时长后的预测温度。即终端设备在预设时长后的预测温度,可以通过公式(5)确定:As an example, different weights can be set for the predicted system temperature and the predicted shell temperature, respectively, and then the weighted sum of the predicted system temperature and the predicted shell temperature is determined as the predicted temperature of the terminal device after a preset time. That is, the predicted temperature of the terminal device after a preset time can be determined by formula (5):

t=λTs+(1-λ)Th(5)t=λT s +(1-λ) Th (5)

其中,t为终端设备在预设时长后的预测温度,Ts为终端设备在预设时长后的预测系统温度,Th为终端设备在预设时长后的预测壳温,λ为预测系统温度的权重。Wherein, t is the predicted temperature of the terminal device after a preset time, Ts is the predicted system temperature of the terminal device after a preset time, Th is the predicted shell temperature of the terminal device after a preset time, and λ is the weight of the predicted system temperature.

需要说明的是,实际使用时,可以根据实际需要及具体的应用场景,确定λ的具体取值,本申请实施例对此不做限定。比如,在终端设备为手机时,壳温通常会直接影响用户的使用体验,则可以将预测壳温的权重设置为较大的值,比如可以将λ设置为0.4,即预测壳温的权重1-λ为0.6。It should be noted that in actual use, the specific value of λ can be determined according to actual needs and specific application scenarios, and the embodiments of the present application do not limit this. For example, when the terminal device is a mobile phone, the shell temperature usually directly affects the user experience, so the weight of the predicted shell temperature can be set to a larger value, such as λ can be set to 0.4, that is, the weight of the predicted shell temperature 1-λ is 0.6.

作为一种可能的实现方式,在确定预测系统温度与预测壳温时,可以首先根据期望帧率与各个历史系统温度,确定终端设备对应的系统温度温升速率,并根据当前系统温度、系统温度温升速率及预设时长,确定预测系统温度;相应的,可以首先根据期望帧率与各个历史壳温,确定终端设备对应的壳温温升速率,并根据当前壳温、壳温温升速率及预设时长,确定预测壳温。As a possible implementation method, when determining the predicted system temperature and the predicted shell temperature, the system temperature rise rate corresponding to the terminal device can be determined based on the expected frame rate and each historical system temperature, and the predicted system temperature can be determined based on the current system temperature, the system temperature rise rate and the preset duration; correspondingly, the shell temperature rise rate corresponding to the terminal device can be determined based on the expected frame rate and each historical shell temperature, and the predicted shell temperature can be determined based on the current shell temperature, the shell temperature rise rate and the preset duration.

需要说明的是,确定系统温度温升速率及壳温温升速率的方式,可以与前述实施例中根据期望帧率及各个历史温度确定终端设备对应的温升速率的具体方式相同,即将各个历史时刻的历史系统温度带入公式(1),或者带入公式(2)和(3),即可确定出系统温度温升速率;以及将各个历史时刻的历史壳温带入公式(1),或者带入公式(2)和(3),即可确定出壳温温升速率;并且,根据系统温度温升速率确定预测系统温度、以及根据壳温温升速率确定预测壳温的方式,也可以与前述实施例中根据当前温度、温升速率及预设时长确定预测温度的方式相同,即将当前系统温度与系统温度温升速率带入公式(4),即可确定出预测系统温度;以及将当前壳温与壳温温升速率带入公式(4),即可确定出预测壳温。其他具体的实现过程及原理,可以参照上述实施例的详细描述,此次不再赘述。It should be noted that the method for determining the system temperature rise rate and the shell temperature rise rate can be the same as the specific method for determining the temperature rise rate corresponding to the terminal device according to the expected frame rate and each historical temperature in the aforementioned embodiment, that is, the historical system temperature at each historical moment is substituted into formula (1), or into formulas (2) and (3), so as to determine the system temperature rise rate; and the historical shell temperature at each historical moment is substituted into formula (1), or into formulas (2) and (3), so as to determine the shell temperature rise rate; and the method for determining the predicted system temperature according to the system temperature rise rate and the method for determining the predicted shell temperature according to the shell temperature rise rate can also be the same as the method for determining the predicted temperature according to the current temperature, the temperature rise rate and the preset time in the aforementioned embodiment, that is, the current system temperature and the system temperature rise rate are substituted into formula (4), so as to determine the predicted system temperature; and the current shell temperature and the shell temperature rise rate are substituted into formula (4), so as to determine the predicted shell temperature. For other specific implementation processes and principles, please refer to the detailed description of the aforementioned embodiment, which will not be repeated here.

步骤104,根据预测温度,确定当前应用对应的帧率调整策略。Step 104: Determine a frame rate adjustment strategy corresponding to the current application according to the predicted temperature.

在本申请实施例中,确定出终端设备在预设时长后的预测温度之后,即可根据该预测温度对终端设备在未来一段时间后的运行状况、温度状况进行提前预判,进而根据预测温度确定当前应用对应的帧率调整策略,以提前干预当前应用的当前帧率,防止终端设备温度过高之后再调整当前应用的帧率,避免帧率骤降,以及帧率骤降导致的掉帧卡帧、运行不稳定等一系列问题。In an embodiment of the present application, after determining the predicted temperature of the terminal device after a preset period of time, the operating status and temperature status of the terminal device in the future can be predicted in advance based on the predicted temperature, and then the frame rate adjustment strategy corresponding to the current application can be determined based on the predicted temperature, so as to intervene in the current frame rate of the current application in advance, prevent the frame rate of the current application from being adjusted after the temperature of the terminal device is too high, avoid a sudden drop in frame rate, and avoid a series of problems such as frame dropping, frame jamming, unstable operation, etc. caused by the sudden drop in frame rate.

作为一种可能的实现方式,在终端设备在预设时长后的预测温度较高时,说明继续保持当前帧率终端设备可能存在温度过高的风险,因此可以降低当前应用的当前帧率,即可以确定帧率调整策略为降低当前帧率,以提前并缓慢降低当前应用的帧率;在终端设备在预设时长后的预测温度较低时,说明终端设备当前运行状况良好,不存在温度过高的风险,因此可以保持当前应用的当前帧率不变,以在保证终端设备运行稳定性的同时,尽可能保证应用的显示和运行流畅度。As a possible implementation method, when the predicted temperature of the terminal device after a preset period of time is high, it means that if the terminal device continues to maintain the current frame rate, there may be a risk of overtemperature. Therefore, the current frame rate of the current application can be reduced, that is, the frame rate adjustment strategy can be determined to reduce the current frame rate to advance and slowly reduce the frame rate of the current application; when the predicted temperature of the terminal device after the preset period of time is low, it means that the terminal device is currently operating in good condition and there is no risk of overtemperature. Therefore, the current frame rate of the current application can be kept unchanged to ensure the display and operation smoothness of the application as much as possible while ensuring the operating stability of the terminal device.

需要说明的是,在本申请实施例中,可以预先设定降帧幅度,以在帧率调整策略为降低当前帧率时,以该预设降帧幅度降低当前帧率;并且,预设降帧幅度可以为较小的值,如1fps、2fps、3fps等,以达到缓慢降低帧率的目的。比如,当前帧率为90fps,帧率调整策略为降低当前帧率,则可以将当前帧率调整为89fps。It should be noted that in the embodiment of the present application, the frame reduction amplitude can be preset, so that when the frame rate adjustment strategy is to reduce the current frame rate, the current frame rate can be reduced by the preset frame reduction amplitude; and the preset frame reduction amplitude can be a smaller value, such as 1fps, 2fps, 3fps, etc., to achieve the purpose of slowly reducing the frame rate. For example, if the current frame rate is 90fps and the frame rate adjustment strategy is to reduce the current frame rate, the current frame rate can be adjusted to 89fps.

进一步的,可以通过设定终端设备的温度阈值,并以该温度阈值为标准判断终端设备是否存在温度过高的风险,以进一步提升稳帧调度的可靠性。即在本申请实施例一种可能的实现方式中,上述步骤104,可以包括:Furthermore, the reliability of stable frame scheduling can be further improved by setting a temperature threshold of the terminal device and using the temperature threshold as a standard to determine whether the terminal device has a risk of over-temperature. That is, in a possible implementation of the embodiment of the present application, the above step 104 may include:

在预测温度小于或等于第一预警温度时,将帧率调整策略确定为保持当前帧率不变;When the predicted temperature is less than or equal to the first warning temperature, the frame rate adjustment strategy is determined to keep the current frame rate unchanged;

在预测温度大于第一预警温度时,将帧率调整策略确定为降低当前帧率。When the predicted temperature is greater than the first warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate.

其中,第一预警温度,可以是指对终端设备的运行状况不会产生较大影响的可接受的温度值上限;也就是说,在终端设备的温度超过第一预警温度时可能会对终端设备的性能造成一些影响。实际使用时,可以根据实际需要及具体的应用场景确定第一预警温度的取值,本申请实施例对此不做限定。The first warning temperature may refer to an upper limit of an acceptable temperature value that will not have a significant impact on the operating status of the terminal device; that is, when the temperature of the terminal device exceeds the first warning temperature, it may have some impact on the performance of the terminal device. In actual use, the value of the first warning temperature may be determined according to actual needs and specific application scenarios, and the embodiments of the present application do not limit this.

作为一种可能的实现方式,若预测温度小于或等于第一预警温度,则说明终端设备的温度在预设时长后仍然维持在较低的水平,从而可以确定帧率调整策略为保持当前帧率不变,以保证当前应用的显示和运行的流畅度;若预测温度大于第一预警温度,则说明终端设备的温度在预设时长后可能会升高至较高的水平,从而可以确定帧率调整策略为降低当前帧率,以在终端设备温度过高之前缓慢降低帧率,以在保证应用显示和运行流畅度、稳定性的同时,达到控制终端设备温度的目的。As a possible implementation method, if the predicted temperature is less than or equal to the first warning temperature, it means that the temperature of the terminal device will remain at a low level after the preset period of time, so that the frame rate adjustment strategy can be determined to keep the current frame rate unchanged to ensure the smoothness of the display and operation of the current application; if the predicted temperature is greater than the first warning temperature, it means that the temperature of the terminal device may rise to a higher level after the preset period of time, so that the frame rate adjustment strategy can be determined to reduce the current frame rate to slowly reduce the frame rate before the temperature of the terminal device is too high, so as to achieve the purpose of controlling the temperature of the terminal device while ensuring the smoothness and stability of the application display and operation.

进一步的,还可以在需要降帧处理时,根据终端设备的预测温度所处的水平,分别采用不同的降帧幅度降低帧率,以在预测温度不理想时,可以更快的平稳降帧,以防止终端设备温度过高。即在本申请实施例一种可能的实现方式中,上述在预测温度大于第一预警温度时,将帧率调整策略确定为降低当前帧率,可以包括:Furthermore, when frame reduction processing is required, different frame reduction amplitudes can be used to reduce the frame rate according to the level of the predicted temperature of the terminal device, so that when the predicted temperature is not ideal, the frame can be reduced more quickly and smoothly to prevent the terminal device from overheating. That is, in a possible implementation of the embodiment of the present application, when the predicted temperature is greater than the first warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate, which may include:

在预测温度大于第一预警温度且小于或等于第二预警温度时,将帧率调整策略确定为以第一降帧幅度降低当前帧率,其中,第二预警温度大于第一预警温度;When the predicted temperature is greater than the first warning temperature and less than or equal to the second warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate by the first frame reduction amplitude, wherein the second warning temperature is greater than the first warning temperature;

在预测温度大于第二预警温度时,将帧率调整策略确定为以第二降帧幅度降低当前帧率,其中,第二降帧幅度大于第一降帧幅度。When the predicted temperature is greater than the second warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate by a second frame reduction amplitude, wherein the second frame reduction amplitude is greater than the first frame reduction amplitude.

其中,第二预警温度,可以是指会对终端设备的运行状况产生明显影响的温度值下线;也就是说,在终端设备的温度超过第二预警温度时,终端设备的性能可能会出现明显下降。实际使用时,可以根据实际需要及具体的应用场景,设定第二预警温度的具体取值,本申请实施例对此不做限定。The second warning temperature may refer to the lower limit of the temperature value that will have a significant impact on the operating status of the terminal device; that is, when the temperature of the terminal device exceeds the second warning temperature, the performance of the terminal device may be significantly reduced. In actual use, the specific value of the second warning temperature can be set according to actual needs and specific application scenarios, and the embodiments of the present application do not limit this.

其中,第一降帧幅度与第二降帧幅度通常均为较小的值,具体取值可以根据实际需要及具体的应用场景确定,本申请实施例对此不做限定。比如,第一降帧幅度为1fps,第二降帧幅度为3fps,等等。The first frame reduction amplitude and the second frame reduction amplitude are usually both small values, and the specific values can be determined according to actual needs and specific application scenarios, and the embodiment of the present application does not limit this. For example, the first frame reduction amplitude is 1fps, the second frame reduction amplitude is 3fps, and so on.

作为一种可能的实现方式,若预测温度大于第一预警温度且小于或等于第二预警温度,则说明终端设备在预设时长后的温度可能较高但可接受的范围,从而可以以更小的降帧幅度缓慢降低帧率,即可以将帧率调整策略确定为以较小的第一降帧幅度降低当前帧率,以进一步提升降低帧率时的稳定性;若预测温度大于第二预警温度,则说明终端设备在预设时长后的温度可能会过高,从而可以以更大的降帧幅度稍快的降低帧率,即可以将帧率调整策略确定为以较大的第二降帧幅度降低当前帧率,以在缓慢降帧的前提下尽可能快的将帧率调整至安全范围内,防止终端设备温度过高,保证终端设备运行的稳定性。As a possible implementation method, if the predicted temperature is greater than the first warning temperature and less than or equal to the second warning temperature, it means that the temperature of the terminal device after the preset time may be high but within an acceptable range, so that the frame rate can be slowly reduced with a smaller frame reduction amplitude, that is, the frame rate adjustment strategy can be determined to reduce the current frame rate with a smaller first frame reduction amplitude to further improve the stability when reducing the frame rate; if the predicted temperature is greater than the second warning temperature, it means that the temperature of the terminal device after the preset time may be too high, so that the frame rate can be reduced slightly faster with a larger frame reduction amplitude, that is, the frame rate adjustment strategy can be determined to reduce the current frame rate with a larger second frame reduction amplitude, so as to adjust the frame rate to a safe range as quickly as possible under the premise of slowly reducing the frame rate, so as to prevent the terminal device from being overheated and ensure the stability of the terminal device operation.

需要说明的是,实际使用时,还可以设置更多的预警温度,以将预测温度划分至更多、更细化的温度范围,并且不同的温度范围可以分别对应不同的降帧幅度,以更加细化、精准的对应用的帧率进行调度,进一步提升稳帧调度的可靠性和稳定性。It should be noted that in actual use, more warning temperatures can be set to divide the predicted temperature into more and more detailed temperature ranges, and different temperature ranges can correspond to different frame reduction amplitudes, so as to schedule the application's frame rate in a more detailed and accurate manner, further improving the reliability and stability of stable frame scheduling.

进一步的,还可以预先训练稳帧决策模型,并利用稳帧决策模型之间根据终端设备的当前温度与历史温度直接输出当前的帧率调整策略,以进一步提升稳帧调度的可靠性和稳定性,进一步提升应用的显示和运行的流畅度。即在本申请实施例一种可能的实现方式中,上述预测温度可以是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还可以包括预先训练的温度与帧率调整策略的映射关系;相应的,上述步骤104,可以包括:Furthermore, a frame stabilization decision model can be pre-trained, and the frame stabilization decision model can be used to directly output the current frame rate adjustment strategy based on the current temperature and historical temperature of the terminal device, so as to further improve the reliability and stability of the frame stabilization scheduling, and further improve the display and operation fluency of the application. That is, in a possible implementation of the embodiment of the present application, the predicted temperature can be determined by using a pre-trained frame stabilization decision model, and the pre-trained mapping relationship between the temperature and the frame rate adjustment strategy can also be included in the pre-trained frame stabilization decision model; accordingly, the above step 104 can include:

根据预测温度及温度与帧率调整策略的映射关系,将与预测温度对应的帧率调整策略,确定为帧率调整策略。According to the predicted temperature and the mapping relationship between the temperature and the frame rate adjustment strategy, the frame rate adjustment strategy corresponding to the predicted temperature is determined as the frame rate adjustment strategy.

作为一种可能的实现方式,可以将本申请实施例步骤101-103中对预测温度的计算方式作为稳帧决策模型中的一部分算法,以用于通过稳帧决策模型直接计算出终端设备在预设时长后的预测温度。在本申请实施例中,可以预先获取大量终端设备的大量温度数据与当前应用的帧率数据,对稳帧决策模型进行训练,直至生成准确的温度与帧率调整策略的映射关系,即可以采用该稳帧决策模型进行稳帧调度。也就是说,在本申请实施例中,可以将终端设备的当前温度、各个历史时刻的历史温度、预设时长及期望帧率、当前帧率输入稳帧决策模型之后,稳帧决策模型即可以根据这些参数计算出终端设备在预设时长后的预测温度,进而可以直接根据该预测温度以及预先训练的温度与帧率调整策略的映射关系,直接确定出与预测温度对应的帧率调整策略,作为当前的帧率调整策略并输出,以使终端设备可以根据稳帧决策模型输出的帧率调整策略对当前帧率进行调整。As a possible implementation method, the calculation method of the predicted temperature in steps 101-103 of the embodiment of the present application can be used as a part of the algorithm in the stable frame decision model, so as to directly calculate the predicted temperature of the terminal device after the preset time length through the stable frame decision model. In the embodiment of the present application, a large amount of temperature data of a large number of terminal devices and the frame rate data of the current application can be obtained in advance, and the stable frame decision model can be trained until an accurate mapping relationship between temperature and frame rate adjustment strategy is generated, that is, the stable frame decision model can be used for stable frame scheduling. That is, in the embodiment of the present application, after the current temperature of the terminal device, the historical temperature at each historical moment, the preset time length and the expected frame rate, and the current frame rate can be input into the stable frame decision model, the stable frame decision model can calculate the predicted temperature of the terminal device after the preset time length according to these parameters, and then directly according to the predicted temperature and the mapping relationship between the pre-trained temperature and the frame rate adjustment strategy, the frame rate adjustment strategy corresponding to the predicted temperature can be directly determined as the current frame rate adjustment strategy and output, so that the terminal device can adjust the current frame rate according to the frame rate adjustment strategy output by the stable frame decision model.

需要说明的是,本申请实施例中预先训练的温度与帧率调整策略的映射关系中可以包括大量温度与帧率调整策略的映射关系,即每个不同的温度都可能对应不同的帧率调整策略,从而达到更加细化、精准的稳帧调度效果,进一步提升稳帧调度的可靠性和稳定性。It should be noted that the pre-trained mapping relationship between temperature and frame rate adjustment strategy in the embodiment of the present application may include a large number of mapping relationships between temperature and frame rate adjustment strategies, that is, each different temperature may correspond to a different frame rate adjustment strategy, thereby achieving a more refined and accurate stable frame scheduling effect, and further improving the reliability and stability of stable frame scheduling.

步骤105,根据帧率调整策略,对当前帧率进行调整。Step 105: adjust the current frame rate according to the frame rate adjustment strategy.

在本申请实施例中,确定出当前的帧率调整策略之后,即可以根据该帧率调整策略对当前应用的当前帧率进行调整。In the embodiment of the present application, after the current frame rate adjustment strategy is determined, the current frame rate of the current application can be adjusted according to the frame rate adjustment strategy.

作为一种可能的实现方式,若帧率调整策略为保持当前帧率不变,则可以保持当前帧率不变;若帧率调整策略为降低当前帧率,则可以按照预设降帧幅度,降低当前帧率。As a possible implementation, if the frame rate adjustment strategy is to keep the current frame rate unchanged, the current frame rate can be kept unchanged; if the frame rate adjustment strategy is to reduce the current frame rate, the current frame rate can be reduced according to a preset frame reduction range.

作为一种可能的实现方式,若帧率调整策略为以第一降帧幅度降低当前帧率,则可以将当前帧率降低第一降帧幅度;若帧率调整策略为以第二降帧幅度降低当前帧率,则可以将当前帧率降低第二降帧幅度。As a possible implementation method, if the frame rate adjustment strategy is to reduce the current frame rate by a first frame reduction amplitude, the current frame rate can be reduced by the first frame reduction amplitude; if the frame rate adjustment strategy is to reduce the current frame rate by a second frame reduction amplitude, the current frame rate can be reduced by the second frame reduction amplitude.

本申请实施例提供的稳帧调度方法,通过根据终端设备的多个历史温度预测终端设备在预设时长后的温度,以对终端设备的温度情况进行提前预判,并在预测到温度可能过高时,提前对应用的帧率进行缓慢降低,从而避免了应用出现帧率断崖式下降现象,并解决了帧率骤降导致的掉帧卡顿问题,提升了用户的使用体验。The stable frame scheduling method provided in the embodiment of the present application predicts the temperature of the terminal device after a preset period of time based on multiple historical temperatures of the terminal device, so as to make an early judgment on the temperature condition of the terminal device, and slowly reduce the frame rate of the application in advance when it is predicted that the temperature may be too high, thereby avoiding a cliff drop in the frame rate of the application, solving the problem of frame drops and stuttering caused by a sudden drop in the frame rate, and improving the user experience.

在本申请一种可能的实现形式中,为了保证帧率的稳定性,以及在终端设备运行状况允许的情况下,可以使得应用的帧率尽可能最优,可以通过帧率容忍度约束帧率可以浮动的幅度,因此在对应用进行帧率调度时,还可以根据实时的温度情况对帧率容忍度进行调整,以进一步提升稳帧调度的稳定性和可靠性,进一步提升用户的使用体验。In a possible implementation form of the present application, in order to ensure the stability of the frame rate and to make the frame rate of the application as optimal as possible when the operating conditions of the terminal device permit, the frame rate tolerance can be used to constrain the fluctuation range of the frame rate. Therefore, when scheduling the frame rate of the application, the frame rate tolerance can also be adjusted according to the real-time temperature conditions to further improve the stability and reliability of stable frame scheduling and further improve the user experience.

下面结合图2,对本申请实施例提供的稳帧调度方法进行进一步说明。The stable frame scheduling method provided in the embodiment of the present application is further described below in conjunction with FIG. 2 .

图2示出了本申请实施例提供的另一种稳帧调度方法的流程示意图。FIG2 shows a schematic flow chart of another stable frame scheduling method provided in an embodiment of the present application.

如图2所示,该稳帧调度方法,包括以下步骤:As shown in FIG2 , the stable frame scheduling method includes the following steps:

步骤201,获取当前应用对应的期望帧率及当前帧率。Step 201, obtaining the expected frame rate and current frame rate corresponding to the current application.

步骤202,获取当前应用所在的终端设备的当前温度及在多个历史时刻的历史温度,其中,历史时刻是指处于当前数据帧之前的多个历史数据帧的显示时刻。Step 202, obtaining the current temperature of the terminal device where the current application is located and the historical temperatures at multiple historical moments, wherein the historical moment refers to the display moment of multiple historical data frames before the current data frame.

步骤203,根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度。Step 203, determining the predicted temperature of the terminal device after a preset time period according to the expected frame rate, the current temperature and various historical temperatures.

上述步骤201-203的具体实现过程及原理,可以参照上述实施例的详细描述,此处不再赘述。The specific implementation process and principle of the above steps 201-203 can be referred to the detailed description of the above embodiment, which will not be repeated here.

步骤204,根据预测温度,确定当前应用对应的帧率容忍度调整策略。Step 204: Determine a frame rate tolerance adjustment strategy corresponding to the current application according to the predicted temperature.

其中,帧率容忍度,可以是指允许当前应用的实际帧率偏离期望帧率的幅度。需要说明的是,帧率容忍度越大,则说明允许当前应用的实际帧率偏离期望帧率的幅度越大;帧率容忍度越小,则说明允许当前应用的实际帧率偏离期望帧率的幅度越小。可以理解的是,帧率容忍度越小,则说明当前应用的实际帧率能够保持的更加稳定。The frame rate tolerance may refer to the range by which the actual frame rate of the current application is allowed to deviate from the expected frame rate. It should be noted that the greater the frame rate tolerance, the greater the range by which the actual frame rate of the current application is allowed to deviate from the expected frame rate; the smaller the frame rate tolerance, the smaller the range by which the actual frame rate of the current application is allowed to deviate from the expected frame rate. It can be understood that the smaller the frame rate tolerance, the more stable the actual frame rate of the current application can be maintained.

举例来说,假设帧率容忍度为2fps,期望帧率为90fps,则当前应用的实际帧率处于88~92fps的范围内时,可以认为当前应用的实际帧率是正常的;若当前应用的实际帧率未处于88~92fps的范围内,则可以认为当前应用的实际帧率是不正常的。For example, assuming the frame rate tolerance is 2fps and the expected frame rate is 90fps, when the actual frame rate of the current application is within the range of 88 to 92fps, it can be considered that the actual frame rate of the current application is normal; if the actual frame rate of the current application is not within the range of 88 to 92fps, it can be considered that the actual frame rate of the current application is abnormal.

作为一种可能的实现方式,在终端设备在预设时长后的预测温度较高时,说明继续保持当前帧率终端设备可能存在温度过高的风险,因此可以降低当前应用的当前帧率,从而可以将帧率容忍度调整策略确定为升高当前帧率容忍度,以对后续降低当前帧率做准备,防止帧率容忍度过低,无法对当前帧率进行降低;在终端设备在预设时长后的预测温度较低时,说明终端设备当前运行状况良好,不存在温度过高的风险,因此可以保持当前应用的当前帧率不变,即当前没有调整当前帧率的需求,从而可以将帧率容忍度调整策略确定为保持当前帧率容忍度不变,或者降低当前帧率容忍度,以使应用的帧率可以尽可能的保持稳定。As a possible implementation method, when the predicted temperature of the terminal device after a preset period of time is high, it means that if the terminal device continues to maintain the current frame rate, there may be a risk of overtemperature. Therefore, the current frame rate of the current application can be reduced, and the frame rate tolerance adjustment strategy can be determined to increase the current frame rate tolerance to prepare for the subsequent reduction of the current frame rate to prevent the frame rate tolerance from being too low and the current frame rate cannot be reduced. When the predicted temperature of the terminal device after the preset period of time is low, it means that the terminal device is currently operating in good condition and there is no risk of overtemperature. Therefore, the current frame rate of the current application can be kept unchanged, that is, there is no need to adjust the current frame rate at present, and the frame rate tolerance adjustment strategy can be determined to keep the current frame rate tolerance unchanged, or to reduce the current frame rate tolerance so that the frame rate of the application can be kept as stable as possible.

进一步的,可以通过设定终端设备的温度阈值,并以该温度阈值为标准判断终端设备是否存在温度过高的风险,以进一步提升稳帧调度的可靠性。即在本申请实施例一种可能的实现方式中,上述步骤204,可以包括:Furthermore, the reliability of stable frame scheduling can be further improved by setting a temperature threshold of the terminal device and using the temperature threshold as a standard to determine whether the terminal device has a risk of over-temperature. That is, in a possible implementation of the embodiment of the present application, the above step 204 may include:

在预测温度小于或等于安全温度时,将帧率容忍度调整策略确定为降低当前帧率容忍度;When the predicted temperature is less than or equal to the safe temperature, the frame rate tolerance adjustment strategy is determined to reduce the current frame rate tolerance;

在预测温度大于安全温度且小于或等于第一预警温度时,将帧率容忍度调整策略确定为保持当前帧率容忍度不变;When the predicted temperature is greater than the safe temperature and less than or equal to the first warning temperature, the frame rate tolerance adjustment strategy is determined to keep the current frame rate tolerance unchanged;

在预测温度大于第一预警温度时,将帧率容忍度调整策略确定为升高当前帧率容忍度。When the predicted temperature is greater than the first warning temperature, the frame rate tolerance adjustment strategy is determined to increase the current frame rate tolerance.

其中,安全温度,可以是指不会对终端设备的性能产生影响的温度上限。也就是说,在终端设备的温度小于或等于安全温度时,终端设备的性能处于比较良好的状态。实际使用时,可以根据实际需要及具体的应用场景,设定安全温度的具体取值,本申请实施例对此不做限定。The safety temperature may refer to the upper temperature limit that will not affect the performance of the terminal device. In other words, when the temperature of the terminal device is less than or equal to the safety temperature, the performance of the terminal device is in a relatively good state. In actual use, the specific value of the safety temperature may be set according to actual needs and specific application scenarios, and the embodiments of the present application do not limit this.

其中,本实施例中的第一预警温度可以与前述实施例中的第一预警温度是相同的,此处不再赘述。The first warning temperature in this embodiment may be the same as the first warning temperature in the aforementioned embodiment, which will not be described in detail here.

作为一种可能的实现方式,若预测温度小于或等于安全温度,则说明终端设备的温度在预设时长后仍然维持在良好的水平,一段时间内无需调整当前帧率,因此可以将帧率容忍度调整策略确定为降低当前帧率容忍度,以使当前应用的帧率尽可能的保持稳定,进一步提升帧率稳定性;若预测温度大于安全稳定且小于或等于第一预警温度,则说明终端设备的温度在预设时长后虽然维持在较低的水平但后续可能存在温度过高的风险,即当前可以保持当前帧率不变,但短时间内可能存在降低帧率的需求,因此可以将帧率容忍度调整策略确定为保持当前帧率容忍度,以在需要进行帧率调整时可以正常对帧率进行调整;若预测温度大于第一预警温度,则说明终端设备的温度在预设时长后可能会升高至较高的水平,即当前可以降低当前帧率,以在终端设备温度过高之前缓慢降低帧率,因此,可以将帧率容忍度调整策略确定为升高当前帧率容忍度,以保证可以正常降低帧率。As a possible implementation method, if the predicted temperature is less than or equal to the safe temperature, it means that the temperature of the terminal device is still maintained at a good level after the preset time, and there is no need to adjust the current frame rate for a period of time. Therefore, the frame rate tolerance adjustment strategy can be determined to reduce the current frame rate tolerance, so that the frame rate of the current application is kept as stable as possible, further improving the frame rate stability; if the predicted temperature is greater than the safe stability and less than or equal to the first warning temperature, it means that although the temperature of the terminal device is maintained at a low level after the preset time, there may be a risk of excessive temperature in the future, that is, the current frame rate can be kept unchanged at present, but there may be a need to reduce the frame rate in a short period of time, so the frame rate tolerance adjustment strategy can be determined to maintain the current frame rate tolerance, so that the frame rate can be adjusted normally when the frame rate adjustment is needed; if the predicted temperature is greater than the first warning temperature, it means that the temperature of the terminal device may rise to a higher level after the preset time, that is, the current frame rate can be reduced at present, so as to slowly reduce the frame rate before the temperature of the terminal device is too high, therefore, the frame rate tolerance adjustment strategy can be determined to increase the current frame rate tolerance to ensure that the frame rate can be reduced normally.

作为一种可能的实现方式,还可以在终端设备的预测温度较高需要进行升高帧率容忍度时,根据终端设备的预测温度所处的水平,分别采用不同的幅度升高帧率容忍度,从而使得需要以较大的降帧幅度进行降帧时,同时可以具有较高的帧率容忍度。As a possible implementation method, when the predicted temperature of the terminal device is high and the frame rate tolerance needs to be increased, the frame rate tolerance can be increased by different amplitudes according to the predicted temperature level of the terminal device, so that when a larger frame rate reduction amplitude is required, a higher frame rate tolerance can be achieved at the same time.

作为一种示例,若预测温度大于第一预警温度且小于或等于第二预警温度,则说明终端设备在预设时长后的温度可能较高但可接受的范围,从而可以以较小的第一降帧幅度降低当前帧率,并可以将帧率容忍度调整策略确定为将当前帧率容忍度升高第一预设值;若预测温度大于第二预警温度,则说明终端设备在预设时长后的温度可能会过高,从而可以以较大的第二降帧幅度降低当前帧率,并可以将帧率容忍度调整策略确定为将当前帧率容忍度升高第二预设值。As an example, if the predicted temperature is greater than the first warning temperature and less than or equal to the second warning temperature, it means that the temperature of the terminal device after the preset time period may be high but within an acceptable range, so that the current frame rate can be reduced by a smaller first frame reduction amplitude, and the frame rate tolerance adjustment strategy can be determined to increase the current frame rate tolerance by a first preset value; if the predicted temperature is greater than the second warning temperature, it means that the temperature of the terminal device after the preset time period may be too high, so that the current frame rate can be reduced by a larger second frame reduction amplitude, and the frame rate tolerance adjustment strategy can be determined to increase the current frame rate tolerance by a second preset value.

需要说明的使,第二预设值可以大于第一预设值。实际使用时,可以根据实际需要及具体的应用场景,确定第一预设值与第二预设值的具体取值,本申请实施例对此不做限定。比如,第一预设值可以为2fps,第二预设值可以为4fps,等等。It should be noted that the second preset value may be greater than the first preset value. In actual use, the specific values of the first preset value and the second preset value may be determined according to actual needs and specific application scenarios, and the embodiments of the present application do not limit this. For example, the first preset value may be 2fps, the second preset value may be 4fps, and so on.

进一步的,在通过稳帧决策模型确定帧率调整策略时,也可以通过稳帧决策模型确定帧率容忍度调整策略,以进一步提升稳帧调度的可靠性和稳定性,进一步提升应用的显示和运行的流畅度。即在本申请实施例一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还可以包括预先训练的温度与帧率容忍度调整策略的映射关系;相应的,上述步骤204,可以包括:Furthermore, when the frame rate adjustment strategy is determined by the frame stabilization decision model, the frame rate tolerance adjustment strategy can also be determined by the frame stabilization decision model to further improve the reliability and stability of the frame stabilization scheduling and further improve the display and operation fluency of the application. That is, in a possible implementation of the embodiment of the present application, the above-mentioned predicted temperature is determined by using a pre-trained frame stabilization decision model, and the above-mentioned frame stabilization decision model can also include a mapping relationship between the pre-trained temperature and the frame rate tolerance adjustment strategy; accordingly, the above-mentioned step 204 can include:

根据预测温度及温度与帧率容忍度调整策略的映射关系,将与预测温度对应的帧率容忍度调整策略,确定为帧率容忍度调整策略。According to the predicted temperature and the mapping relationship between the temperature and the frame rate tolerance adjustment strategy, the frame rate tolerance adjustment strategy corresponding to the predicted temperature is determined as the frame rate tolerance adjustment strategy.

作为一种可能的实现方式,可以预先获取大量终端设备的大量温度数据与当前应用的帧率数据、帧率容忍度数据,对稳帧决策模型进行训练,直至生成准确的温度与帧率调整策略的映射关系,以及准确的温度与帧率容忍度调整策略的映射关系,即可以采用该稳帧决策模型进行稳帧调度。也就是说,在本申请实施例中,可以将终端设备的当前温度、各个历史时刻的历史温度、预设时长及期望帧率、当前帧率输入稳帧决策模型之后,稳帧决策模型即可以根据这些参数计算出终端设备在预设时长后的预测温度,进而可以直接根据该预测温度以及预先训练的温度与帧率容忍度调整策略的映射关系,直接确定出与预测温度对应的帧率容忍度调整策略,作为当前的帧率容忍度调整策略并输出,以使终端设备可以根据稳帧决策模型输出的帧率容忍度调整策略对当前帧率容忍度进行调整。As a possible implementation method, a large amount of temperature data of a large number of terminal devices and the frame rate data and frame rate tolerance data of the current application can be obtained in advance, and the stable frame decision model can be trained until an accurate mapping relationship between temperature and frame rate adjustment strategy and an accurate mapping relationship between temperature and frame rate tolerance adjustment strategy are generated, that is, the stable frame decision model can be used for stable frame scheduling. That is to say, in an embodiment of the present application, after the current temperature of the terminal device, the historical temperature at each historical moment, the preset duration and the expected frame rate, and the current frame rate are input into the stable frame decision model, the stable frame decision model can calculate the predicted temperature of the terminal device after the preset duration based on these parameters, and then directly determine the frame rate tolerance adjustment strategy corresponding to the predicted temperature based on the predicted temperature and the mapping relationship between the pre-trained temperature and the frame rate tolerance adjustment strategy, and output it as the current frame rate tolerance adjustment strategy, so that the terminal device can adjust the current frame rate tolerance according to the frame rate tolerance adjustment strategy output by the stable frame decision model.

需要说明的是,本申请实施例中预先训练的温度与帧率容忍度调整策略的映射关系中可以包括大量温度与帧率容忍度调整策略的映射关系,即每个不同的温度都可能对应不同的帧率容忍度调整策略,从而达到更加细化、精准的稳帧调度效果,进一步提升稳帧调度的可靠性和稳定性。It should be noted that the pre-trained mapping relationship between temperature and frame rate tolerance adjustment strategy in the embodiment of the present application may include a large number of mapping relationships between temperature and frame rate tolerance adjustment strategies, that is, each different temperature may correspond to a different frame rate tolerance adjustment strategy, thereby achieving a more refined and accurate stable frame scheduling effect, and further improving the reliability and stability of stable frame scheduling.

步骤205,根据预测温度,确定当前应用对应的帧率调整策略。Step 205: Determine a frame rate adjustment strategy corresponding to the current application according to the predicted temperature.

上述步骤205的具体实现过程及原理,可以参照上述实施例的详细描述,此处不再赘述。The specific implementation process and principle of the above step 205 can refer to the detailed description of the above embodiment, which will not be repeated here.

步骤206,根据帧率容忍度调整策略,对当前应用对应的当前帧率容忍度进行调整。Step 206: Adjust the current frame rate tolerance corresponding to the current application according to the frame rate tolerance adjustment strategy.

在本申请实施例中,确定出当前的帧率容忍度调整策略之后,即可以根据该帧率容忍度调整策略对当前应用的当前帧率容忍度进行调整。In the embodiment of the present application, after the current frame rate tolerance adjustment strategy is determined, the current frame rate tolerance of the current application can be adjusted according to the frame rate tolerance adjustment strategy.

作为一种可能的实现方式,若帧率调整策略为保持当前帧率容忍度不变,则可以保持当前帧率容忍度不变;若帧率调整策略为降低当前帧率容忍度,则可以按照预设幅度,降低当前帧率容忍度;若帧率调整策略为升高当前帧率容忍度,则可以按照预设幅度,生成当前帧率容忍度。As a possible implementation method, if the frame rate adjustment strategy is to keep the current frame rate tolerance unchanged, the current frame rate tolerance can be kept unchanged; if the frame rate adjustment strategy is to reduce the current frame rate tolerance, the current frame rate tolerance can be reduced according to a preset amplitude; if the frame rate adjustment strategy is to increase the current frame rate tolerance, the current frame rate tolerance can be generated according to a preset amplitude.

作为一种可能的实现方式,若帧率容忍度调整策略为将当前帧率容忍度降低第一预设值,则可以将当前帧率容忍度降低第一预设值;若帧率容忍度调整策略为将当前帧率容忍度降低第二预设值,则可以将当前帧率容忍度降低第二预设值。As a possible implementation method, if the frame rate tolerance adjustment strategy is to reduce the current frame rate tolerance by a first preset value, the current frame rate tolerance can be reduced by the first preset value; if the frame rate tolerance adjustment strategy is to reduce the current frame rate tolerance by a second preset value, the current frame rate tolerance can be reduced by the second preset value.

步骤207,根据帧率调整策略,对当前帧率进行调整。Step 207: adjust the current frame rate according to the frame rate adjustment strategy.

上述步骤207的具体实现过程及原理,可以参照上述实施例的详细描述,此处不再赘述。The specific implementation process and principle of the above step 207 can refer to the detailed description of the above embodiment, which will not be repeated here.

本申请实施例提供的稳帧调度方法,通过根据终端设备的多个历史温度预测终端设备在预设时长后的温度,以对终端设备的温度情况进行提前预判,并在预测到温度可能过高时,提前对应用的帧率进行缓慢降低,以及对应用的帧率容忍度进行调整,从而不仅避免了应用出现帧率断崖式下降现象,并解决了帧率骤降导致的掉帧卡顿问题,提升了用户的使用体验,而且进一步提升了稳帧调度的稳定性和可靠性。The stable frame scheduling method provided in the embodiment of the present application predicts the temperature of the terminal device after a preset period of time based on multiple historical temperatures of the terminal device, so as to make an early judgment on the temperature condition of the terminal device, and slowly reduce the frame rate of the application in advance when it is predicted that the temperature may be too high, and adjust the frame rate tolerance of the application. This not only avoids the phenomenon of a cliff drop in the frame rate of the application, but also solves the problem of frame drops and jamming caused by a sudden drop in the frame rate, thereby improving the user experience and further improving the stability and reliability of the stable frame scheduling.

在本申请一种可能的实现形式中,由于终端设备的处理器频点可以直接影响终端设备的温度,因此为了将终端设备的温度保持在相对稳定的范围内,防止终端设备的温度过高影响性能,可以在预判到终端设备存在温度过高的风险时,提前对终端设备的处理器频点进行调整,以通过对终端设备进行温度控制,使得应用的帧率可以保持在较优且稳定的状态,进而进一步提升稳帧调度的稳定性,进一步改善用户的使用体验。In a possible implementation form of the present application, since the processor frequency of the terminal device can directly affect the temperature of the terminal device, in order to maintain the temperature of the terminal device within a relatively stable range and prevent the terminal device from being overly hot and affecting performance, the processor frequency of the terminal device can be adjusted in advance when it is predicted that the terminal device is at risk of overheating. By controlling the temperature of the terminal device, the frame rate of the application can be maintained in a relatively optimal and stable state, thereby further improving the stability of stable frame scheduling and further improving the user experience.

下面结合图3,对本申请实施例提供的稳帧调度方法进行进一步说明。The stable frame scheduling method provided in the embodiment of the present application is further described below in conjunction with FIG. 3 .

图3示出了本申请实施例提供的再一种稳帧调度方法的流程示意图。FIG3 shows a schematic flow chart of yet another stable frame scheduling method provided in an embodiment of the present application.

如图3所示,该稳帧调度方法,包括以下步骤:As shown in FIG3 , the stable frame scheduling method includes the following steps:

步骤301,获取当前应用对应的期望帧率及当前帧率。Step 301, obtaining the expected frame rate and current frame rate corresponding to the current application.

步骤302,获取当前应用所在的终端设备的当前温度及在多个历史时刻的历史温度,其中,历史时刻是指处于当前数据帧之前的多个历史数据帧的显示时刻。Step 302, obtaining the current temperature of the terminal device where the current application is located and the historical temperatures at multiple historical moments, wherein the historical moment refers to the display moment of multiple historical data frames before the current data frame.

步骤303,根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度。Step 303, determining the predicted temperature of the terminal device after a preset time period according to the expected frame rate, the current temperature and various historical temperatures.

步骤304,根据预测温度,确定当前应用对应的帧率调整策略。Step 304: Determine a frame rate adjustment strategy corresponding to the current application according to the predicted temperature.

上述步骤301-304的具体实现过程及原理,可以参照上述实施例的详细描述,此处不再赘述。The specific implementation process and principle of the above steps 301-304 can be referred to the detailed description of the above embodiment, which will not be repeated here.

步骤305,根据预测温度,确定终端设备对应的处理器频点调整策略。Step 305: Determine a processor frequency adjustment strategy corresponding to the terminal device according to the predicted temperature.

在本申请实施例中,确定出终端设备在预设时长后的预测温度之后,即可根据该预测温度对终端设备在未来一段时间后的运行状况、温度状况进行提前预判,进而根据预测温度确定终端设备对应的处理器频点调整策略,以防止终端设备温度过高,进一步提升应用的帧率稳定性。In an embodiment of the present application, after determining the predicted temperature of the terminal device after a preset period of time, the operating status and temperature status of the terminal device in the future can be predicted in advance based on the predicted temperature, and then the processor frequency adjustment strategy corresponding to the terminal device can be determined based on the predicted temperature to prevent the terminal device from overheating and further improve the frame rate stability of the application.

作为一种可能的实现方式,在终端设备在预设时长后的预测温度较高时,说明终端设备可能存在温度过高的风险,因此可以降低终端设备对应的处理器频点,即可以将处理器频点调整策略确定为降低当前处理器频点,以提前降低处理器频点,防止终端设备的温度继续升高;在终端设备在预设时长后的预测温度较低时,说明终端设备当前运行状况良好,不存在温度过高的风险,因此可以保持当前处理器频点不变,以尽可能保证应用的显示和运行流畅度。As a possible implementation method, when the predicted temperature of the terminal device after a preset period of time is high, it means that the terminal device may be at risk of overheating, so the processor frequency corresponding to the terminal device can be reduced, that is, the processor frequency adjustment strategy can be determined to reduce the current processor frequency, so as to reduce the processor frequency in advance and prevent the temperature of the terminal device from continuing to rise; when the predicted temperature of the terminal device after a preset period of time is low, it means that the terminal device is currently operating in good condition and there is no risk of overheating, so the current processor frequency can be kept unchanged to ensure the display and operation smoothness of the application as much as possible.

需要说明的是,在本申请实施例中,可以预先设定处理器频点的降低幅度,以在处理器频点调整策略为降低当前处理器频点时,以该预设的频点降低幅度降低当前处理器频点。It should be noted that in the embodiment of the present application, the reduction range of the processor frequency can be preset so that when the processor frequency adjustment strategy is to reduce the current processor frequency, the current processor frequency can be reduced by the preset frequency reduction range.

进一步的,可以通过设定终端设备的温度阈值,并以该温度阈值为标准判断终端设备是否存在温度过高的风险,以进一步提升稳帧调度的可靠性。即在本申请实施例一种可能的实现方式中,上述步骤305,可以包括:Furthermore, the reliability of stable frame scheduling can be further improved by setting a temperature threshold of the terminal device and using the temperature threshold as a standard to determine whether the terminal device has a risk of over-temperature. That is, in a possible implementation of the embodiment of the present application, the above step 305 may include:

在预测温度小于或等于第二预警温度时,将处理器频点调整策略确定为保持当前处理器频点不变;When the predicted temperature is less than or equal to the second warning temperature, the processor frequency adjustment strategy is determined to keep the current processor frequency unchanged;

在预测温度大于第二预警温度时,将处理器频点调整策略确定为降低当前处理器频点。When the predicted temperature is greater than the second warning temperature, the processor frequency adjustment strategy is determined to reduce the current processor frequency.

其中,本实施例的第二预警温度,与前述实施例中的第二预警温度可以是相同的,此处不再赘述。The second warning temperature of this embodiment may be the same as the second warning temperature of the aforementioned embodiment, and will not be described in detail here.

作为一种可能的实现方式,若预测温度小于或等于第二预警温度,则说明终端设备在预设时长后不存在温度过高的风险,从而可以将处理器频点调整策略确定为保持当前处理器频点不变,以保证终端设备的运行稳定性,以及应用显示和运行的流畅度;若预测温度大于第二预警温度,则说明终端设备在预设时长后的温度可能会过高,从而可以将处理器频点调整策略确定为降低当前处理器频点,以使终端设备的温度可以下降,防止终端设备温度过高。As a possible implementation method, if the predicted temperature is less than or equal to the second warning temperature, it means that there is no risk of overheating of the terminal device after a preset period of time, so the processor frequency adjustment strategy can be determined to keep the current processor frequency unchanged to ensure the operating stability of the terminal device and the smoothness of application display and operation; if the predicted temperature is greater than the second warning temperature, it means that the temperature of the terminal device may be too high after the preset period of time, so the processor frequency adjustment strategy can be determined to reduce the current processor frequency, so that the temperature of the terminal device can be reduced to prevent the terminal device from being overheated.

需要说明的是,实际使用时,还可以设置更多的预警温度,以将预测温度划分至更多、更细化的温度范围,并且不同的温度范围可以分别对应不同的频点降低幅度,以更加细化、精准的对处理器频点进行调度,进一步提升稳帧调度的可靠性和稳定性。It should be noted that in actual use, more warning temperatures can be set to divide the predicted temperature into more and more detailed temperature ranges, and different temperature ranges can correspond to different frequency reduction ranges, so as to schedule the processor frequency in a more detailed and accurate manner, further improving the reliability and stability of stable frame scheduling.

进一步的,在通过稳帧决策模型确定帧率调整策略时,也可以通过稳帧决策模型确定处理器频点调整策略,以进一步提升稳帧调度的可靠性和稳定性,进一步提升应用的显示和运行的流畅度。即在本申请实施例一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还可以包括预先训练的温度与处理器频点调整策略的映射关系;相应的,上述步骤305,可以包括:Furthermore, when the frame rate adjustment strategy is determined by the stable frame decision model, the processor frequency adjustment strategy can also be determined by the stable frame decision model to further improve the reliability and stability of the stable frame scheduling, and further improve the display and operation fluency of the application. That is, in a possible implementation of the embodiment of the present application, the above-mentioned predicted temperature is determined by using a pre-trained stable frame decision model, and the above-mentioned stable frame decision model can also include a mapping relationship between the pre-trained temperature and the processor frequency adjustment strategy; accordingly, the above-mentioned step 305 can include:

根据预测温度及温度与处理器频点调整策略的映射关系,将与预测温度对应的处理器频点调整策略,确定为处理器频点调整策略。According to the predicted temperature and the mapping relationship between the temperature and the processor frequency adjustment strategy, the processor frequency adjustment strategy corresponding to the predicted temperature is determined as the processor frequency adjustment strategy.

作为一种可能的实现方式,可以预先获取大量终端设备的大量温度数据与当前应用的帧率数据、处理器频点数据,对稳帧决策模型进行训练,直至生成准确的温度与帧率调整策略的映射关系,以及准确的温度与处理器频点调整策略的映射关系,即可以采用该稳帧决策模型进行稳帧调度。也就是说,在本申请实施例中,可以将终端设备的当前温度、各个历史时刻的历史温度、预设时长及期望帧率、当前帧率输入稳帧决策模型之后,稳帧决策模型即可以根据这些参数计算出终端设备在预设时长后的预测温度,进而可以直接根据该预测温度以及预先训练的温度与处理器频点调整策略的映射关系,直接确定出与预测温度对应的处理器频点调整策略,作为当前的处理器频点调整策略并输出,以使终端设备可以根据稳帧决策模型输出的处理器频点调整策略对当前处理器频点进行调整。As a possible implementation method, a large amount of temperature data of a large number of terminal devices and the frame rate data and processor frequency data of the current application can be obtained in advance, and the stable frame decision model can be trained until an accurate mapping relationship between temperature and frame rate adjustment strategy and an accurate mapping relationship between temperature and processor frequency adjustment strategy are generated, that is, the stable frame decision model can be used for stable frame scheduling. That is to say, in an embodiment of the present application, after the current temperature of the terminal device, the historical temperature at each historical moment, the preset duration and the expected frame rate, and the current frame rate are input into the stable frame decision model, the stable frame decision model can calculate the predicted temperature of the terminal device after the preset duration based on these parameters, and then directly determine the processor frequency adjustment strategy corresponding to the predicted temperature based on the predicted temperature and the mapping relationship between the pre-trained temperature and the processor frequency adjustment strategy, and output it as the current processor frequency adjustment strategy, so that the terminal device can adjust the current processor frequency according to the processor frequency adjustment strategy output by the stable frame decision model.

需要说明的是,本申请实施例中预先训练的温度与处理器频点调整策略的映射关系中可以包括大量温度与处理器频点调整策略的映射关系,即每个不同的温度都可能对应不同的处理器频点调整策略,从而达到更加细化、精准的稳帧调度效果,进一步提升稳帧调度的可靠性和稳定性。It should be noted that the pre-trained mapping relationship between temperature and processor frequency adjustment strategy in the embodiment of the present application may include a large number of mapping relationships between temperature and processor frequency adjustment strategies, that is, each different temperature may correspond to a different processor frequency adjustment strategy, thereby achieving a more detailed and accurate stable frame scheduling effect, and further improving the reliability and stability of stable frame scheduling.

步骤306,根据帧率调整策略,对当前帧率进行调整。Step 306: adjust the current frame rate according to the frame rate adjustment strategy.

上述步骤306的具体实现过程及原理,可以参照上述实施例的详细描述,此处不再赘述。The specific implementation process and principle of the above step 306 can be referred to the detailed description of the above embodiment, which will not be repeated here.

步骤307,根据处理器频点调整策略,对终端设备对应的当前处理器频点进行调整。Step 307: Adjust the current processor frequency corresponding to the terminal device according to the processor frequency adjustment strategy.

在本申请实施例中,确定出当前的处理器频点调整策略之后,即可以根据该处理器频点调整策略对当前应用的当前处理器频点进行调整。In the embodiment of the present application, after the current processor frequency adjustment strategy is determined, the current processor frequency of the current application can be adjusted according to the processor frequency adjustment strategy.

本申请实施例提供的稳帧调度方法,通过根据终端设备的多个历史温度预测终端设备在预设时长后的温度,以对终端设备的温度情况进行提前预判,并在预测到温度可能过高时,提前对应用的帧率进行缓慢降低,以及对终端设备对应的处理器频点进行调整,从而不仅避免了应用出现帧率断崖式下降现象,并解决了帧率骤降导致的掉帧卡顿问题,提升了用户的使用体验,而且通过调整处理器频点使得终端设备的温度可以及时下降,防止终端设备的温度过高,进一步提升了稳帧调度的稳定性和可靠性。The stable frame scheduling method provided in the embodiment of the present application predicts the temperature of the terminal device after a preset period of time based on multiple historical temperatures of the terminal device, so as to prejudge the temperature condition of the terminal device in advance, and when it is predicted that the temperature may be too high, slowly reduce the frame rate of the application in advance, and adjust the processor frequency corresponding to the terminal device, thereby not only avoiding the phenomenon of a cliff drop in the frame rate of the application, but also solving the problem of frame drops and jamming caused by a sudden drop in the frame rate, thereby improving the user experience, and by adjusting the processor frequency, the temperature of the terminal device can be reduced in time to prevent the temperature of the terminal device from being too high, thereby further improving the stability and reliability of the stable frame scheduling.

在本申请一种可能的实现形式中,还可以根据终端设备的温度同时对应用的帧率、帧率容忍度及处理器频点进行调整,以进一步提升稳帧调度的稳定性,进一步改善用户的使用体验。In a possible implementation form of the present application, the frame rate, frame rate tolerance and processor frequency of the application can also be adjusted simultaneously according to the temperature of the terminal device to further enhance the stability of the stable frame scheduling and further improve the user experience.

下面结合图4,对本申请实施例提供的稳帧调度方法进行进一步说明。The stable frame scheduling method provided in the embodiment of the present application is further described below in conjunction with FIG. 4 .

图4示出了本申请实施例提供的又一种稳帧调度方法的流程示意图。FIG4 shows a schematic flow chart of another stable frame scheduling method provided in an embodiment of the present application.

如图4所示,该稳帧调度方法,包括以下步骤:As shown in FIG4 , the stable frame scheduling method includes the following steps:

步骤401,获取当前应用对应的期望帧率及当前帧率。Step 401, obtaining the expected frame rate and current frame rate corresponding to the current application.

步骤402,获取当前应用所在的终端设备的当前温度及在多个历史时刻的历史温度,其中,历史时刻是指处于当前数据帧之前的多个历史数据帧的显示时刻。Step 402, obtaining the current temperature of the terminal device where the current application is located and the historical temperatures at multiple historical moments, wherein the historical moment refers to the display moment of multiple historical data frames before the current data frame.

步骤403,根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度。Step 403, determining the predicted temperature of the terminal device after a preset time period according to the expected frame rate, the current temperature and various historical temperatures.

步骤404,根据预测温度,确定当前应用对应的帧率容忍度调整策略。Step 404: Determine a frame rate tolerance adjustment strategy corresponding to the current application according to the predicted temperature.

步骤405,根据预测温度,确定当前应用对应的帧率调整策略。Step 405: Determine a frame rate adjustment strategy corresponding to the current application according to the predicted temperature.

步骤406,根据预测温度,确定终端设备对应的处理器频点调整策略。Step 406: Determine a processor frequency adjustment strategy corresponding to the terminal device according to the predicted temperature.

步骤407,根据帧率容忍度调整策略,对当前应用对应的当前帧率容忍度进行调整。Step 407: Adjust the current frame rate tolerance corresponding to the current application according to the frame rate tolerance adjustment strategy.

步骤408,根据帧率调整策略,对当前帧率进行调整。Step 408: Adjust the current frame rate according to the frame rate adjustment strategy.

步骤409,根据处理器频点调整策略,对终端设备对应的当前处理器频点进行调整。Step 409: Adjust the current processor frequency corresponding to the terminal device according to the processor frequency adjustment strategy.

作为一种可能的实现方式,在对当前应用进行稳帧调度时,可以根据终端设备在预设时长后的预测温度,同时确定当前应用对应的帧率调整策略、帧率容忍度调整策略,以及终端设备对应的处理器频点调整策略,并根据确定出的帧率调整策略、帧率容忍度调整策略及处理器频点调整策略,分别对当前帧率、当前帧率容忍度及当前处理器频点进行调整。As a possible implementation method, when performing stable frame scheduling for the current application, the frame rate adjustment strategy, frame rate tolerance adjustment strategy corresponding to the current application, and the processor frequency adjustment strategy corresponding to the terminal device can be determined simultaneously based on the predicted temperature of the terminal device after a preset period of time, and the current frame rate, current frame rate tolerance and current processor frequency can be adjusted respectively according to the determined frame rate adjustment strategy, frame rate tolerance adjustment strategy and processor frequency adjustment strategy.

需要说明的使,在同时确定帧率调整策略、帧率容忍度调整策略及处理器频点调整策略时,确定这三种调整策略的方式可以与上述实施例中的方式相同,比如,可以根据预设温度所处的温度区间,分别确定这三种调整策略;或者,还可以通过预先训练的稳帧决策模型,分别确定这三种调整策略。It should be noted that when simultaneously determining the frame rate adjustment strategy, the frame rate tolerance adjustment strategy and the processor frequency adjustment strategy, the method of determining these three adjustment strategies can be the same as the method in the above embodiment. For example, the three adjustment strategies can be determined separately according to the temperature range of the preset temperature; or, the three adjustment strategies can be determined separately through a pre-trained stable frame decision model.

作为一种示例,在通过预测温度所处的温度区间分别确定帧率调整策略、帧率容忍度调整策略及处理器频点调整策略时,可以通过以下表1中各个温度区间分别与帧率调整策略、帧率容忍度调整策略及处理器频点调整策略的对应关系,分别确定这三种调整策略。As an example, when determining the frame rate adjustment strategy, frame rate tolerance adjustment strategy and processor frequency adjustment strategy respectively by predicting the temperature range in which the temperature is located, the three adjustment strategies can be determined respectively by the correspondence between each temperature range and the frame rate adjustment strategy, frame rate tolerance adjustment strategy and processor frequency adjustment strategy in the following Table 1.

表1Table 1

预测温度Predicted temperature 帧率调整策略Frame rate adjustment strategy 帧率容忍度调整策略Frame rate tolerance adjustment strategy 处理器频点调整策略Processor frequency adjustment strategy T∈(0,Tsafety]T∈(0,T safety ] 保持不变Keep it the same 降低reduce 保持不变Keep it the same T∈(Tsafety,Tacceptable]T∈(T safety ,T acceptable ] 保持不变Keep it the same 保持不变Keep it the same 保持不变Keep it the same T∈(Tacceptable,Twarning]T∈(T acceptable ,T warning ] 降低reduce 升高Elevated 保持不变Keep it the same T∈(Twarning,+∞)T∈(T warning ,+∞) 降低reduce 升高Elevated 降低reduce

其中,T为终端设备在预设时长后的预测温度,Tsafety可以为上述实施例中的安全温度,Tacceptable可以为上述实施例中的第一预警温度,Twarning可以为上述实施例中的第二预警温度。Among them, T is the predicted temperature of the terminal device after a preset period of time, T safety may be the safety temperature in the above embodiment, T acceptable may be the first warning temperature in the above embodiment, and T warning may be the second warning temperature in the above embodiment.

上述步骤401-409的其他具体的实现过程及原理,可以参照上述实施例的详细描述,此处不再赘述。For other specific implementation processes and principles of the above steps 401-409, reference may be made to the detailed description of the above embodiment, which will not be repeated here.

本申请实施例提供的稳帧调度方法,通过根据终端设备的多个历史温度预测终端设备在预设时长后的温度,以对终端设备的温度情况进行提前预判,并在预测到温度可能过高时,提前对应用的帧率进行缓慢降低,以及对应用的帧率容忍度与终端设备对应的处理器频点进行调整,从而不仅避免了应用出现帧率断崖式下降现象,并解决了帧率骤降导致的掉帧卡顿问题,提升了用户的使用体验,而且通过调整处理器频点使得终端设备的温度可以及时下降,防止终端设备的温度过高,进一步提升了稳帧调度的稳定性和可靠性。The stable frame scheduling method provided in the embodiment of the present application predicts the temperature of the terminal device after a preset period of time based on multiple historical temperatures of the terminal device, so as to prejudge the temperature condition of the terminal device in advance, and when it is predicted that the temperature may be too high, slowly reduce the frame rate of the application in advance, and adjust the frame rate tolerance of the application and the processor frequency corresponding to the terminal device, thereby not only avoiding the phenomenon of a cliff drop in the frame rate of the application, but also solving the problem of frame drops and jamming caused by a sudden drop in the frame rate, improving the user experience, and by adjusting the processor frequency, the temperature of the terminal device can be reduced in time to prevent the temperature of the terminal device from being too high, further improving the stability and reliability of the stable frame scheduling.

下面结合图5,对本申请实施例提供的稳帧调度方法的软件架构进行进一步说明。The software architecture of the stable frame scheduling method provided in the embodiment of the present application is further described below in conjunction with FIG. 5 .

图5示出了本申请实施例提供的一种稳帧调度方法的架构图。FIG5 shows an architecture diagram of a stable frame scheduling method provided in an embodiment of the present application.

如图5所示,以本申请实施例的稳帧调度方法应用在游戏应用中为例,该稳帧调度方法的软件架构包括应用层、框架层、Vendor Native层及内核层。其中,应用层中可以包括游戏应用,框架层中可以包括应用管理服务(Activity Manager Service,AMS)、窗口管理服务(WindowManagerServicem,WMS)及游戏场景感知和状态识别模块;Vendor Native层中可以包括Deamon及游戏图像体验提升模块;内核层中可以包括处理器频点管理单元(cpufreq)、设备频点管理单元(devfreq)、温度采集单元(Thermal Collector)、实时调度(RT)、完全公平调度(Completely Fair Schduler,CFS)/能量感知调度(Energy AwareScheduling,EAS),以及单进程的负载跟踪(Per-entity Load Tracking,PELT)/窗口辅助负载跟踪(Window Assisted Load Tracking,WALT)。硬件层中可以包括中央处理器(CPU)、图形处理器(Graphics Processing Unit,GPU)及温控单元(Thermal Unit)。As shown in Figure 5, taking the stable frame scheduling method of the embodiment of the present application as an example in a game application, the software architecture of the stable frame scheduling method includes an application layer, a framework layer, a Vendor Native layer and a kernel layer. Among them, the application layer may include a game application, the framework layer may include an application management service (Activity Manager Service, AMS), a window management service (WindowManagerServicem, WMS) and a game scene perception and state recognition module; the Vendor Native layer may include a Deamon and a game image experience enhancement module; the kernel layer may include a processor frequency management unit (cpufreq), a device frequency management unit (devfreq), a temperature collection unit (Thermal Collector), real-time scheduling (RT), completely fair scheduling (Completely Fair Schduler, CFS)/energy aware scheduling (Energy Aware Scheduling, EAS), and single-process load tracking (Per-entity Load Tracking, PELT)/window assisted load tracking (Window Assisted Load Tracking, WALT). The hardware layer may include a central processing unit (CPU), a graphics processing unit (GPU) and a thermal control unit (Thermal Unit).

需要说明的是,本申请实施例的稳帧调度方法的软件架构及硬件部分的其他具体工作流程和作用,可以参照上述稳帧调度方法实施例的具体描述,此处不再赘述。It should be noted that the software architecture of the stable frame scheduling method and other specific work processes and functions of the hardware part of the embodiment of the present application can refer to the specific description of the above-mentioned stable frame scheduling method embodiment, and will not be repeated here.

图6示出了本申请实施例提供的一种稳帧调度方法的调度流程图。FIG6 shows a scheduling flow chart of a stable frame scheduling method provided in an embodiment of the present application.

如图6所示,参照图5中的架构图,该稳帧调度方法的调度流程图,涉及软件架构中的游戏应用、游戏场景感知和状态识别模块、游戏图像体验提升模块、温度采集单元,以及图5中未示出的稳帧决策模块、调度参数下发模块,以及图5中的硬件层部分。具体包括如下步骤:As shown in FIG6 , referring to the architecture diagram in FIG5 , the scheduling flow chart of the stable frame scheduling method involves the game application, the game scene perception and state recognition module, the game image experience enhancement module, the temperature acquisition unit in the software architecture, and the stable frame decision module and the scheduling parameter delivery module not shown in FIG5 , as well as the hardware layer part in FIG5 . Specifically, it includes the following steps:

步骤601:游戏应用向游戏场景感知和状态识别模块下发游戏包名、期望帧率;Step 601: The game application sends the game package name and expected frame rate to the game scene perception and state recognition module;

步骤602:游戏场景感知和状态识别模块向游戏图像体验提升模块下发游戏线程号、游戏模式;Step 602: the game scene perception and state recognition module sends the game thread number and game mode to the game image experience enhancement module;

步骤603:游戏图像体验提升模块向稳帧决策模块下发当前帧率;Step 603: the game image experience enhancement module sends the current frame rate to the frame stabilization decision module;

步骤604:温度采集单元向稳帧决策模块反馈终端设备的系统温度、壳温;Step 604: The temperature acquisition unit feeds back the system temperature and shell temperature of the terminal device to the frame stabilization decision module;

步骤605:稳帧决策模块计算帧率波动容忍度、当前帧率,并下发至调度参数下发模块;Step 605: The frame stabilization decision module calculates the frame rate fluctuation tolerance and the current frame rate, and sends them to the scheduling parameter sending module;

步骤606:调度参数下发模块向硬件层下发CPU、GPU、DDR频点。Step 606: The scheduling parameter sending module sends the CPU, GPU, and DDR frequency points to the hardware layer.

上述调度流程的具体实现过程及原理,可以参照上述实施例的详细描述,此处不再赘述。The specific implementation process and principle of the above scheduling flow can refer to the detailed description of the above embodiment, which will not be repeated here.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

对应于上文实施例所述的稳帧调度方法,图7示出了本申请实施例提供的稳帧调度装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the stable frame scheduling method described in the above embodiment, FIG7 shows a structural block diagram of a stable frame scheduling device provided in an embodiment of the present application. For ease of explanation, only the part related to the embodiment of the present application is shown.

参照图7,该装置70,包括:Referring to FIG. 7 , the device 70 includes:

第一获取模块71,用于获取当前应用对应的期望帧率及当前帧率;A first acquisition module 71 is used to acquire an expected frame rate and a current frame rate corresponding to a current application;

第二获取模块72,用于获取当前应用所在的终端设备的当前温度及在多个历史时刻的历史温度,其中,历史时刻是指处于当前数据帧之前的多个历史数据帧的显示时刻;The second acquisition module 72 is used to acquire the current temperature of the terminal device where the current application is located and the historical temperature at multiple historical moments, wherein the historical moment refers to the display moment of multiple historical data frames before the current data frame;

第一确定模块73,用于根据期望帧率、当前温度及各个历史温度,确定终端设备在预设时长后的预测温度;A first determination module 73, for determining a predicted temperature of the terminal device after a preset time period according to the expected frame rate, the current temperature and various historical temperatures;

第二确定模块74,用于根据预测温度,确定当前应用对应的帧率调整策略;A second determination module 74, configured to determine a frame rate adjustment strategy corresponding to the current application according to the predicted temperature;

第一调整模块75,用于根据帧率调整策略,对当前帧率进行调整。The first adjustment module 75 is used to adjust the current frame rate according to the frame rate adjustment strategy.

在实际使用时,本申请实施例提供的稳帧调度装置,可以被配置在任意终端设备中,以执行前述稳帧调度方法。In actual use, the stable frame scheduling device provided in the embodiment of the present application can be configured in any terminal device to execute the aforementioned stable frame scheduling method.

本申请实施例提供的稳帧调度装置,通过根据终端设备的多个历史温度预测终端设备在预设时长后的温度,以对终端设备的温度情况进行提前预判,并在预测到温度可能过高时,提前对应用的帧率进行缓慢降低,从而避免了应用出现帧率断崖式下降现象,并解决了帧率骤降导致的掉帧卡顿问题,提升了用户的使用体验。The stable frame scheduling device provided in the embodiment of the present application predicts the temperature of the terminal device after a preset period of time based on multiple historical temperatures of the terminal device, so as to make an early judgment on the temperature condition of the terminal device, and slowly reduce the frame rate of the application in advance when it is predicted that the temperature may be too high, thereby avoiding a cliff drop in the frame rate of the application, solving the problem of frame drops and freezes caused by a sudden drop in the frame rate, and improving the user experience.

在本申请的一种可能的实现方式中,上述第一确定模块73,包括:In a possible implementation of the present application, the first determining module 73 includes:

第一确定单元,用于根据期望帧率及各个历史温度,确定终端设备对应的温升速率;A first determining unit, configured to determine a temperature rise rate corresponding to the terminal device according to an expected frame rate and each historical temperature;

第二确定单元,用于根据当前温度、温升速率及预设时长,确定预测温度。The second determination unit is used to determine the predicted temperature according to the current temperature, the temperature rise rate and the preset time.

进一步的,在本申请另一种可能的实现方式中,上述第一确定单元,具体用于:Furthermore, in another possible implementation of the present application, the first determining unit is specifically configured to:

确定每个历史时刻对应的温控窗口,其中,每个温控窗口中包括预设数量的历史温度;Determine a temperature control window corresponding to each historical moment, wherein each temperature control window includes a preset number of historical temperatures;

根据每个温控窗口中包括的各个历史温度,确定每个历史时刻对应的平均历史温度;According to each historical temperature included in each temperature control window, determine the average historical temperature corresponding to each historical moment;

根据历史时刻的数量及期望帧率,确定温控时长;Determine the temperature control duration based on the number of historical moments and the expected frame rate;

根据各个平均历史温度及温控时长,确定温升速率。Determine the temperature rise rate based on the average historical temperatures and temperature control duration.

进一步的,在本申请再一种可能的实现方式中,上述当前温度包括当前系统温度及当前壳温,上述历史温度包括历史系统温度及历史壳温;相应的,上述第一确定模块73,包括:Further, in another possible implementation of the present application, the current temperature includes the current system temperature and the current shell temperature, and the historical temperature includes the historical system temperature and the historical shell temperature; accordingly, the first determination module 73 includes:

第三确定单元,用于根据期望帧率、当前系统温度及各个历史系统温度,确定终端设备在预设时长后的预测系统温度;A third determination unit, configured to determine a predicted system temperature of the terminal device after a preset time period according to the expected frame rate, the current system temperature and each historical system temperature;

第四确定单元,用于根据期望帧率、当前壳温及各个历史壳温,确定终端设备在预设时长后的预测壳温;A fourth determination unit, configured to determine a predicted shell temperature of the terminal device after a preset time period according to an expected frame rate, a current shell temperature, and each historical shell temperature;

第五确定单元,用于根据预测系统温度及预测壳温,确定预测温度。The fifth determining unit is used to determine the predicted temperature according to the predicted system temperature and the predicted shell temperature.

进一步的,在本申请又一种可能的实现方式中,上述第二确定模块74,包括:Furthermore, in another possible implementation of the present application, the second determining module 74 includes:

第六确定单元,用于在预测温度小于或等于第一预警温度时,将帧率调整策略确定为保持当前帧率不变;A sixth determining unit, configured to determine the frame rate adjustment strategy to keep the current frame rate unchanged when the predicted temperature is less than or equal to the first warning temperature;

第七确定单元,用于在预测温度大于第一预警温度时,将帧率调整策略确定为降低当前帧率。The seventh determining unit is configured to determine the frame rate adjustment strategy to reduce the current frame rate when the predicted temperature is greater than the first warning temperature.

进一步的,在本申请又一种可能的实现方式中,上述第七确定单元,具体用于:Furthermore, in yet another possible implementation of the present application, the seventh determining unit is specifically configured to:

在预测温度大于第一预警温度且小于或等于第二预警温度时,将帧率调整策略确定为以第一降帧幅度降低当前帧率,其中,第二预警温度大于第一预警温度;When the predicted temperature is greater than the first warning temperature and less than or equal to the second warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate by the first frame reduction amplitude, wherein the second warning temperature is greater than the first warning temperature;

在预测温度大于第二预警温度时,将帧率调整策略确定为以第二降帧幅度降低当前帧率,其中,第二降帧幅度大于第一降帧幅度。When the predicted temperature is greater than the second warning temperature, the frame rate adjustment strategy is determined to reduce the current frame rate by a second frame reduction amplitude, wherein the second frame reduction amplitude is greater than the first frame reduction amplitude.

进一步的,在本申请另一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还包括预先训练的温度与帧率调整策略的映射关系;相应的,上述第二确定模块74,包括:Further, in another possible implementation of the present application, the predicted temperature is determined by using a pre-trained frame stabilization decision model, and the pre-trained frame stabilization decision model also includes a mapping relationship between the pre-trained temperature and the frame rate adjustment strategy; accordingly, the second determination module 74 includes:

第八确定单元,用于根据预测温度及温度与帧率调整策略的映射关系,将与预测温度对应的帧率调整策略,确定为帧率调整策略。The eighth determining unit is configured to determine, according to the predicted temperature and the mapping relationship between the temperature and the frame rate adjustment strategy, the frame rate adjustment strategy corresponding to the predicted temperature as the frame rate adjustment strategy.

进一步的,在本申请再一种可能的实现方式中,上述装置70,还包括:Furthermore, in another possible implementation of the present application, the device 70 further includes:

第三确定模块,用于根据预测温度,确定当前应用对应的帧率容忍度调整策略;A third determination module is used to determine a frame rate tolerance adjustment strategy corresponding to the current application according to the predicted temperature;

第二调整模块,用于根据帧率容忍度调整策略,对当前应用对应的当前帧率容忍度进行调整。The second adjustment module is used to adjust the current frame rate tolerance corresponding to the current application according to the frame rate tolerance adjustment strategy.

进一步的,在本申请又一种可能的实现方式中,上述第三确定模块,包括:Furthermore, in another possible implementation of the present application, the third determining module includes:

第九确定单元,用于在预测温度小于或等于安全温度时,将帧率容忍度调整策略确定为降低当前帧率容忍度;a ninth determining unit, configured to determine, when the predicted temperature is less than or equal to the safe temperature, a frame rate tolerance adjustment strategy to reduce a current frame rate tolerance;

第十确定单元,用于在预测温度大于安全温度且小于或等于第一预警温度时,将帧率容忍度调整策略确定为保持当前帧率容忍度不变;a tenth determining unit, configured to determine, when the predicted temperature is greater than the safety temperature and less than or equal to the first warning temperature, a frame rate tolerance adjustment strategy to keep the current frame rate tolerance unchanged;

第十一确定单元,用于在预测温度大于第一预警温度时,将帧率容忍度调整策略确定为升高当前帧率容忍度。The eleventh determining unit is configured to determine the frame rate tolerance adjustment strategy to increase the current frame rate tolerance when the predicted temperature is greater than the first warning temperature.

进一步的,在本申请又一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还包括预先训练的温度与帧率容忍度调整策略的映射关系;相应的,上述第三确定模块,包括:Further, in another possible implementation of the present application, the predicted temperature is determined by using a pre-trained frame stabilization decision model, and the pre-trained frame stabilization decision model also includes a mapping relationship between the pre-trained temperature and the frame rate tolerance adjustment strategy; accordingly, the third determination module includes:

第十二确定单元,用于根据预测温度及温度与帧率容忍度调整策略的映射关系,将与预测温度对应的帧率容忍度调整策略,确定为帧率容忍度调整策略。The twelfth determining unit is configured to determine the frame rate tolerance adjustment strategy corresponding to the predicted temperature as the frame rate tolerance adjustment strategy according to the predicted temperature and the mapping relationship between the temperature and the frame rate tolerance adjustment strategy.

进一步的,在本申请另一种可能的实现方式中,上述装置70,还包括:Furthermore, in another possible implementation of the present application, the device 70 further includes:

第四确定模块,用于根据预测温度,确定终端设备对应的处理器频点调整策略;A fourth determination module, used to determine a processor frequency adjustment strategy corresponding to the terminal device according to the predicted temperature;

第三调整模块,用于根据处理器频点调整策略,对终端设备对应的当前处理器频点进行调整。The third adjustment module is used to adjust the current processor frequency corresponding to the terminal device according to the processor frequency adjustment strategy.

进一步的,在本申请再一种可能的实现方式中,上述第四确定模块,包括:Furthermore, in another possible implementation of the present application, the fourth determining module includes:

第十三确定单元,用于在预测温度小于或等于第二预警温度时,将处理器频点调整策略确定为保持当前处理器频点不变;A thirteenth determining unit, configured to determine the processor frequency adjustment strategy to keep the current processor frequency unchanged when the predicted temperature is less than or equal to the second warning temperature;

第十四确定单元,用于在预测温度大于第二预警温度时,将处理器频点调整策略确定为降低当前处理器频点。The fourteenth determining unit is configured to determine the processor frequency adjustment strategy to reduce the current processor frequency when the predicted temperature is greater than the second warning temperature.

进一步的,在本申请又一种可能的实现方式中,上述预测温度是利用预先训练的稳帧决策模型确定的,上述稳帧决策模型中还包括预先训练的温度与处理器频点调整策略的映射关系;相应的,上述第四确定模块,包括:Further, in another possible implementation of the present application, the predicted temperature is determined by using a pre-trained frame stabilization decision model, and the pre-trained frame stabilization decision model also includes a mapping relationship between the pre-trained temperature and the processor frequency adjustment strategy; accordingly, the fourth determination module includes:

第十五确定单元,用于根据预测温度及温度与处理器频点调整策略的映射关系,将与预测温度对应的处理器频点调整策略,确定为处理器频点调整策略。The fifteenth determining unit is used to determine the processor frequency adjustment policy corresponding to the predicted temperature as the processor frequency adjustment policy according to the predicted temperature and the mapping relationship between the temperature and the processor frequency adjustment policy.

需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the above-mentioned devices/units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

为了实现上述实施例,本申请还提出一种终端设备。In order to implement the above embodiments, the present application also proposes a terminal device.

图8为本申请一个实施例的终端设备的结构示意图。FIG8 is a schematic diagram of the structure of a terminal device according to an embodiment of the present application.

如图8所示,上述终端设备800包括:As shown in FIG8 , the terminal device 800 includes:

存储器810及至少一个处理器820,连接不同组件(包括存储器810和处理器820)的总线830,存储器810存储有计算机程序,当处理器820执行所述程序时实现本申请实施例所述的稳帧调度方法。The memory 810 and at least one processor 820, a bus 830 connecting different components (including the memory 810 and the processor 820), the memory 810 stores a computer program, and when the processor 820 executes the program, the stable frame scheduling method described in the embodiment of the present application is implemented.

总线830表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 830 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

终端设备800典型地包括多种电子设备可读介质。这些介质可以是任何能够被终端设备800访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。The terminal device 800 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the terminal device 800, including volatile and non-volatile media, removable and non-removable media.

存储器810还可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)840和/或高速缓存存储器850。终端设备800可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统860可以用于读写不可移动的、非易失性磁介质(图8未显示,通常称为“硬盘驱动器”)。尽管图8中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线830相连。存储器810可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请各实施例的功能。The memory 810 may also include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) 840 and/or a cache memory 850. The terminal device 800 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, the storage system 860 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 8 , commonly referred to as a “hard drive”). Although not shown in FIG. 8 , a disk drive for reading and writing a removable non-volatile disk (such as a “floppy disk”) and an optical disk drive for reading and writing a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) may be provided. In these cases, each drive may be connected to the bus 830 via one or more data medium interfaces. The memory 810 may include at least one program product having a set (such as at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.

具有一组(至少一个)程序模块870的程序/实用工具880,可以存储在例如存储器810中,这样的程序模块870包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块870通常执行本申请所描述的实施例中的功能和/或方法。A program/utility 880 having a set (at least one) of program modules 870 may be stored, for example, in the memory 810, such program modules 870 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 870 generally perform the functions and/or methods of the embodiments described herein.

终端设备800也可以与一个或多个外部设备890(例如键盘、指向设备、显示器891等)通信,还可与一个或者多个使得用户能与该终端设备800交互的设备通信,和/或与使得该终端设备800能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口892进行。并且,终端设备800还可以通过网络适配器893与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器893通过总线830与终端设备800的其它模块通信。应当明白,尽管图中未示出,可以结合终端设备800使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The terminal device 800 can also communicate with one or more external devices 890 (e.g., keyboard, pointing device, display 891, etc.), and can also communicate with one or more devices that enable users to interact with the terminal device 800, and/or communicate with any device that enables the terminal device 800 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through an input/output (I/O) interface 892. In addition, the terminal device 800 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and/or public network, such as the Internet) through a network adapter 893. As shown in the figure, the network adapter 893 communicates with other modules of the terminal device 800 through a bus 830. It should be understood that, although not shown in the figure, other hardware and/or software modules can be used in conjunction with the terminal device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

处理器820通过运行存储在存储器810中的程序,从而执行各种功能应用以及数据处理。The processor 820 executes various functional applications and data processing by running the programs stored in the memory 810 .

需要说明的是,本实施例的终端设备的实施过程和技术原理参见前述对本申请实施例的稳帧调度方法的解释说明,此处不再赘述。It should be noted that the implementation process and technical principles of the terminal device of this embodiment refer to the aforementioned explanation of the stable frame scheduling method of the embodiment of the present application, and will not be repeated here.

本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random AccessMemory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera/terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present application, it should be understood that the disclosed devices/terminal equipment and methods can be implemented in other ways. For example, the device/terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims (16)

1. A method for frame-stable scheduling, comprising:
acquiring an expected frame rate and a current frame rate corresponding to a current application;
Acquiring the current temperature of the terminal equipment where the current application is located and historical temperatures at a plurality of historical moments, wherein the historical moments refer to display moments of a plurality of historical data frames before the current data frame;
Determining the ratio of the number of the historical moments to the expected frame rate as a temperature control duration, wherein the temperature control duration refers to the duration of a current historical period, and the current historical period refers to the period between the acquired earliest historical moment and the display moment of the current data frame;
According to the temperature control duration, the current temperature and the historical temperatures, determining the predicted temperature of the terminal equipment after the preset duration;
determining a frame rate adjustment strategy corresponding to the current application according to the predicted temperature;
and adjusting the current frame rate according to the frame rate adjustment strategy.
2. The method of claim 1, wherein the determining the predicted temperature of the terminal device after the preset time period according to the temperature control time period, the current temperature, and the respective historical temperatures comprises:
determining a temperature rise rate corresponding to the terminal equipment according to the temperature control duration and each historical temperature;
And determining the predicted temperature according to the current temperature, the temperature rise rate and the preset duration.
3. The method of claim 2, wherein the determining the temperature rise rate corresponding to the terminal device according to the temperature control duration and each of the historical temperatures includes:
Determining a temperature control window corresponding to each historical moment, wherein each temperature control window comprises a preset number of historical temperatures;
determining an average historical temperature corresponding to each historical moment according to each historical temperature included in each temperature control window;
and determining the temperature rise rate according to the average historical temperature and the temperature control duration.
4. The method of claim 1, wherein the current temperature comprises a current system temperature and a current shell temperature, the historical temperatures comprise historical system temperatures and historical shell temperatures, and the determining the predicted temperature of the terminal device after the preset time period according to the temperature control time period, the current temperature and each of the historical temperatures comprises:
according to the temperature control duration, the current system temperature and the historical system temperatures, determining the predicted system temperature of the terminal equipment after the preset duration;
According to the temperature control duration, the current shell temperature and each historical shell temperature, determining the predicted shell temperature of the terminal equipment after the preset duration;
And determining the predicted temperature according to the predicted system temperature and the predicted shell temperature.
5. The method of claim 1, wherein the determining the frame rate adjustment policy corresponding to the current application based on the predicted temperature comprises:
when the predicted temperature is less than or equal to a first early warning temperature, determining the frame rate adjustment strategy to keep the current frame rate unchanged;
And when the predicted temperature is greater than the first early warning temperature, determining the frame rate adjustment strategy as reducing the current frame rate.
6. The method of claim 5, wherein the determining the frame rate adjustment policy to decrease the current frame rate when the predicted temperature is greater than the first pre-warning temperature comprises:
when the predicted temperature is greater than the first early warning temperature and less than or equal to a second early warning temperature, determining the frame rate adjustment strategy to reduce the current frame rate by a first frame reduction amplitude, wherein the second early warning temperature is greater than the first early warning temperature;
And when the predicted temperature is greater than the second early warning temperature, determining the frame rate adjustment strategy to reduce the current frame rate by a second frame reduction amplitude, wherein the second frame reduction amplitude is greater than the first frame reduction amplitude.
7. The method of claim 1, wherein the predicted temperature is determined using a pre-trained frame-stable decision model, the frame-stable decision model further comprising a mapping of pre-trained temperature to a frame rate adjustment policy, the determining the currently applied corresponding frame rate adjustment policy based on the predicted temperature comprising:
And determining a frame rate adjustment strategy corresponding to the predicted temperature as the frame rate adjustment strategy according to the predicted temperature and the mapping relation between the temperature and the frame rate adjustment strategy.
8. The method of claim 1, wherein determining the predicted temperature of the terminal device after the preset time period according to the temperature control time period, the current temperature, and the respective historical temperatures further comprises:
determining a frame rate tolerance adjustment strategy corresponding to the current application according to the predicted temperature;
And adjusting the current frame rate tolerance corresponding to the current application according to the frame rate tolerance adjustment strategy.
9. The method of claim 8, wherein the determining the frame rate tolerance adjustment policy corresponding to the current application based on the predicted temperature comprises:
determining the frame rate tolerance adjustment strategy to reduce the current frame rate tolerance when the predicted temperature is less than or equal to a safe temperature;
when the predicted temperature is greater than the safety temperature and less than or equal to a first early warning temperature, determining the frame rate tolerance adjustment strategy to keep the current frame rate tolerance unchanged;
and when the predicted temperature is greater than the first early warning temperature, determining the frame rate tolerance adjustment strategy as increasing the current frame rate tolerance.
10. The method of claim 8, wherein the predicted temperature is determined using a pre-trained frame-stabilized decision model, the frame-stabilized decision model further comprising a mapping of pre-trained temperature to a frame rate tolerance adjustment policy, the determining the frame rate tolerance adjustment policy corresponding to the current application based on the predicted temperature comprising:
And determining the frame rate tolerance adjustment strategy corresponding to the predicted temperature as the frame rate tolerance adjustment strategy according to the predicted temperature and the mapping relation between the temperature and the frame rate tolerance adjustment strategy.
11. The method according to any one of claims 1-10, wherein determining the predicted temperature of the terminal device after the preset time period according to the temperature control time period, the current temperature, and the respective historical temperatures further comprises:
determining a processor frequency point adjustment strategy corresponding to the terminal equipment according to the predicted temperature;
And adjusting the current processor frequency point corresponding to the terminal equipment according to the processor frequency point adjustment strategy.
12. The method of claim 11, wherein the determining the processor frequency point adjustment policy corresponding to the terminal device according to the predicted temperature comprises:
when the predicted temperature is less than or equal to a second early warning temperature, determining the processor frequency point adjustment strategy to keep the current processor frequency point unchanged;
And when the predicted temperature is greater than the second early warning temperature, determining the processor frequency point adjustment strategy as reducing the current processor frequency point.
13. The method of claim 11, wherein the predicted temperature is determined using a pre-trained frame-stable decision model, the frame-stable decision model further comprising a mapping relationship between the pre-trained temperature and a processor frequency point adjustment policy, the determining the processor frequency point adjustment policy corresponding to the terminal device according to the predicted temperature comprising:
And determining the processor frequency point adjustment strategy corresponding to the predicted temperature as the processor frequency point adjustment strategy according to the predicted temperature and the mapping relation between the temperature and the processor frequency point adjustment strategy.
14. A frame-stabilized scheduling apparatus, comprising:
the first acquisition module is used for acquiring the expected frame rate and the current frame rate corresponding to the current application;
The second acquisition module is used for acquiring the current temperature of the terminal equipment where the current application is located and the historical temperatures at a plurality of historical moments, wherein the historical moments refer to the display moments of a plurality of historical data frames before the current data frame;
A first determining module, configured to determine a ratio of the number of the historical time instants to the expected frame rate as a temperature control duration, where the temperature control duration is a duration of a current historical time period, and the current historical time period is a time period between an obtained earliest historical time instant and a display time instant of the current data frame; according to the temperature control duration, the current temperature and the historical temperatures, determining the predicted temperature of the terminal equipment after the preset duration;
The second determining module is used for determining a frame rate adjustment strategy corresponding to the current application according to the predicted temperature;
And the first adjusting module is used for adjusting the current frame rate according to the frame rate adjusting strategy.
15. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-13 when executing the computer program.
16. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1-13.
CN202310520291.6A 2023-05-09 2023-05-09 Stable frame scheduling method, device, terminal equipment and computer-readable storage medium Active CN117714788B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310520291.6A CN117714788B (en) 2023-05-09 2023-05-09 Stable frame scheduling method, device, terminal equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310520291.6A CN117714788B (en) 2023-05-09 2023-05-09 Stable frame scheduling method, device, terminal equipment and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN117714788A CN117714788A (en) 2024-03-15
CN117714788B true CN117714788B (en) 2024-10-11

Family

ID=90148591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310520291.6A Active CN117714788B (en) 2023-05-09 2023-05-09 Stable frame scheduling method, device, terminal equipment and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN117714788B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112587920A (en) * 2020-12-01 2021-04-02 Oppo(重庆)智能科技有限公司 Device control method, device, electronic device and storage medium
CN113873074A (en) * 2021-09-17 2021-12-31 杭州逗酷软件科技有限公司 A control method, electronic device and computer storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI584221B (en) * 2012-09-28 2017-05-21 輝達公司 Method for adaptively adjusting framerate of graphic processing unit and computer system using thereof
CN114510140B (en) * 2020-11-16 2024-04-16 深圳市万普拉斯科技有限公司 Frequency modulation method and device and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112587920A (en) * 2020-12-01 2021-04-02 Oppo(重庆)智能科技有限公司 Device control method, device, electronic device and storage medium
CN113873074A (en) * 2021-09-17 2021-12-31 杭州逗酷软件科技有限公司 A control method, electronic device and computer storage medium

Also Published As

Publication number Publication date
CN117714788A (en) 2024-03-15

Similar Documents

Publication Publication Date Title
US7596705B2 (en) Automatically controlling processor mode of multi-core processor
US9329663B2 (en) Processor power and performance manager
US6928565B2 (en) Computer system thermal lap management method and apparatus
US20150331473A1 (en) NON-VOLATILE MEMORY EXPRESS (NVMe) DEVICE POWER MANAGEMENT
WO2016070376A1 (en) Thermal control device and method
KR20150128907A (en) On-the-fly performance adjustment for solid state storage devices
CN102156532A (en) Computer that reduces power consumption while maintaining a specific function
TW200821918A (en) System and method for controlling processor low power states
CN109412240A (en) A kind of method and apparatus adjusting charging current
CN110647366A (en) Method, device, terminal and storage medium for handling stuck
KR101707096B1 (en) Generic host-based controller latency method and apparatus
CN118655972A (en) Power consumption control method for intelligent terminal
WO2016074355A1 (en) Terminal and control method and apparatus therefor, and storage medium
CN110659136B (en) Method, device, terminal and storage medium for limiting frame rate
CN116315273A (en) Control method, device and equipment for liquid cooling pipeline of battery energy storage system
WO2025067054A1 (en) Electric device, electric device surface temperature control method, electric device surface temperature control apparatus, medium, and chip system
TW200416606A (en) Limit interface for performance management
CN112711387A (en) Method and device for adjusting capacity of buffer area, electronic equipment and readable storage medium
CN117714788B (en) Stable frame scheduling method, device, terminal equipment and computer-readable storage medium
CN111506174A (en) Fan control method and device, electronic equipment and readable storage medium
Metri et al. BatteryExtender: an adaptive user-guided tool for power management of mobile devices
CN110658904A (en) Method, device, terminal and storage medium for controlling terminal current
CN107426417B (en) Terminal device, temperature rise control method and device during charging of terminal device, and storage medium
CN104063034B (en) Computer device and method for optimizing performance of graphics card
CN111831510B (en) Function regulation and control method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address