CN108509318A - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN108509318A
CN108509318A CN201810277368.0A CN201810277368A CN108509318A CN 108509318 A CN108509318 A CN 108509318A CN 201810277368 A CN201810277368 A CN 201810277368A CN 108509318 A CN108509318 A CN 108509318A
Authority
CN
China
Prior art keywords
display data
target application
application program
destination application
data processing
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.)
Granted
Application number
CN201810277368.0A
Other languages
Chinese (zh)
Other versions
CN108509318B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810277368.0A priority Critical patent/CN108509318B/en
Publication of CN108509318A publication Critical patent/CN108509318A/en
Application granted granted Critical
Publication of CN108509318B publication Critical patent/CN108509318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种信息处理方法和电子设备,方法包括:检测目标应用程序的运行;当确定有所述目标应用程序运行时,获取状态信息;如果至少所述状态信息满足预设条件,降低所述目标应用程序的单位时间的显示数据处理量,而目标应用程序的单位时间的显示数据处理量的降低使得目标应用程序在运行过程中对电子设备的性能要求也随着降低,即利用相对较少的电子设备的资源就能够满足目标应用程的运行,提高了用户体验。

The present application discloses an information processing method and an electronic device. The method includes: detecting the operation of the target application program; when it is determined that the target application program is running, acquiring status information; if at least the status information satisfies a preset condition, reducing the The display data processing amount per unit time of the target application program, and the reduction of the display data processing amount per unit time of the target application program reduces the performance requirements of the electronic device during the running process of the target application program, that is, using relatively Fewer resources of the electronic device can satisfy the operation of the target application program, thereby improving user experience.

Description

一种信息处理方法和电子设备An information processing method and electronic device

技术领域technical field

本申请涉及信息处理技术领域,更具体的说是涉及一种信息处理方法和电子设备。The present application relates to the technical field of information processing, and more specifically relates to an information processing method and electronic equipment.

背景技术Background technique

目前电子设备的功能非常强大,能够运行各种类型的应用程序。而某些应用程序对电子设备的性能要求会很高,例如以游戏APP为例,由于当前的主流游戏APP的游戏画面非常绚丽和逼真,因此需要电子设备的处理器具有很高的处理能力,电子设备具有很大的内存才能够使得游戏APP顺利的在电子设备上运行。Today's electronic devices are very powerful and capable of running various types of applications. Some applications have high requirements on the performance of electronic devices. For example, take game apps as an example. Because the game screens of current mainstream game apps are very gorgeous and lifelike, the processors of electronic devices are required to have high processing capabilities. Only when the electronic device has a large memory can the game APP run smoothly on the electronic device.

那么,上述应用程序在运行过程中,会出现由于电子设备的性能不能满足要求而导致应用程序运行出现问题的现象,如游戏APP会在运行过程中出现画面卡顿现象,从而影响用户的使用体验。Then, during the running process of the above-mentioned application program, there will be problems in the operation of the application program due to the performance of the electronic device not meeting the requirements. For example, the screen of the game APP will freeze during the running process, thereby affecting the user experience. .

发明内容Contents of the invention

有鉴于此,本申请提供一种信息处理方法和电子设备,以解决上述技术问题。In view of this, the present application provides an information processing method and electronic equipment to solve the above technical problems.

为实现上述目的,本申请提供如下技术方案:In order to achieve the above object, the application provides the following technical solutions:

一种信息处理方法,包括:An information processing method, comprising:

检测目标应用程序的运行;detect the running of the target application;

当确定有所述目标应用程序运行时,获取状态信息;Obtain status information when it is determined that the target application program is running;

如果至少所述状态信息满足预设条件,降低所述目标应用程序的单位时间的显示数据处理量。If at least the state information satisfies a preset condition, the display data processing amount per unit time of the target application program is reduced.

优选的,所述状态信息包括:电子设备的单位时间显示数据的处理能力和/或所述目标应用程序的单位时间的显示数据的处理量;Preferably, the state information includes: the display data processing capacity of the electronic device per unit time and/or the display data processing capacity of the target application program per unit time;

其中,所述单位时间显示数据的处理能力达到第一阈值,和/或,所述目标应用程序的单位时间的显示数据处理量达到预设单位时间的显示数据处理量,用于表征所述状态信息满足预设条件。Wherein, the display data processing capacity per unit time reaches a first threshold, and/or, the display data processing capacity per unit time of the target application program reaches a preset display data processing capacity per unit time, which is used to represent the state The information meets the preset conditions.

优选的,获取所述目标应用程序的单位时间的显示数据处理量,包括:Preferably, obtaining the display data processing amount per unit time of the target application program includes:

通过一检测模块对所述目标应用程序的进程中的显示数据处理函数进行检测,确定所述目标应用程序的单位时间的显示数据处理量。A detection module detects the display data processing function in the process of the target application program to determine the display data processing amount per unit time of the target application program.

优选的,所述通过一检测模块对所述目标应用程序的进程中的显示数据处理函数进行检测,确定单位时间的显示数据处理量包括:Preferably, the detection of the display data processing function in the process of the target application program through a detection module, and determining the display data processing amount per unit time includes:

通过检测模块接收所述目标应用程序的进程中的显示数据处理函数发送的单位时间的显示数据处理量;Receive the display data processing amount per unit time sent by the display data processing function in the process of the target application program through the detection module;

或者,确定在所述目标应用程序的进程中的显示数据处理函数处设置的检测模块,检测所述检测模块在预设时间段内被所述显示数据处理函数的调用次数,至少基于所述预设时间段和所述调用次数来确定所述目标应用程序的单位时间的显示数据处理量。Alternatively, determine the detection module set at the display data processing function in the process of the target application program, detect the number of times the detection module is called by the display data processing function within a preset time period, at least based on the preset The time period and the number of calls are set to determine the display data processing amount per unit time of the target application program.

优选的,所述显示处理函数指代为用于绘制所述目标应用程序输出的显示画面的绘制函数,那么降低所述目标应用程序的单位时间的显示数据处理量,包括:Preferably, the display processing function refers to a drawing function used to draw the display screen output by the target application program, then reducing the display data processing amount per unit time of the target application program includes:

在所述绘制函数绘制一帧画面后,准备绘制相邻的下一帧画面时,利用所述检测模块直接向所述显示数据处理函数返回绘制成功的消息,以使得所述绘制函数跳过所述相邻的下一帧画面的绘制。After the drawing function draws a frame, when preparing to draw the next adjacent frame, use the detection module to directly return a drawing success message to the display data processing function, so that the drawing function skips all Describe the drawing of the adjacent next frame.

优选的,所述目标应用程序的单位时间的显示数据处理量为所述目标应用程序的当前显示帧率,那么,降低所述目标应用程序的当前显示帧率,包括:Preferably, the display data processing amount per unit time of the target application is the current display frame rate of the target application, then reducing the current display frame rate of the target application includes:

当所述目标应用程序以第一显示帧率显示画面时,每隔M帧画面删除N帧画面,使得所述目标应用程序以第二显示帧率显示画面;When the target application program displays pictures at the first display frame rate, delete N frames of pictures every M frames of pictures, so that the target application program displays pictures at the second display frame rate;

其中,所述M和N均为任意正整数。Wherein, the M and N are any positive integers.

7、根据权利要求1所述的方法,其中,7. The method of claim 1, wherein,

所述目标应用程序为所述目标应用程序的运行参数满足预设运行参数的应用程序。The target application program is an application program whose operating parameters of the target application program meet preset operating parameters.

8、根据权利要求7所述的方法,其中,所述目标应用程序采用如下方式至少之一确定:8. The method according to claim 7, wherein the target application is determined in at least one of the following ways:

判断当前进程是否加载有资源文件,若是,确定所述当前进程所属应用程序为目标应用程序;Judging whether the current process is loaded with a resource file, if so, determining that the application to which the current process belongs is the target application;

判断创建新的进程后,电子设备的单位时间显示图像的处理能力的使用率是否大于第二阈值,若是,确定所述创建的新的进程所属应用程序为目标应用程序;After judging the creation of the new process, whether the utilization rate of the processing capability of the electronic device per unit time for displaying images is greater than the second threshold, if so, determining that the application to which the created new process belongs is the target application;

判断创建新的进程后,电子设备的单位时间存储数据的处理能力是否大于第三阈值,若是,确定所述创建的新的进程所属应用程序为目标应用程序;After judging the creation of the new process, whether the processing capability of the electronic device to store data per unit of time is greater than the third threshold, if so, determine that the application to which the created new process belongs is the target application;

获取当前进程的目录,判断所述目录对应的存储处理量是否大于第四阈值,若是,确定所述当前进程所属应用程序为目标应用程序;Obtain the directory of the current process, and determine whether the storage processing capacity corresponding to the directory is greater than the fourth threshold, and if so, determine that the application program to which the current process belongs is the target application program;

获取当前运行的应用程序的应用标识,判断所述应用标识是否为预先建立的应用程序标识列表中的标识,若是,确定所述应用程序为目标应用程序。Obtain the application identifier of the currently running application, judge whether the application identifier is an identifier in a pre-established application identifier list, and if so, determine that the application is a target application.

一种电子设备,包括:An electronic device comprising:

处理器,用于检测目标应用程序的运行,当确定有所述目标应用程序运行时,获取状态信息,如果至少所述状态信息满足预设条件,降低所述目标应用程序的单位时间的显示数据处理量;A processor, configured to detect the running of the target application, acquire state information when it is determined that the target application is running, and reduce the display data per unit time of the target application if at least the state information satisfies a preset condition throughput;

存储器,用于存储在所述处理器上运行的程序。memory for storing programs running on said processor.

一种电子设备,包括:An electronic device comprising:

检测单元,用于检测目标应用程序的运行;a detection unit, configured to detect the running of the target application;

获取单元,用于当通过所述检测单元确定有所述目标应用程序的运行时,获取状态信息;an acquiring unit, configured to acquire state information when it is determined by the detecting unit that the target application program is running;

处理单元,用于如果所述至少状态满足预设条件,降低所述目标应用程序的单位时间的显示数据处理量。The processing unit is configured to reduce the display data processing amount per unit time of the target application program if the at least state satisfies a preset condition.

经由上述的技术方案可知,与现有技术相比,本申请实施例公开了一种信息处理方法,通过检测目标应用程序的运行,当确定有目标应用程序运行时,获取状态信息,从而在至少状态信息满足预设条件时,降低目标应用程序的单位时间的显示数据处理量,而目标应用程序的单位时间的显示数据处理量的降低使得目标应用程序在运行过程中对电子设备的性能要求也随着降低,即利用相对较少的电子设备的资源就能够满足目标应用程的运行,提高了用户体验。It can be known from the above technical solutions that, compared with the prior art, the embodiment of the present application discloses an information processing method, by detecting the running of the target application, when it is determined that the target application is running, the status information is obtained, so that at least When the state information satisfies the preset condition, the display data processing amount per unit time of the target application program is reduced, and the reduction of the display data processing amount per unit time of the target application program makes the performance requirements of the electronic device during the running process of the target application program also decrease. With the reduction, that is, the operation of the target application program can be satisfied by using relatively few resources of the electronic device, and the user experience is improved.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本申请方法实施例一公开的一种信息处理方法的流程示意图;FIG. 1 is a schematic flowchart of an information processing method disclosed in Embodiment 1 of the method of the present application;

图2为本申请方法实施例二公开的一种信息处理方法的流程示意图;FIG. 2 is a schematic flowchart of an information processing method disclosed in Embodiment 2 of the method of the present application;

图3为本申请装置实施例一公开的一种电子设备的结构示意图;FIG. 3 is a schematic structural diagram of an electronic device disclosed in Embodiment 1 of the device of the present application;

图4为本申请装置实施例五公开的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device disclosed in Embodiment 5 of the device of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

本申请方法实施例一公开了一种信息处理方法,如图1所示,该方法包括如下步骤:Embodiment 1 of the method of the present application discloses an information processing method, as shown in Figure 1, the method includes the following steps:

步骤101:检测目标应用程序的运行;Step 101: detecting the running of the target application program;

本申请公开的一种信息处理方法可以应用于电子设备中,电子设备可以为手机、平板电脑、笔记本等各种装载有或者能够装载应用程序的终端。An information processing method disclosed in this application can be applied to an electronic device, and the electronic device can be various terminals loaded with or capable of loading application programs, such as a mobile phone, a tablet computer, and a notebook.

目标应用程序为在运行过程中对电子设备的性能要求较高的应用程序。那么,如果判断电子设备中运行的应用程序是否为目标应用程序,具体可当电子设备有新的应用程序启动运行时,判断新启动运行的应用程序是否为目标应用程序。而当一个应用程序启动运行时,该应用程序的进程也相应的被创建,那么,可以通过监控电子设备当前是否有新的进程创建来判断是否有新的应用程序运行。The target application program is an application program that requires high performance of the electronic device during operation. Then, if it is judged whether the application program running in the electronic device is the target application program, specifically, when a new application program starts running in the electronic device, it can be judged whether the newly started running application program is the target application program. When an application starts running, a process of the application is correspondingly created. Then, it can be judged whether there is a new application running by monitoring whether a new process is currently created in the electronic device.

如果电子设备的操作系统为Windows系统,那么可以通过Windows管理指令WMI来监控当前是否有新的进程创建。If the operating system of the electronic device is a Windows system, it is possible to monitor whether a new process is currently created through the Windows management instruction WMI.

而当电子设备上有新的应用程序运行后,可以获取当前运行的应用程序的运行参数,从而判断当前运行的应用程序的运行参数是否满足预设运行参数,如果是,则确定当前运行的应用程序为目标应用程序。即,目标应用程序为目标应用程序的运行参数满足预设运行参数的应用程序。When a new application program runs on the electronic device, the operating parameters of the currently running application program can be obtained to determine whether the operating parameters of the currently running application program meet the preset operating parameters, and if so, determine the currently running application program The program is the target application. That is, the target application program is an application program whose operation parameter meets the preset operation parameter.

其中,目标应用程序可以采用如下方式至少之一确定:Wherein, the target application program can be determined in at least one of the following ways:

(1)判断当前进程是否加载有资源文件,若是,确定所述当前进程所属应用程序为目标应用程序。(1) Determine whether the current process is loaded with a resource file, and if so, determine that the application to which the current process belongs is the target application.

进程加载有资源文件的应用程序为目标应用程序,资源文件具体可以为动态链接库,而更具体的还可以为多媒体编辑接口类型的动态链接库,动态链接库简称DLL,为Dynamic Link Library的缩写。多媒体接口例如可以为Direct X。The application program loaded with the resource file by the process is the target application program, and the resource file can specifically be a dynamic link library, and more specifically, it can also be a dynamic link library of the multimedia editing interface type. The dynamic link library is referred to as DLL, which is the abbreviation of Dynamic Link Library . The multimedia interface can be, for example, Direct X.

(2)判断创建新的进程后,电子设备的单位时间显示图像的处理能力的使用率是否大于第二阈值,若是,确定所述创建的新的进程所属应用程序为目标应用程序。(2) After the new process is created, it is judged whether the usage rate of the image processing capacity of the electronic device per unit time is greater than the second threshold, and if so, it is determined that the application to which the created new process belongs is the target application.

这种方式下,第二阈值可以基于实际情况预先设定。创建新的进程后,若电子设备的单位时间显示图像的处理能力大于第二阈值则说明创建的新的进程所属应用程序为目标应用程序。In this manner, the second threshold can be preset based on actual conditions. After the new process is created, if the electronic device's display image processing capability per unit time is greater than the second threshold, it indicates that the application program to which the created new process belongs is the target application program.

其中,电子设备的单位时间显示图像的处理处理能力可以包括电子设备的图形处理器的使用率。Wherein, the processing capability of the electronic device for displaying images per unit time may include the usage rate of the graphic processor of the electronic device.

(3)判断创建新的进程后,电子设备的单位时间存储数据的处理能力是否大于第三阈值,若是,确定所述创建的新的进程所属应用程序为目标应用程序。(3) After the new process is created, it is judged whether the processing capability of the electronic device to store data per unit time is greater than the third threshold, and if so, it is determined that the application to which the created new process belongs is the target application.

这种方式下,第三阈值可以基于实际情况预先设定。创建新的进程后,电子设备的单位时间大于第三阈值则说明创建的新的进程所属应用程序为目标应用程序。In this manner, the third threshold can be preset based on actual conditions. After the new process is created, if the unit time of the electronic device is greater than the third threshold, it indicates that the application to which the created new process belongs is the target application.

其中,电子设备的单位时间存储数据的处理能力可以包括电子设备的显存占用率。Wherein, the processing capability of storing data per unit time of the electronic device may include the video memory occupancy rate of the electronic device.

也就是说,目标应用程序在运行时会使用较多的图形处理器的资源或使用较大的显存。如由于大型游戏的画面非常逼真和绚丽因此需要图形处理器或者显存提供更多的资源。That is to say, the target application program will use more graphics processor resources or use a larger video memory when running. For example, because the pictures of large-scale games are very realistic and gorgeous, more resources need to be provided by the graphics processor or video memory.

(4)获取当前进程的目录,判断所述目录对应的存储处理量是否大于第四阈值,若是,确定所述当前进程所属应用程序为目标应用程序。(4) Obtain the directory of the current process, and determine whether the storage processing capacity corresponding to the directory is greater than the fourth threshold, and if so, determine that the application program to which the current process belongs is the target application program.

在电子设备中每一进程均具有与其对应的目录,如果目录对应的存储处理量大于第四阈值说明该进程所属应用程序为目标应用程序。第四阈值的具体数值可以基于实际情况预先设定。Each process in the electronic device has a directory corresponding to it, and if the amount of storage and processing corresponding to the directory is greater than the fourth threshold, it indicates that the application to which the process belongs is a target application. The specific value of the fourth threshold may be preset based on actual conditions.

需说明的是,由于目标应用程序采用如上方式的至少之一确定,那么也就是说,目标应用程序可以仅满足上述一种条件,或者满足上述至少两种条件。以目标应用程序满足两种条件为例,可以确定当前进程加载有资源文件,并且获取当前进程的目录,所述目录对应的存储处理量大于第四阈值的当前进程所属应用程序为目标应用程序。It should be noted that since the target application program is determined using at least one of the above methods, that is to say, the target application program may only meet one of the above conditions, or at least two of the above conditions. Taking the target application meeting the two conditions as an example, it can be determined that the current process is loaded with a resource file, and the directory of the current process is obtained, and the corresponding application of the current process whose storage and processing volume is greater than the fourth threshold is the target application.

步骤102:当确定有所述目标应用程序运行时,获取状态信息;Step 102: When it is determined that the target application program is running, obtain status information;

所述状态信息可以包括电子设备本身的状态信息,和/或,目标应用程序的状态信息。The status information may include status information of the electronic device itself, and/or status information of the target application program.

步骤103:如果至少所述状态信息满足预设条件,降低目标应用程序的单位时间的显示数据处理量。Step 103: If at least the state information satisfies a preset condition, reduce the display data processing amount per unit time of the target application program.

当状态信息满足预设条件时,说明目标应用程序当前占用电子设备过多的资源,因此降低目标应用程序的单位时间的显示数据处理量。When the state information satisfies the preset condition, it indicates that the target application currently occupies too many resources of the electronic device, so the display data processing amount per unit time of the target application is reduced.

在本申请中,目标应用程序的单位时间的显示数据处理量至少包括单位时间的显示数据已处理量以及单位时间的显示数据待处理量。单位时间的显示数据已处理量指代为目标应用程序的已经被处理的单位时间的显示数据处理量,单位时间的显示数据待处理量指代为目标应用的还未被处理,即将被处理的单位时间的显示数据处理量。而影响到电子设备的当前处理性能一般情况下为单位时间的显示数据待处理量,因此优选的,降低目标应用程序的单位时间的显示数据处理量,可以包括:降低目标应用程序的单位时间的显示数据待处理量。In the present application, the display data processing amount per unit time of the target application program includes at least the processed display data amount per unit time and the display data pending processing amount per unit time. The display data processed amount per unit time refers to the display data processing amount per unit time that has been processed by the target application program, and the display data pending processing amount per unit time refers to the unit time that the target application has not been processed and will be processed soon The displayed data processing volume. The current processing performance that affects the electronic equipment is generally the amount of display data to be processed per unit time, so preferably, reducing the amount of display data processing per unit time of the target application program may include: reducing the amount of display data per unit time of the target application program Displays the amount of data pending.

由此可见,本实施例中,通过检测目标应用程序的运行,当确定有目标应用程序运行时,获取状态信息,从而在至少状态信息满足预设条件时,降低目标应用程序的单位时间的显示数据处理量,而目标应用程序的单位时间的显示数据处理量的降低使得目标应用程序在运行过程中对电子设备的性能要求也随着降低,即利用相对较少的电子设备的资源就能够满足目标应用程的运行,提高了用户体验。It can be seen that in this embodiment, by detecting the running of the target application, when it is determined that the target application is running, the state information is obtained, so that when at least the state information meets the preset condition, the display of the target application per unit time is reduced The amount of data processing, and the reduction of the display data processing amount per unit time of the target application program makes the performance requirements of the electronic device during the operation of the target application program also decrease, that is, it can be satisfied by using relatively few resources of the electronic device. The running of the target application improves the user experience.

在本申请中,上述状态信息可以包括:电子设备的单位时间显示数据的处理能力,和/或,目标应用程序的单位时间的显示数据处理量。In the present application, the above state information may include: the display data processing capability per unit time of the electronic device, and/or the display data processing amount per unit time of the target application program.

具体的,电子设备的单位时间显示数据的处理能力达到第一阈值用于表征状态信息满足预设条件;和/或,目标应用程序的单位时间的显示数据处理量达到预设单位时间显示数据处理量,用于表征状态信息满足预设条件。Specifically, the display data processing capacity of the electronic device per unit time reaches the first threshold, which is used to indicate that the state information meets the preset condition; and/or, the display data processing capacity of the target application program reaches the preset display data processing per unit time Quantity, which is used to indicate that the status information meets the preset conditions.

电子设备的单位时间显示数据的处理能力包括电子设备的硬件资源使用率。具体的,硬件资源使用率可以包括中央处理器CPU的使用率和/或图形处理器GPU的使用率。The display data processing capability of the electronic device per unit time includes the hardware resource utilization rate of the electronic device. Specifically, the hardware resource usage rate may include a CPU usage rate of a central processing unit and/or a GPU usage rate of a graphics processing unit.

目标应用程序的单位时间的显示数据处理量可以指代为目标应用程序的单位时间的已处理量。其中,目标应用程序的单位时间的显示数据处理量可以指代为目标应用程序输出显示画面的显示帧率。那么,作为一个具体的实例,可以通过检测目标应用程序的运行,当确定有目标应用程序运行时,获取电子设备的单位时间显示数据的处理能力,当电子设备的单位时间显示处理的能力达到第一阈值时,降低目标应用程序的输出显示画面的显示帧率。The displayed data processing amount per unit time of the target application program may refer to the processed amount per unit time of the target application program. Wherein, the display data processing amount per unit time of the target application program may refer to the display frame rate at which the target application program outputs a display screen. Then, as a specific example, by detecting the running of the target application program, when it is determined that the target application program is running, the display data processing capability per unit time of the electronic device can be obtained, and when the display processing capability per unit time of the electronic device reaches the first When a threshold value is reached, the display frame rate of the output display image of the target application program is reduced.

作为另一个具体的实例,可以通过检测目标应用程序的运行,当确定有目标应用程序运行时,获取目标应用程序已输出显示画面的显示帧率,从而当已输出显示画面的显示帧率达到预先显示帧率时,降低目标应用程序待输出显示画面的显示帧率。As another specific example, by detecting the running of the target application program, when it is determined that the target application program is running, the display frame rate of the output display screen of the target application program can be obtained, so that when the display frame rate of the output display screen reaches the preset When displaying the frame rate, reduce the display frame rate of the display screen to be output by the target application program.

本申请方法实施例二公开了一种信息处理方法,如图2所述,一种信息处理方法包括如下步骤:Embodiment 2 of the method of the present application discloses an information processing method. As shown in FIG. 2, an information processing method includes the following steps:

步骤201:检测目标应用程序的运行;Step 201: Detect the running of the target application program;

步骤202:当确定有所述目标应用程序运行时,通过一检测模块对所述目标应用程序的进程中的显示数据处理函数进行检测,确定所述目标应用程序的单位时间的显示数据处理量;Step 202: When it is determined that the target application program is running, a detection module is used to detect the display data processing function in the process of the target application program, and determine the display data processing amount per unit time of the target application program;

该显示数据处理函数用于对目标应用程序的显示数据进行处理。可选的,如果目标应用程序的显示数据处理量指代为目标应用程序输出显示画面的显示帧率,那么,显示数据处理函数具体可以为用于绘制目标应用程序输出的显示画面的绘制函数,例如Present绘制函数。The display data processing function is used to process the display data of the target application program. Optionally, if the display data processing capacity of the target application refers to the display frame rate of the output display screen of the target application program, then the display data processing function may specifically be a drawing function for drawing the display screen output by the target application program, for example Present drawing function.

检测模块具体为一段用于检测目标应用程序的单位时间的显示数据处理量的检测程序。具体可以为钩子程序模块,又叫Hook程序模块。The detection module is specifically a detection program for detecting the display data processing amount per unit time of the target application program. Specifically, it may be a hook program module, also called a Hook program module.

一种方式下,通过一检测模块对所述目标应用程序的进程中的显示数据处理函数进行检测,确定单位时间的显示数据处理量包括:通过检测模块接收所述目标应用程序的进程中的显示数据处理函数发送的单位时间的显示数据处理量。In one manner, a detection module detects the display data processing function in the process of the target application program, and determining the display data processing amount per unit time includes: receiving the display data in the process of the target application program through the detection module Display data processing volume per unit time sent by the data processing function.

也就是说,显示数据处理函数可以将其单位时间的显示数据处理量发送给检测模块。That is to say, the display data processing function can send its display data processing amount per unit time to the detection module.

另一种方式下,通过一检测模块对所述目标应用程序的进程中的显示数据处理函数进行检测,确定单位时间的显示数据处理量包括:确定在所述目标应用程序的进程中的显示数据处理函数处设置的检测模块,检测所述检测模块在预设时间段内被所述显示数据处理函数的调用次数,至少基于所述预设时间段和所述调用次数来确定所述目标应用程序的单位时间的显示数据处理量。In another manner, a detection module is used to detect the display data processing function in the process of the target application program, and determining the display data processing amount per unit time includes: determining the display data processing function in the process of the target application program The detection module set at the processing function detects the number of times the detection module is called by the display data processing function within a preset time period, and determines the target application based at least on the basis of the preset time period and the number of calls Display data processing volume per unit time.

显示数据处理函数处设置有检测模块,具体的,该检测模块可以为目标应用程序中的显示数据处理函数处原本具有的检测模块,或者,该检测模块可以为通过管理应用程序添加到目标应用程序的进程中的显示数据处理函数处的。A detection module is set at the display data processing function. Specifically, the detection module can be the original detection module at the display data processing function in the target application, or the detection module can be added to the target application through the management application. The display data processing function in the process.

针对通过管理应用程序向目标应用程序的进程中的显示数据处理函数处添加监测模块,具体可以在目标应用程序的进程中的显示数据处理函数的目标位置处注入检测模块来检测目标应用程序的单位时间的显示数据处理量。Aiming at adding a monitoring module to the display data processing function in the process of the target application through the management application, specifically, the detection module can be injected at the target position of the display data processing function in the process of the target application to detect the unit of the target application Time display data processing volume.

其中,可以采用Hook注入技术将检测模块注入到显示数据处理函数的目标位置处。一般情况下,只需将检测模块注入到显示数据处理函数处理显示处理前即可,如将检测模块注入到显示数据处理函数的起始位置处。Wherein, a Hook injection technology may be used to inject the detection module into the target position of the display data processing function. Generally, it is only necessary to inject the detection module into the display data processing function before processing the display processing, such as injecting the detection module into the starting position of the display data processing function.

而由于检测模块的添加,显示数据处理函数在处理显示处理前会先调用检测模块,因此可以检测检测模块在预设时间段内被绘制函数的调用次数。如1秒钟被显示数据处理函数的调用次数。从而至少基于预设时间段和调用次数计算出单位时间的显示数据处理量,即利用调用次数除以预设时间段得到的就是单位时间的显示数据处理量。Due to the addition of the detection module, the display data processing function will first call the detection module before processing the display processing, so the number of times the detection module is called by the drawn function within a preset time period can be detected. For example, the number of calls of the data processing function is displayed in 1 second. Therefore, the display data processing capacity per unit time is calculated based at least on the basis of the preset time period and the calling times, that is, the display data processing capacity per unit time is obtained by dividing the calling times by the preset time period.

步骤203:如果至少所述目标应用程序的单位时间的显示数据处理量达到预设单位时间的显示数据处理量,降低所述目标应用程序的单位时间的显示数据处理量。Step 203: If at least the display data processing amount per unit time of the target application program reaches a preset display data processing amount per unit time, reduce the display data processing amount per unit time of the target application program.

由此可见,本实施例中,通过检测目标应用程序的运行,当确定有目标应用程序运行时,获取状态信息,从而在至少状态信息满足预设条件时,降低目标应用程序的单位时间的显示数据处理量,而目标应用程序的单位时间的显示数据处理量的降低使得目标应用程序在运行过程中对电子设备的性能要求也随着降低,即利用相对较少的电子设备的资源就能够满足目标应用程的运行,提高了用户体验。It can be seen that in this embodiment, by detecting the running of the target application, when it is determined that the target application is running, the state information is obtained, so that when at least the state information meets the preset condition, the display of the target application per unit time is reduced The amount of data processing, and the reduction of the display data processing amount per unit time of the target application program makes the performance requirements of the electronic device during the operation of the target application program also decrease, that is, it can be satisfied by using relatively few resources of the electronic device. The running of the target application improves the user experience.

本申请方法实施例三公开了一种信息处理方法,当显示处理函数指代为用于绘制所述目标应用程序输出的显示画面的绘制函数时,降低所述目标应用程序的单位时间的显示数据处理量,包括:在所述绘制函数绘制一帧画面后,准备绘制相邻的下一帧画面时,利用所述检测模块直接向所述绘制函数返回绘制成功的消息,以使得所述绘制函数跳过所述相邻的下一帧画面的绘制。Embodiment 3 of the method of the present application discloses an information processing method. When the display processing function refers to the drawing function used to draw the display screen output by the target application program, the display data processing per unit time of the target application program is reduced. amount, including: after the drawing function draws a frame, when preparing to draw the adjacent next frame, use the detection module to directly return a drawing success message to the drawing function, so that the drawing function jumps through the drawing of the adjacent next frame.

需说明的是,虽然绘制函数跳过绘制完一帧画面后相邻的下一帧画面的绘制,但是对于绘制函数本身而言,只要接收到绘制成功的消息,绘制函数就认定其实现了相邻的下一帧画面的绘制。本申请中,可以控制绘制函数连续跳过多帧画面的绘制,即可以控制绘制函数每隔绘制M帧画面就跳过N帧画面的绘制,M和N均为大于等于1的正整数。It should be noted that although the drawing function skips the drawing of the next adjacent frame after drawing one frame, for the drawing function itself, as long as it receives the message that the drawing is successful, the drawing function considers that it has achieved the corresponding The drawing of the next adjacent frame. In this application, the drawing function can be controlled to continuously skip the drawing of multiple frames of pictures, that is, the drawing function can be controlled to skip the drawing of N frames of pictures every M frames of pictures drawn, and M and N are both positive integers greater than or equal to 1.

本申请方法实施例四还公开了一种信息处理方法,其中,当目标应用程序的单位时间的显示数据处理量为目标应用程序的当前显示帧率时,降低所述目标应用程序的当前显示帧率,包括:Embodiment 4 of the method of the present application also discloses an information processing method, wherein when the display data processing amount per unit time of the target application program is the current display frame rate of the target application program, the current display frame rate of the target application program is reduced rates, including:

当目标应用程序以第一显示帧率显示画面时,每隔M帧画面删除N帧画面,使得所述目标应用程序以第二显示帧率显示画面。When the target application program displays pictures at the first display frame rate, N frames of pictures are deleted every M frames of pictures, so that the target application program displays pictures at the second display frame rate.

其中,所述M和N均为正整数。Wherein, both M and N are positive integers.

由于第二显示帧率为在第一显示帧率的基础上,每隔M帧画面删除N帧画面后确定的显示帧率,因此,第二显示帧率低于第一显示帧率。The second display frame rate is lower than the first display frame rate because the second display frame rate is determined after deleting N frames every M frames on the basis of the first display frame rate.

与上述一种信息处理方法对应的,本申请还公开了一种电子设备,具体的,本申请装置实施例一公开了电子设备,如图3所述,一种电子设备包括:处理器100和存储器200,其中:Corresponding to the above information processing method, this application also discloses an electronic device. Specifically, Embodiment 1 of the device of this application discloses an electronic device. As shown in FIG. 3 , an electronic device includes: a processor 100 and memory 200, wherein:

处理器100,用于检测目标应用程序的运行,当确定有所述目标应用程序运行时,获取状态信息,如果至少所述状态信息满足预设条件,降低所述目标应用程序的单位时间的显示数据处理量。The processor 100 is configured to detect the running of the target application, acquire state information when it is determined that the target application is running, and reduce the display of the target application per unit time if at least the state information satisfies a preset condition Data processing volume.

目标应用程序为在运行过程中对电子设备的性能要求较高的应用程序。当电子设备有新的应用程序启动运行时,处理器可以用于判断新启动运行的应用程序是否为目标应用程序。而当一个应用程序启动运行时,该应用程序的进程也相应的被创建,那么,处理器可以通过监控电子设备当前是否有新的进程创建来判断是否有新的应用程序运行。The target application program is an application program that requires high performance of the electronic device during operation. When a new application program starts running on the electronic device, the processor can be used to determine whether the newly started running application program is a target application program. When an application starts running, a process of the application is correspondingly created. Then, the processor can determine whether there is a new application running by monitoring whether a new process is currently created in the electronic device.

如果电子设备的操作系统为Windows系统,那么处理器可以通过Windows管理指令WMI来监控当前是否有新的进程创建。If the operating system of the electronic device is a Windows system, the processor can monitor whether a new process is currently created through the Windows management instruction WMI.

具体的,处理器可以用于当电子设备上有新的应用程序运行后,获取当前运行的应用程序的运行参数,从而判断当前运行的应用程序的运行参数是否满足预设运行参数,如果是,则确定当前运行的应用程序为目标应用程序。即,目标应用程序为目标应用程序的运行参数满足预设运行参数的应用程序。Specifically, the processor can be used to obtain the operating parameters of the currently running application program when a new application program is running on the electronic device, so as to determine whether the operating parameters of the currently running application program meet the preset operating parameters, and if so, Then it is determined that the currently running application program is the target application program. That is, the target application program is an application program whose operation parameter meets the preset operation parameter.

(1)处理器用于判断当前进程是否加载有资源文件,若是,确定所述当前进程所属应用程序为目标应用程序。(1) The processor is used to determine whether the current process is loaded with a resource file, and if so, determine that the application program to which the current process belongs is a target application program.

进程加载有资源文件的应用程序为目标应用程序,资源文件具体可以为动态链接库,而更具体的还可以为多媒体编辑接口类型的动态链接库,动态链接库简称DLL,为Dynamic Link Library的缩写。多媒体接口例如可以为Direct X。The application program loaded with the resource file by the process is the target application program. The resource file can specifically be a dynamic link library, and more specifically, it can also be a dynamic link library of the multimedia editing interface type. The dynamic link library is referred to as DLL, which is the abbreviation of Dynamic Link Library . The multimedia interface can be, for example, Direct X.

(2)处理器用于判断创建新的进程后,电子设备的单位时间显示图像的处理能力的使用率是否大于第二阈值,若是,确定所述创建的新的进程所属应用程序为目标应用程序。(2) The processor is used to determine whether the usage rate of the processing capability of the electronic device per unit time for displaying images is greater than a second threshold after the new process is created, and if so, determine that the application to which the created new process belongs is the target application.

这种方式下,第二阈值可以基于实际情况预先设定。创建新的进程后,若电子设备的单位时间显示图像的处理能力大于第二阈值则说明创建的新的进程所属应用程序为目标应用程序。In this manner, the second threshold can be preset based on actual conditions. After the new process is created, if the electronic device's display image processing capability per unit time is greater than the second threshold, it indicates that the application program to which the created new process belongs is the target application program.

其中,电子设备的单位时间显示图像的处理处理能力可以包括电子设备的图形处理器的使用率。Wherein, the processing capability of the electronic device for displaying images per unit time may include the usage rate of the graphic processor of the electronic device.

(3)处理器用于判断创建新的进程后,电子设备的单位时间存储数据的处理能力是否大于第三阈值,若是,确定所述创建的新的进程所属应用程序为目标应用程序。(3) The processor is used to determine whether the processing capability of the electronic device for storing data per unit time is greater than a third threshold after the new process is created, and if so, determine that the application to which the created new process belongs is the target application.

这种方式下,第三阈值可以基于实际情况预先设定。创建新的进程后,电子设备的单位时间大于第三阈值则说明创建的新的进程所属应用程序为目标应用程序。In this manner, the third threshold can be preset based on actual conditions. After the new process is created, if the unit time of the electronic device is greater than the third threshold, it indicates that the application to which the created new process belongs is the target application.

其中,电子设备的单位时间存储数据的处理能力可以包括电子设备的显存占用率。Wherein, the processing capability of storing data per unit time of the electronic device may include the video memory occupancy rate of the electronic device.

也就是说,目标应用程序在运行时会使用较多的图形处理器的资源或使用较大的显存。如由于大型游戏的画面非常逼真和绚丽因此需要图形处理器或者显存提供的资源。That is to say, the target application program will use more graphics processor resources or use a larger video memory when running. For example, because the pictures of large-scale games are very realistic and gorgeous, resources provided by graphics processors or video memory are needed.

(4)处理器用于获取当前进程的目录,判断所述目录对应的存储处理量是否大于第四阈值,若是,确定所述当前进程所属应用程序为目标应用程序。(4) The processor is used to obtain the directory of the current process, and determine whether the storage processing capacity corresponding to the directory is greater than the fourth threshold, and if so, determine that the application program to which the current process belongs is the target application program.

在电子设备中每一进程均具有与其对应的目录,如果目录对应的存储处理量大于第四阈值说明该进程所属应用程序为目标应用程序。第四阈值的具体数值可以基于实际情况预先设定。Each process in the electronic device has a directory corresponding to it, and if the amount of storage and processing corresponding to the directory is greater than the fourth threshold, it indicates that the application to which the process belongs is a target application. The specific value of the fourth threshold may be preset based on actual conditions.

需说明的是,由于目标应用程序采用如上方式的至少之一确定,那么也就是说,目标应用程序可以仅满足上述一种条件,或者满足上述至少两种条件。It should be noted that since the target application program is determined using at least one of the above methods, that is to say, the target application program may only meet one of the above conditions, or at least two of the above conditions.

在本申请中,目标应用程序的单位时间的显示数据处理量至少包括单位时间的显示数据已处理量以及单位时间的显示数据待处理量。单位时间的显示数据已处理量指代为目标应用程序的已经被处理的单位时间的显示数据处理量,单位时间的显示数据待处理量指代为目标应用的还未被处理,即将被处理的单位时间的显示数据处理量。而影响到电子设备的当前处理性能一般情况下为单位时间的显示数据待处理量,因此优选的,处理器用于降低目标应用程序的单位时间的显示数据处理量,具体为,处理器用于降低目标应用程序的单位时间的显示数据待处理量。In the present application, the display data processing amount per unit time of the target application program includes at least the processed display data amount per unit time and the display data pending processing amount per unit time. The display data processed amount per unit time refers to the display data processing amount per unit time that has been processed by the target application program, and the display data pending processing amount per unit time refers to the unit time that the target application has not been processed and will be processed soon The displayed data processing volume. The current processing performance that affects the electronic equipment is generally the amount of display data to be processed per unit time, so preferably, the processor is used to reduce the display data processing amount per unit time of the target application program, specifically, the processor is used to reduce the target application program. The amount of display data to be processed per unit time of the application.

存储器200,用于存储在处理器100上运行的程序。The memory 200 is used for storing programs running on the processor 100 .

由此可见,本实施例中,通过检测目标应用程序的运行,当确定有目标应用程序运行时,获取状态信息,从而在至少状态信息满足预设条件时,降低目标应用程序的单位时间的显示数据处理量,而目标应用程序的单位时间的显示数据处理量的降低使得目标应用程序在运行过程中对电子设备的性能要求也随着降低,即利用相对较少的电子设备的资源就能够满足目标应用程的运行,提高了用户体验。It can be seen that in this embodiment, by detecting the running of the target application, when it is determined that the target application is running, the state information is obtained, so that when at least the state information meets the preset condition, the display of the target application per unit time is reduced The amount of data processing, and the reduction of the display data processing amount per unit time of the target application program makes the performance requirements of the electronic device during the operation of the target application program also decrease, that is, it can be satisfied by using relatively few resources of the electronic device. The running of the target application improves the user experience.

在本申请中,上述状态信息可以包括:电子设备的单位时间显示数据的处理能力,和/或,目标应用程序的单位时间的显示数据处理量。In the present application, the above state information may include: the display data processing capability per unit time of the electronic device, and/or the display data processing amount per unit time of the target application program.

具体的,电子设备的单位时间显示数据的处理能力达到第一阈值用于表征状态信息满足预设条件;和/或,目标应用程序的单位时间的显示数据处理量达到预设单位时间显示数据处理量,用于表征状态信息满足预设条件。Specifically, the display data processing capacity of the electronic device per unit time reaches the first threshold, which is used to indicate that the state information meets the preset condition; and/or, the display data processing capacity of the target application program reaches the preset display data processing per unit time Quantity, which is used to indicate that the status information meets the preset conditions.

电子设备的单位时间显示数据的处理能力包括电子设备的硬件资源使用率。具体的,硬件资源使用率可以包括中央处理器CPU的使用率和/或图形处理器GPU的使用率。The display data processing capability of the electronic device per unit time includes the hardware resource utilization rate of the electronic device. Specifically, the hardware resource usage rate may include a CPU usage rate of a central processing unit and/or a GPU usage rate of a graphics processing unit.

目标应用程序的单位时间的显示数据处理量可以指代为目标应用程序的单位时间的已处理量。The displayed data processing amount per unit time of the target application program may refer to the processed amount per unit time of the target application program.

其中,目标应用程序的单位时间的显示数据处理量可以指代为目标应用程序输出显示画面的显示帧率。那么,作为一个具体的实例,处理器用于通过检测目标应用程序的运行,当确定有目标应用程序运行时,获取电子设备的单位时间显示数据的处理能力,当电子设备的单位时间显示处理的能力达到第一阈值时,降低目标应用程序的输出显示画面的显示帧率。Wherein, the display data processing amount per unit time of the target application program may refer to the display frame rate at which the target application program outputs a display screen. Then, as a specific example, the processor is used to detect the running of the target application program. When it is determined that the target application program is running, obtain the processing capability of the electronic device to display data per unit time. When the electronic device displays the processing capability per unit time When the first threshold is reached, the display frame rate of the output display screen of the target application program is reduced.

作为另一个具体的实例,处理器用于通过检测目标应用程序的运行,当确定有目标应用程序运行时,获取目标应用程序已输出显示画面的显示帧率,从而当已输出显示画面的显示帧率达到预先显示帧率时,降低目标应用程序待输出显示画面的显示帧率。As another specific example, the processor is configured to detect the running of the target application program, and when it is determined that the target application program is running, acquire the display frame rate of the output display screen of the target application program, so that when the display frame rate of the output display screen is When the pre-display frame rate is reached, reduce the display frame rate of the display image to be output by the target application program.

在本申请装置实施例二中,处理器用于获取所述目标应用程序的单位时间的显示数据处理量,具体为:处理器用于通过一检测模块对所述目标应用程序的进程中的显示数据处理函数进行检测,确定所述目标应用程序的单位时间的显示数据处理量。In the second embodiment of the device of the present application, the processor is used to obtain the display data processing amount per unit time of the target application program, specifically: the processor is used to process the display data in the process of the target application program through a detection module The function detects and determines the display data processing amount per unit time of the target application program.

可选的,如果目标应用程序的显示数据处理量指代为目标应用程序输出显示画面的显示帧率,那么,显示数据处理函数具体可以为用于绘制目标应用程序输出的显示画面的绘制函数。Optionally, if the display data processing capacity of the target application refers to the display frame rate of the target application output display screen, then the display data processing function may specifically be a drawing function for drawing the display screen output by the target application program.

检测模块具体为一段用于检测目标应用程序的单位时间的显示数据处理量的检测程序。The detection module is specifically a detection program for detecting the display data processing amount per unit time of the target application program.

一种方式下,处理器具体用于通过检测模块接收所述目标应用程序的进程中的显示数据处理函数发送的单位时间的显示数据处理量。In one manner, the processor is specifically configured to receive, through the detection module, the amount of display data processing per unit time sent by the display data processing function in the process of the target application program.

另一种方式下,处理器具体用于确定在所述目标应用程序的进程中的显示数据处理函数处设置的检测模块,检测所述检测模块在预设时间段内被所述显示数据处理函数的调用次数,至少基于所述预设时间段和所述调用次数来确定所述目标应用程序的单位时间的显示数据处理量。In another manner, the processor is specifically configured to determine the detection module set at the display data processing function in the process of the target application program, and detect that the detection module is activated by the display data processing function within a preset time period. The calling times of the target application program are determined at least based on the preset time period and the calling times, and the display data processing amount per unit time of the target application program is determined.

显示数据处理函数处设置有检测模块,具体的,该检测模块可以为目标应用程序中的显示数据处理函数处原本具有的检测模块,或者,该检测模块可以为通过管理应用程序添加到目标应用程序的进程中的显示数据处理函数处的。A detection module is set at the display data processing function. Specifically, the detection module can be the original detection module at the display data processing function in the target application, or the detection module can be added to the target application through the management application. The display data processing function in the process.

针对通过管理应用程序向目标应用程序的进程中的显示数据处理函数处添加监测模块,具体的,处理器可以在目标应用程序的进程中的显示数据处理函数的目标位置处注入检测模块来检测目标应用程序的单位时间的显示数据处理量。For adding a monitoring module to the display data processing function in the process of the target application through the management application, specifically, the processor can inject a detection module at the target position of the display data processing function in the process of the target application to detect the target The display data processing amount per unit time of the application.

在本申请装置实施例三中,当显示处理函数指代为用于绘制所述目标应用程序输出的显示画面的绘制函数时,那么,处理器用于降低所述目标应用程序的单位时间的显示数据处理量,包括:处理器用于在所述绘制函数绘制一帧画面后,准备绘制相邻的下一帧画面时,利用所述检测模块直接向所述显示数据处理函数返回绘制成功的消息,以使得所述绘制函数跳过所述相邻的下一帧画面的绘制。In the third embodiment of the device of the present application, when the display processing function refers to the drawing function used to draw the display screen output by the target application program, then the processor is used to reduce the display data processing per unit time of the target application program The amount includes: the processor is used to use the detection module to directly return a drawing success message to the display data processing function when the next adjacent frame is ready to be drawn after the drawing function draws a frame, so that The rendering function skips the rendering of the next adjacent frame.

在本申请装置实施例四中,当目标应用程序的单位时间的显示数据处理量为所述目标应用程序的当前显示帧率时,处理器用于降低所述目标应用程序的当前显示帧率,包括:处理器用于当所述目标应用程序以第一显示帧率显示画面时,每隔M帧画面删除N帧画面,使得所述目标应用程序以第二显示帧率显示画面。In Embodiment 4 of the device of the present application, when the display data processing amount per unit time of the target application program is the current display frame rate of the target application program, the processor is configured to reduce the current display frame rate of the target application program, including The processor is configured to, when the target application program displays pictures at a first display frame rate, delete N frames of pictures every M frames of pictures, so that the target application program displays pictures at a second display frame rate.

其中,所述M和N均为任意正整数。Wherein, the M and N are any positive integers.

与上述一种信息处理方法对应的,本申请还公开了另一种电子设备,具体的,本发明装置实施例五公开了一种电子设备,如图4所示,电子设备包括检测单元401、获取单元402以及处理单元403,其中:Corresponding to the above information processing method, this application also discloses another electronic device. Specifically, Embodiment 5 of the device of the present invention discloses an electronic device. As shown in FIG. 4 , the electronic device includes a detection unit 401, An acquisition unit 402 and a processing unit 403, wherein:

检测单元401,用于检测目标应用程序的运行;A detection unit 401, configured to detect the running of the target application program;

具体的,检测单元401可以用于当电子设备有新的应用程序启动运行时,判断新启动运行的应用程序是否为目标应用程序。而当一个应用程序启动运行时,该应用程序的进程也相应的被创建,那么,检测单元401可以通过监控电子设备当前是否有新的进程创建来判断是否有新的应用程序运行。Specifically, the detecting unit 401 may be configured to determine whether the newly started application program is a target application program when the electronic device has a new application program started to run. When an application starts running, a process of the application is correspondingly created. Then, the detection unit 401 can determine whether there is a new application running by monitoring whether a new process is currently created in the electronic device.

而当电子设备上有新的应用程序运行后,检测单元401可以用于获取当前运行的应用程序的运行参数,从而判断当前运行的应用程序的运行参数是否满足预设运行参数,如果是,则确定当前运行的应用程序为目标应用程序。即,目标应用程序为目标应用程序的运行参数满足预设运行参数的应用程序。And when there is a new application program running on the electronic device, the detection unit 401 can be used to obtain the operating parameters of the currently running application program, so as to determine whether the operating parameters of the currently running application program meet the preset operating parameters, and if so, then Identify the currently running application as the target application. That is, the target application program is an application program whose operation parameter meets the preset operation parameter.

其中,目标应用程序可以采用如下方式至少之一确定:Wherein, the target application program can be determined in at least one of the following ways:

(1)检测单元401用于判断当前进程是否加载有资源文件,若是,确定所述当前进程所属应用程序为目标应用程序。(1) The detection unit 401 is used to judge whether the current process has resource files loaded, and if so, determine that the application program to which the current process belongs is the target application program.

(2)检测单元401用于判断创建新的进程后,电子设备的单位时间显示图像的处理能力的使用率是否大于第二阈值,若是,确定所述创建的新的进程所属应用程序为目标应用程序。(2) The detection unit 401 is used to determine whether the usage rate of the processing capacity of the electronic device for displaying images per unit time is greater than the second threshold after the new process is created, and if so, determine that the application to which the created new process belongs is the target application program.

(3)检测单元401用于判断创建新的进程后,电子设备的单位时间存储数据的处理能力是否大于第三阈值,若是,确定所述创建的新的进程所属应用程序为目标应用程序。(3) The detection unit 401 is used to determine whether the processing capability of the electronic device for storing data per unit time is greater than a third threshold after creating a new process, and if so, determine that the application program to which the created new process belongs is the target application program.

(4)检测单元401用于获取当前进程的目录,判断所述目录对应的存储处理量是否大于第四阈值,若是,确定所述当前进程所属应用程序为目标应用程序。(4) The detection unit 401 is used to obtain the directory of the current process, and judge whether the storage processing amount corresponding to the directory is greater than a fourth threshold, and if so, determine that the application program to which the current process belongs is the target application program.

获取单元402,用于当通过检测单元401确定有所述目标应用程序的运行时,获取状态信息;An acquiring unit 402, configured to acquire status information when it is determined by the detecting unit 401 that the target application program is running;

所述状态信息可以包括电子设备本身的状态信息,和/或,目标应用程序的状态信息。The status information may include status information of the electronic device itself, and/or status information of the target application program.

处理单元403,用于如果所述至少状态满足预设条件,降低所述目标应用程序的单位时间的显示数据处理量。The processing unit 403 is configured to reduce the processing amount of display data per unit time of the target application program if the at least state satisfies a preset condition.

当状态信息满足预设条件时,说明目标应用程序当前占用电子设备过多的资源,因此降低目标应用程序的单位时间的显示数据处理量。When the state information satisfies the preset condition, it indicates that the target application currently occupies too many resources of the electronic device, so the display data processing amount per unit time of the target application is reduced.

在本申请中,目标应用程序的单位时间的显示数据处理量至少包括单位时间的显示数据已处理量以及单位时间的显示数据待处理量。单位时间的显示数据已处理量指代为目标应用程序的已经被处理的单位时间的显示数据处理量,单位时间的显示数据待处理量指代为目标应用的还未被处理,即将被处理的单位时间的显示数据处理量。而影响到电子设备的当前处理性能一般情况下为单位时间的显示数据待处理量,因此优选的,处理单元403具体可以用于如果所述至少状态满足预设条件,降低目标应用程序的单位时间的显示数据待处理量。In the present application, the display data processing amount per unit time of the target application program includes at least the processed display data amount per unit time and the display data pending processing amount per unit time. The display data processed amount per unit time refers to the display data processing amount per unit time that has been processed by the target application program, and the display data pending processing amount per unit time refers to the unit time that the target application has not been processed and will be processed soon The displayed data processing volume. The current processing performance that affects the electronic device is generally the amount of display data to be processed per unit time, so preferably, the processing unit 403 can specifically be used to reduce the unit time of the target application program if the at least the state meets the preset condition The amount of display data to be processed.

在本申请中,上述状态信息可以包括:电子设备的单位时间显示数据的处理能力,和/或,目标应用程序的单位时间的显示数据处理量。In the present application, the above state information may include: the display data processing capability per unit time of the electronic device, and/or the display data processing amount per unit time of the target application program.

具体的,电子设备的单位时间显示数据的处理能力达到第一阈值用于表征状态信息满足预设条件;和/或,目标应用程序的单位时间的显示数据处理量达到预设单位时间显示数据处理量,用于表征状态信息满足预设条件。Specifically, the display data processing capacity of the electronic device per unit time reaches the first threshold, which is used to indicate that the state information meets the preset condition; and/or, the display data processing capacity of the target application program reaches the preset display data processing per unit time Quantity, which is used to indicate that the status information meets the preset conditions.

目标应用程序的单位时间的显示数据处理量可以指代为目标应用程序的单位时间的已处理量。其中,目标应用程序的单位时间的显示数据处理量可以指代为目标应用程序输出显示画面的显示帧率。The displayed data processing amount per unit time of the target application program may refer to the processed amount per unit time of the target application program. Wherein, the display data processing amount per unit time of the target application program may refer to the display frame rate at which the target application program outputs a display screen.

在本申请装置实施例六中,电子设备还包括一检测模块,获取单元用于获取所述目标应用程序的单位时间的显示数据处理量,包括:获取单元用于通过一检测模块对所述目标应用程序的进程中的显示数据处理函数进行检测,确定所述目标应用程序的单位时间的显示数据处理量。In Embodiment 6 of the apparatus of the present application, the electronic device further includes a detection module, and the acquisition unit is used to obtain the display data processing amount per unit time of the target application program, including: the acquisition unit is used to use a detection module to detect the target The display data processing function in the process of the application program detects and determines the display data processing amount per unit time of the target application program.

该显示数据处理函数用于对目标应用程序的显示数据进行处理。可选的,如果目标应用程序的显示数据处理量指代为目标应用程序输出显示画面的显示帧率,那么,显示数据处理函数具体可以为用于绘制目标应用程序输出的显示画面的绘制函数。The display data processing function is used to process the display data of the target application program. Optionally, if the display data processing capacity of the target application refers to the display frame rate of the target application output display screen, then the display data processing function may specifically be a drawing function for drawing the display screen output by the target application program.

检测模块具体为一段用于检测目标应用程序的单位时间的显示数据处理量的检测程序。The detection module is specifically a detection program for detecting the display data processing amount per unit time of the target application program.

一种方式下,获取单元用于通过检测模块接收所述目标应用程序的进程中的显示数据处理函数发送的单位时间的显示数据处理量。In one manner, the acquisition unit is configured to receive, through the detection module, the display data processing volume per unit time sent by the display data processing function in the process of the target application program.

也就是说,显示数据处理函数可以将其单位时间的显示数据处理量发送给检测模块。That is to say, the display data processing function can send its display data processing amount per unit time to the detection module.

另一种方式下,获取单元用于确定在所述目标应用程序的进程中的显示数据处理函数处设置的检测模块,检测所述检测模块在预设时间段内被所述显示数据处理函数的调用次数,至少基于所述预设时间段和所述调用次数来确定所述目标应用程序的单位时间的显示数据处理量。In another manner, the acquisition unit is configured to determine the detection module set at the display data processing function in the process of the target application program, and detect that the detection module is detected by the display data processing function within a preset time period. The number of calls is at least based on the preset time period and the number of calls to determine the display data processing amount per unit time of the target application program.

显示数据处理函数处设置有检测模块,具体的,该检测模块可以为目标应用程序中的显示数据处理函数处原本具有的检测模块,或者,该检测模块可以为通过管理应用程序添加到目标应用程序的进程中的显示数据处理函数处的。A detection module is set at the display data processing function. Specifically, the detection module can be the original detection module at the display data processing function in the target application, or the detection module can be added to the target application through the management application. The display data processing function in the process.

针对通过管理应用程序向目标应用程序的进程中的显示数据处理函数处添加监测模块,具体可以在目标应用程序的进程中的显示数据处理函数的目标位置处注入检测模块来检测目标应用程序的单位时间的显示数据处理量。Aiming at adding a monitoring module to the display data processing function in the process of the target application through the management application, specifically, the detection module can be injected at the target position of the display data processing function in the process of the target application to detect the unit of the target application Time display data processing volume.

其中,可以采用Hook注入技术将检测模块注入到显示数据处理函数的目标位置处。一般情况下,只需将检测模块注入到显示数据处理函数处理显示处理前即可,如将检测模块注入到显示数据处理函数的起始位置处。Wherein, a Hook injection technology may be used to inject the detection module into the target position of the display data processing function. Generally, it is only necessary to inject the detection module into the display data processing function before processing the display processing, such as injecting the detection module into the starting position of the display data processing function.

在本申请装置实施例七中,当显示处理函数指代为用于绘制所述目标应用程序输出的显示画面的绘制函数时,处理单元用于降低所述目标应用程序的单位时间的显示数据处理量,包括:处理单元用于在所述绘制函数绘制一帧画面后,准备绘制相邻的下一帧画面时,利用所述检测模块直接向所述显示数据处理函数返回绘制成功的消息,以使得所述绘制函数跳过所述相邻的下一帧画面的绘制。In Embodiment 7 of the device of the present application, when the display processing function refers to a drawing function used to draw the display screen output by the target application program, the processing unit is used to reduce the amount of display data processing per unit time of the target application program , including: the processing unit is used to use the detection module to directly return a drawing success message to the display data processing function when preparing to draw the next adjacent frame after the drawing function draws a frame, so that The rendering function skips the rendering of the next adjacent frame.

在本申请装置实施例八中,当目标应用程序的单位时间的显示数据处理量为所述目标应用程序的当前显示帧率时,处理单元用于降低所述目标应用程序的当前显示帧率,包括:处理单元用于当所述目标应用程序以第一显示帧率显示画面时,每隔M帧画面删除N帧画面,使得所述目标应用程序以第二显示帧率显示画面。In the eighth embodiment of the device of the present application, when the display data processing amount per unit time of the target application program is the current display frame rate of the target application program, the processing unit is configured to reduce the current display frame rate of the target application program, It includes: a processing unit configured to, when the target application program displays pictures at a first display frame rate, delete N frames of pictures every M frames of pictures, so that the target application program displays pictures at a second display frame rate.

其中,所述M和N均为任意正整数。Wherein, the M and N are any positive integers.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. a kind of information processing method, wherein including:
Detect the operation of destination application;
When determination has the destination application to run, status information is obtained;
If at least described status information meets preset condition, the display data of the unit interval of the destination application is reduced Treating capacity.
2. according to the method described in claim 1, wherein, the status information includes:The unit interval of electronic equipment shows number According to processing capacity and/or the destination application unit interval display data treating capacity;
Wherein, the processing capacity of the unit interval display data reaches first threshold, and/or, the destination application The display data treating capacity of unit interval reaches the display data treating capacity of default unit interval, for characterizing the status information Meet preset condition.
3. according to the method described in claim 2, wherein, at the display data for obtaining the unit interval of the destination application Reason amount, including:
Function is handled to the display data in the process of the destination application to be detected, determine institute by a detection module State the display data treating capacity of the unit interval of destination application.
4. according to the method described in claim 3, wherein, it is described by a detection module to the process of the destination application In display data processing function be detected, determine that the display data treating capacity of unit interval includes:
The unit interval that the display data processing function in the process of the destination application is sent is received by detection module Display data treating capacity;
Alternatively, determining the detection module being arranged at the display data processing function in the process of the destination application, inspection The call number that the detection module is handled function by the display data within a preset period of time is surveyed, is at least based on described default Period and the call number determine the display data treating capacity of the unit interval of the destination application.
5. according to the method described in claim 4, wherein, the display processing function is referred to as drawing the intended application The drafting function of the display picture of program output, then reducing the display data processing of the unit interval of the destination application Amount, including:
After the drafting function draws a frame picture, when preparing to draw adjacent next frame picture, the detection module is utilized Directly returned to display data processing function and draw successful message so that the drafting function skip it is described adjacent The drafting of next frame picture.
6. according to the method described in claim 1, wherein, the display data treating capacity of the unit interval of the destination application For the current display frame rate of the destination application, then, the current display frame rate of the destination application is reduced, is wrapped It includes:
When the destination application shows picture with the first display frame rate, N frame pictures are deleted every M frame pictures so that institute It states destination application and picture is shown with the second display frame rate;
Wherein, the M and N is arbitrary positive integer.
7. according to the method described in claim 1, wherein,
The destination application is that the operating parameter of the destination application meets the application program of default operational factor.
8. according to the method described in claim 7, wherein, the destination application determines at least one in the following way:
Judge whether current process is loaded with resource file, if so, determining that the current process owning application is answered for target Use program;
Judge after creating new process, the unit interval of electronic equipment shows whether the utilization rate of the processing capacity of image is more than the Two threshold values, if so, determining that the new process owning application of the establishment is destination application;
Judge after creating new process, whether the processing capacity of the unit interval storage data of electronic equipment is more than third threshold value, If so, determining that the new process owning application of the establishment is destination application;
The catalogue for obtaining current process, judges whether the corresponding storage treating capacity of the catalogue is more than the 4th threshold value, if so, determining The current process owning application is destination application;
The application identities for obtaining currently running application program judge whether the application identities are the application program pre-established Mark in identification list, if so, determining that the application program is destination application.
9. a kind of electronic equipment, wherein including:
Processor, the operation for detecting destination application obtain state when determination has the destination application to run Information reduces the display number of the unit interval of the destination application if at least described status information meets preset condition According to treating capacity;
Memory, for storing the program run on the processor.
10. a kind of electronic equipment, wherein including:
Detection unit, the operation for detecting destination application;
Acquiring unit, for when having the operation of the destination application by detection unit determination, obtaining state letter Breath;
Processing unit reduces the unit interval of the destination application if meeting preset condition for at least state Display data treating capacity.
CN201810277368.0A 2018-03-30 2018-03-30 Information processing method and electronic device Active CN108509318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810277368.0A CN108509318B (en) 2018-03-30 2018-03-30 Information processing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810277368.0A CN108509318B (en) 2018-03-30 2018-03-30 Information processing method and electronic device

Publications (2)

Publication Number Publication Date
CN108509318A true CN108509318A (en) 2018-09-07
CN108509318B CN108509318B (en) 2024-11-26

Family

ID=63379419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810277368.0A Active CN108509318B (en) 2018-03-30 2018-03-30 Information processing method and electronic device

Country Status (1)

Country Link
CN (1) CN108509318B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297393A (en) * 2012-02-27 2013-09-11 洛阳圈圈堂商贸有限公司 Method and system for achieving visual presentation of client side
CN103777889A (en) * 2014-02-21 2014-05-07 联想(北京)有限公司 Information processing method and electronic device
US20150347907A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Methods and system for managing predictive models
CN105183566A (en) * 2015-10-16 2015-12-23 上海恺英网络科技有限公司 Resource management method for 3D game rendering engine
CN106201482A (en) * 2016-06-30 2016-12-07 努比亚技术有限公司 A kind of data processing method and electronic equipment
CN106815130A (en) * 2016-12-26 2017-06-09 珠海金山网络游戏科技有限公司 A kind of method and system of the game quality grading based on mobile terminal hardware
CN107398070A (en) * 2017-07-19 2017-11-28 腾讯科技(深圳)有限公司 Display control method and device, the electronic equipment of a kind of game picture
JP2017224083A (en) * 2016-06-14 2017-12-21 株式会社リコー Information processing device, control method and program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297393A (en) * 2012-02-27 2013-09-11 洛阳圈圈堂商贸有限公司 Method and system for achieving visual presentation of client side
CN103777889A (en) * 2014-02-21 2014-05-07 联想(北京)有限公司 Information processing method and electronic device
US20150347907A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Methods and system for managing predictive models
CN105183566A (en) * 2015-10-16 2015-12-23 上海恺英网络科技有限公司 Resource management method for 3D game rendering engine
JP2017224083A (en) * 2016-06-14 2017-12-21 株式会社リコー Information processing device, control method and program
CN106201482A (en) * 2016-06-30 2016-12-07 努比亚技术有限公司 A kind of data processing method and electronic equipment
CN106815130A (en) * 2016-12-26 2017-06-09 珠海金山网络游戏科技有限公司 A kind of method and system of the game quality grading based on mobile terminal hardware
CN107398070A (en) * 2017-07-19 2017-11-28 腾讯科技(深圳)有限公司 Display control method and device, the electronic equipment of a kind of game picture

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴家铸等: "《视景仿真技术及应用》", 31 December 2001, pages: 236 - 238 *

Also Published As

Publication number Publication date
CN108509318B (en) 2024-11-26

Similar Documents

Publication Publication Date Title
CN108763012B (en) Card pause information acquisition method and device and terminal
JP5887419B2 (en) Method and apparatus for taking a screen shot of an application screen in a mobile terminal
CN111163345B (en) Image rendering method and device
CN110377263B (en) Image synthesis method, image synthesis device, electronic equipment and storage medium
CN108496198B (en) Image processing method and device
US20220058772A1 (en) Image Processing Method and Device
CN110377391B (en) Picture display method and device, mobile terminal and storage medium
CN109254849B (en) Application program running method and device
CN108845861A (en) The implementation method and device of Softcam
CN105279006B (en) Screen capture method and terminal based on Android system
CN114116231A (en) Data loading method and device, computer equipment and storage medium
CN110413360A (en) Image display method, device, mobile terminal and storage medium
CN111695061A (en) Resource processing method and device, equipment and storage medium
CN108509318A (en) A kind of information processing method and electronic equipment
KR102575541B1 (en) Method for capturing image, terminal and storage medium thereof
CN112199149A (en) Interface rendering method and device and electronic equipment
CN110704157B (en) Application starting method, related device and medium
CN111290894B (en) Splash screen detection method, device, terminal and storage medium
CN112291584A (en) Dynamic effect file processing method and device and electronic equipment
CN111773679A (en) Method and device for processing icons in game
CN112825539B (en) Hardware management method and associated machine readable medium and electronic device
CN117437314A (en) Method and device for synthesizing dynamic diagram, storage medium and terminal equipment
US20210153118A1 (en) Method for referring to application scenario to manage hardware component of electronic device and associated non-transitory machine-readable medium
CN114489881A (en) An image processing method, device and medium
CN118741083A (en) Video call detection method and device

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