CN111651233B - Vehicle dual-screen multimedia dynamic frequency modulation method, system and computer equipment - Google Patents
Vehicle dual-screen multimedia dynamic frequency modulation method, system and computer equipment Download PDFInfo
- Publication number
- CN111651233B CN111651233B CN202010784914.7A CN202010784914A CN111651233B CN 111651233 B CN111651233 B CN 111651233B CN 202010784914 A CN202010784914 A CN 202010784914A CN 111651233 B CN111651233 B CN 111651233B
- Authority
- CN
- China
- Prior art keywords
- bandwidth
- scene
- preset
- frequency
- refresh rate
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Mechanical Engineering (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
Description
技术领域technical field
本发明涉及汽车技术领域,尤其涉及一种车载双屏多媒体动态调频方法、一种车载双屏多媒体动态调频系统及一种计算机设备。The invention relates to the technical field of automobiles, in particular to a vehicle-mounted dual-screen multimedia dynamic frequency modulation method, a vehicle-mounted dual-screen multimedia dynamic frequency modulation system and a computer device.
背景技术Background technique
在原生Android系统中,系统界面的刷新是由SurfaceFlinger负责管理,而它的刷新率在初始化的时候就已经设置为1秒60帧,在代码逻辑内部他将会以60Hz的频率触发一个信号,而这个信号将会触发整个刷新逻辑,包括图层计算、图层合成及图像拷贝;其中的每个步骤都会消耗系统资源,但是相关步骤假如不能在16ms内完成整个动作,这次的刷新实际不会成功的呈现到屏幕,造成明显的资源浪费;而对于双屏系统,由于只有一个SurfaceFlinger作为管理,所以实际最坏的情形下,前述的信号量1s将要刷新120帧的12.3寸1920×720分辨率的屏幕数据,这个将会给系统资源带来沉重的负担。In the native Android system, the refresh of the system interface is managed by SurfaceFlinger, and its refresh rate has been set to 60 frames per second during initialization. Inside the code logic, it will trigger a signal at a frequency of 60Hz, and This signal will trigger the entire refresh logic, including layer calculation, layer composition and image copying; each of these steps will consume system resources, but if the relevant steps cannot complete the entire action within 16ms, this refresh will not actually occur. Successful presentation to the screen results in a significant waste of resources; for a dual-screen system, since there is only one SurfaceFlinger for management, in the worst case, the aforementioned semaphore 1s will refresh 120 frames of 12.3-inch 1920×720 resolution screen data, which will place a heavy burden on system resources.
内存带宽是软件运行过程中必然消耗的系统资源,经测试验证可知,语音识别及图像刷新等业务会消耗非常多的相关资源,运行时,系统各业务场景的内存带宽长期处于100%的使用情况,使得大量业务排队延迟,导致了整体系统卡滞。Memory bandwidth is a system resource that is inevitably consumed during software operation. Tests and verifications show that services such as speech recognition and image refresh consume a lot of related resources. During operation, the memory bandwidth of each business scenario of the system is at 100% usage for a long time. , causing a large number of business queuing delays, resulting in the overall system stuck.
现有技术中,主要采用将系统CPU芯片升级到IMX.6QP并将内存升级到4G的方式实现改善。但是,升级硬件会增加项目的经济成本,而且IMX.6QP只支持Android 6以上的系统,整个项目迁移有极大的项目成本消耗;同时,项目需要从硬件、软件、集成各方面重新进行开发,时间成本没法满足量产需求。In the prior art, the improvement is mainly achieved by upgrading the system CPU chip to IMX.6QP and the memory to 4G. However, upgrading the hardware will increase the economic cost of the project, and IMX.6QP only supports systems above Android 6, and the entire project migration has a huge project cost consumption; at the same time, the project needs to be re-developed from all aspects of hardware, software, and integration. The time cost cannot meet the demand for mass production.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题在于,提供一种车载双屏多媒体动态调频方法、系统及计算机设备,可动态调节系统的刷新率。The technical problem to be solved by the present invention is to provide a vehicle-mounted dual-screen multimedia dynamic frequency modulation method, system and computer equipment, which can dynamically adjust the refresh rate of the system.
为了解决上述技术问题,本发明提供了一种车载双屏多媒体动态调频方法,用于支持车载双屏多媒体显示的主机或主机芯片中,包括:判断当前场景是否为耗带宽场景,所述带宽为主机芯片的内存带宽;若当前场景为耗带宽场景,则根据预设刷新率下限调节系统的刷新频率;若当前场景为非耗带宽场景,则判断当前场景是否为需要流畅动画的场景;若当前场景为需要流畅动画的场景,则根据预设流畅刷新率调节系统的刷新频率;若当前场景为不需要流畅动画的场景,则根据主机芯片的内存带宽调节系统的刷新频率。In order to solve the above technical problems, the present invention provides a method for dynamic frequency modulation of vehicle-mounted dual-screen multimedia, which is used in a host or host chip supporting vehicle-mounted dual-screen multimedia display, including: judging whether the current scene is a bandwidth-consuming scene, and the bandwidth is The memory bandwidth of the host chip; if the current scene is a bandwidth-consuming scene, the refresh rate of the system is adjusted according to the preset lower limit of the refresh rate; if the current scene is a non-bandwidth-consuming scene, it is judged whether the current scene is a scene that requires smooth animation; if the current scene is a scene that requires smooth animation If the scene requires smooth animation, adjust the refresh rate of the system according to the preset smooth refresh rate; if the current scene does not require smooth animation, adjust the refresh rate of the system according to the memory bandwidth of the host chip.
作为上述方案的改进,所述根据预设刷新率下限调节系统的刷新频率的步骤包括:获取当前场景的预设刷新率下限;将系统的刷新频率逐级调节为所述预设刷新率下限。As an improvement of the above solution, the step of adjusting the refresh rate of the system according to the preset lower limit of the refresh rate includes: obtaining the preset lower limit of the refresh rate of the current scene; and adjusting the refresh rate of the system to the lower limit of the preset refresh rate step by step.
作为上述方案的改进,所述根据预设流畅刷新率调节系统的刷新频率的步骤包括:获取流畅动画的预设流畅刷新率;将系统的刷新频率逐级调节为所述预设流畅刷新率。As an improvement of the above solution, the step of adjusting the refresh rate of the system according to the preset smooth refresh rate includes: obtaining a preset smooth refresh rate of the smooth animation; and adjusting the refresh rate of the system to the preset smooth refresh rate step by step.
作为上述方案的改进,所述根据主机芯片的内存带宽调节系统的刷新频率的步骤包括:周期检测主机芯片的内存带宽;判断主机芯片的内存带宽是否低于预设带宽;若主机芯片的内存带宽低于预设带宽,则根据所述主机芯片的内存带宽逐级降低系统的刷新频率;若主机芯片的内存带宽不低于预设带宽,则重新判断当前场景是否为耗带宽场景。As an improvement of the above solution, the step of adjusting the refresh frequency of the system according to the memory bandwidth of the host chip includes: periodically detecting the memory bandwidth of the host chip; judging whether the memory bandwidth of the host chip is lower than the preset bandwidth; If the bandwidth is lower than the preset bandwidth, the refresh frequency of the system is gradually reduced according to the memory bandwidth of the host chip; if the memory bandwidth of the host chip is not lower than the preset bandwidth, it is re-determined whether the current scene is a bandwidth-consuming scene.
作为上述方案的改进,所述耗带宽场景包括下述中的任一种或多种场景:双屏启动器发生触控事件的场景、双屏运行导航及语音的场景、主屏启动器滑动使用且副屏运行导航及语音的场景。As an improvement of the above solution, the bandwidth consumption scenario includes any one or more of the following scenarios: a scenario in which a touch event occurs on the dual-screen launcher, a scenario in which the dual-screen launcher runs navigation and voice, the main-screen launcher is used swipe and The secondary screen runs navigation and voice scenarios.
相应地,本发明还提供了一种车载双屏多媒体动态调频方法系统,包括:第一判断模块,用于判断当前场景是否为耗带宽场景,所述带宽为主机芯片的内存带宽;第一频率调节模块,用于当所述第一判断模块判断出当前场景为耗带宽场景时,则根据预设刷新率下限调节系统的刷新频率;第二判断模块,用于当所述第一判断模块判断出当前场景为非耗带宽场景时,判断当前场景是否为需要流畅动画的场景;第二频率调节模块,用于当所述第二判断模块判断出当前场景为需要流畅动画的场景时,根据预设流畅刷新率调节系统的刷新频率;第三频率调节模块,用于当所述第二判断模块判断出当前场景为不需要流畅动画的场景时,根据主机芯片的内存带宽调节系统的刷新频率。Correspondingly, the present invention also provides a vehicle-mounted dual-screen multimedia dynamic frequency modulation method system, including: a first judgment module for judging whether the current scene is a bandwidth-consuming scene, and the bandwidth is the memory bandwidth of the host chip; the first frequency an adjustment module, configured to adjust the refresh rate of the system according to the preset lower limit of the refresh rate when the first determination module determines that the current scene is a bandwidth-consuming scene; the second determination module is configured to determine when the first determination module determines When it is determined that the current scene is a non-bandwidth-consuming scene, it is judged whether the current scene is a scene that needs smooth animation; the second frequency adjustment module is used for when the second judgment module judges that the current scene is a scene that needs smooth animation, according to the preset frequency adjustment module. A smooth refresh rate is set to adjust the refresh frequency of the system; a third frequency adjustment module is used to adjust the refresh frequency of the system according to the memory bandwidth of the host chip when the second judgment module determines that the current scene is a scene that does not require smooth animation.
作为上述方案的改进,所述第一频率调节模块包括:刷新率下限获取单元,用于获取当前场景的预设刷新率下限;下限调频单元,用于将系统的刷新频率逐级调节为所述预设刷新率下限。As an improvement of the above solution, the first frequency adjustment module includes: a refresh rate lower limit acquisition unit, used for acquiring the preset refresh rate lower limit of the current scene; Default refresh rate lower limit.
作为上述方案的改进,所述第二频率调节模块包括:流畅刷新率获取单元,用于获取流畅动画的预设流畅刷新率;流畅调频单元,用于将系统的刷新频率逐级调节为所述预设流畅刷新率。As an improvement of the above solution, the second frequency adjustment module includes: a smooth refresh rate acquisition unit for acquiring a preset smooth refresh rate for smooth animations; a smooth frequency modulation unit for adjusting the refresh rate of the system to the above Preset smooth refresh rate.
作为上述方案的改进,所述第三频率调节模块包括:带宽检测单元,用于周期检测主机芯片的内存带宽;带宽判断单元,用于判断主机芯片的内存带宽是否低于预设带宽;第一调频单元,用于当带宽判断单元判断出主机芯片的内存带宽低于预设带宽时,根据所述主机芯片的内存带宽逐级降低系统的刷新频率;第二调频单元,用于当带宽判断单元判断主机芯片的出内存带宽不低于预设带宽时,驱动第一判断模块。As an improvement of the above solution, the third frequency adjustment module includes: a bandwidth detection unit for periodically detecting the memory bandwidth of the host chip; a bandwidth judgment unit for judging whether the memory bandwidth of the host chip is lower than a preset bandwidth; the first The frequency modulation unit is used for reducing the refresh frequency of the system step by step according to the memory bandwidth of the host chip when the bandwidth judgment unit judges that the memory bandwidth of the host chip is lower than the preset bandwidth; the second frequency modulation unit is used for when the bandwidth judgment unit When judging that the outgoing memory bandwidth of the host chip is not lower than the preset bandwidth, the first judgment module is driven.
相应地,本发明还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行上述车载双屏多媒体动态调频方法的步骤。Correspondingly, the present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the above-mentioned method for dynamic frequency modulation of vehicle-mounted dual-screen multimedia.
实施本发明,具有如下有益效果:Implement the present invention, have the following beneficial effects:
本发明可根据主机芯片的内存带宽的情况以及实际应用场景动态调节系统的刷新率,实现了利用软件方法缓解带宽资源紧张的目的,从而达到在当前资源有限的硬件下对系统资源的充分利用,平衡了显示效果和系统性能,完成各种复杂车机功能,并解决卡滞问题;The invention can dynamically adjust the refresh rate of the system according to the memory bandwidth of the host chip and the actual application scenario, and realizes the purpose of alleviating the bandwidth resource shortage by using the software method, thereby achieving full utilization of the system resources under the current hardware with limited resources. Balance the display effect and system performance, complete various complex car functions, and solve the problem of stuck;
进一步,本发明在调节刷新率时,均采用逐级调节的方式,可有效避免刷新频率的大幅度调节,实现刷新频率的平缓过度,避免系统界面出现明显变化。Further, when adjusting the refresh rate, the present invention adopts a step-by-step adjustment method, which can effectively avoid a large adjustment of the refresh rate, realize a smooth transition of the refresh rate, and avoid obvious changes in the system interface.
附图说明Description of drawings
图1是本发明车载双屏多媒体动态调频方法的实施例流程图;Fig. 1 is the embodiment flow chart of the vehicle-mounted dual-screen multimedia dynamic frequency modulation method of the present invention;
图2是本发明车载双屏多媒体动态调频系统的结构示意图。FIG. 2 is a schematic structural diagram of the vehicle-mounted dual-screen multimedia dynamic frequency modulation system of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings.
本发明车载双屏多媒体动态调频方法,用于支持车载双屏多媒体显示的主机或主机芯片中,可应用到imx6q的硬件平台上,支持两个12.3寸屏的Android 4.4系统。The vehicle dual-screen multimedia dynamic frequency modulation method of the present invention is used in a host or host chip supporting vehicle-mounted dual-screen multimedia display, and can be applied to the imx6q hardware platform to support Android 4.4 systems with two 12.3-inch screens.
参见图1,图1显示了本发明车载双屏多媒体动态调频方法的实施例流程,其包括:Referring to FIG. 1, FIG. 1 shows an embodiment process of the vehicle-mounted dual-screen multimedia dynamic frequency modulation method of the present invention, which includes:
S101,判断当前场景是否为耗带宽场景。S101, determine whether the current scene is a bandwidth consumption scene.
需要说明的是,所述带宽为主机芯片的内存带宽,所述耗带宽场景可由管理员根据实际情况进行预设。具体地,所述耗带宽场景可以为双屏启动器发生触控事件的场景、双屏运行导航及语音的场景、主屏启动器滑动使用且副屏运行导航及语音的场景,但不以此为限制。It should be noted that the bandwidth is the memory bandwidth of the host chip, and the bandwidth consumption scenario can be preset by the administrator according to the actual situation. Specifically, the bandwidth consumption scenario may be a scenario in which a touch event occurs on the dual-screen launcher, a scenario in which navigation and voice are run on the dual-screen, and a scenario in which the main-screen launcher is slid and the secondary-screen runs navigation and voice, but this is not the case. limit.
启动器(即Launcher),是Android系统中的桌面启动器,Android系统的桌面统称为Launcher。具体地,双屏运行导航及语音的场景、主屏启动器滑动使用且副屏运行导航及语音的场景为刷新率可降低的场景,因此,管理员可适当降低上述场景的刷新率下限,其中,双屏运行导航及语音的场景,即主屏及副屏同时运行导航及语音;主屏启动器滑动使用且副屏运行导航及语音的场景,即主屏启动器滑动使用而副屏同时运行导航及语音的场景。而双屏启动器发生触控事件的场景为刷新率不可降低的场景,因此,管理员可适当提高上述场景的刷新率下限,其中,双屏启动器发生触控事件的场景,即主屏及副屏启动器的场景下有触控事件。The launcher (ie Launcher) is the desktop launcher in the Android system. The desktops of the Android system are collectively called Launcher. Specifically, the scenarios in which the dual-screen navigation and voice are running, the main screen launcher is slid and the secondary screen is running navigation and voice are scenarios where the refresh rate can be reduced. Therefore, the administrator can appropriately reduce the lower limit of the refresh rate in the above scenarios, wherein, The scenario where dual-screen navigation and voice are running, that is, the main screen and the secondary screen are running navigation and voice at the same time; the main screen launcher is slid and the secondary screen is running navigation and voice, that is, the main screen launcher is sliding and the secondary screen is running navigation and voice at the same time. Scenes. The scenarios in which touch events occur on the dual-screen launcher are scenarios where the refresh rate cannot be reduced. Therefore, the administrator can appropriately increase the lower limit of the refresh rate in the above scenarios. The scenarios in which touch events occur in the dual-screen launcher are the main screen and the secondary screen. There are touch events in the context of the screen launcher.
优选地,本发明可在PhoneWindow下记录不同场景的预设刷新率下限及不同场景的预设流畅刷新率。Preferably, the present invention can record the preset refresh rate lower limit of different scenes and the preset smooth refresh rate of different scenes under PhoneWindow.
因此,管理员可根据耗带宽场景的具体情况,预设符合要求的刷新率下限,灵活性强。Therefore, the administrator can preset a lower limit of the refresh rate that meets the requirements according to the specific conditions of the bandwidth consumption scenario, which is highly flexible.
S102,若当前场景为耗带宽场景,则根据预设刷新率下限调节系统的刷新频率。S102, if the current scene is a bandwidth consumption scene, adjust the refresh rate of the system according to the preset lower limit of the refresh rate.
具体地,所述根据预设刷新率下限调节系统的刷新频率的步骤包括:Specifically, the step of adjusting the refresh rate of the system according to the preset lower limit of the refresh rate includes:
(1)获取当前场景的预设刷新率下限;(1) Obtain the preset refresh rate lower limit of the current scene;
(2)将系统的刷新频率逐级调节为所述预设刷新率下限。(2) Adjust the refresh rate of the system step by step to the preset lower limit of the refresh rate.
需要说明的是,采用逐级调节的方式可有效避免刷新频率的大幅度调节,实现刷新频率的平缓过度,避免系统界面出现明显变化。It should be noted that the step-by-step adjustment method can effectively avoid the large-scale adjustment of the refresh frequency, achieve a smooth and excessive refresh frequency, and avoid obvious changes in the system interface.
例如,系统的当前刷新频率45帧/秒,若当前场景的预设刷新率下限为20帧/秒时,可将系统的刷新频率采用“45帧/秒—>40帧/秒—>35帧/秒—>30帧/秒—>25帧/秒—>20帧/秒”的梯度进行逐级调节。For example, the current refresh rate of the system is 45 frames/second. If the preset refresh rate lower limit of the current scene is 20 frames/second, the system refresh rate can be set to "45 frames/second—>40 frames/second—>35 frames. /sec—>30 frames/sec—>25 frames/sec—>20 frames/sec” gradient is adjusted step by step.
S103,若当前场景为非耗带宽场景,则判断当前场景是否为需要流畅动画的场景。S103 , if the current scene is a non-bandwidth-consuming scene, determine whether the current scene is a scene requiring smooth animation.
S104,若当前场景为需要流畅动画的场景,则根据预设流畅刷新率调节系统的刷新频率。S104 , if the current scene is a scene requiring smooth animation, adjust the refresh rate of the system according to the preset smooth refresh rate.
具体地,所述根据预设流畅刷新率调节系统的刷新频率的步骤包括:Specifically, the step of adjusting the refresh rate of the system according to the preset smooth refresh rate includes:
(1)获取流畅动画的预设流畅刷新率;(1) Obtain the preset smooth refresh rate of smooth animation;
(2)将系统的刷新频率逐级调节为所述预设流畅刷新率。(2) Adjust the refresh rate of the system step by step to the preset smooth refresh rate.
需要说明的是,采用逐级调节的方式可有效避免刷新频率的大幅度调节,实现刷新频率的平缓过度,避免系统界面出现明显变化。It should be noted that the step-by-step adjustment method can effectively avoid the large-scale adjustment of the refresh frequency, achieve a smooth and excessive refresh frequency, and avoid obvious changes in the system interface.
例如,系统的当前刷新频率35帧/秒,若预设流畅刷新率为50帧/秒时,可将系统的刷新频率采用“35帧/秒—>40帧/秒—>45帧/秒—>50帧/秒”的梯度进行逐级调节。For example, the current refresh rate of the system is 35 frames/sec. If the preset smooth refresh rate is 50 frames/sec, the system refresh rate can be set to "35 frames/sec—>40 frames/sec—>45 frames/sec— >50 frames/sec" gradient is adjusted step by step.
因此,本发明根据实际应用场景(如,耗带宽场景,需要流畅动画的场景)动态调节系统的刷新率,从而达到对系统资源的充分利用,平衡了显示效果和系统性能,并解决卡滞问题。Therefore, the present invention dynamically adjusts the refresh rate of the system according to actual application scenarios (such as bandwidth consumption scenarios, scenarios that require smooth animation), so as to achieve full utilization of system resources, balance display effects and system performance, and solve the problem of stuck .
S105,若当前场景为不需要流畅动画的场景,则根据主机芯片的内存带宽调节系统的刷新频率。S105, if the current scene is a scene that does not require smooth animation, adjust the refresh frequency of the system according to the memory bandwidth of the host chip.
具体地,所述根据主机芯片的内存带宽调节系统的刷新频率的步骤包括:Specifically, the step of adjusting the refresh frequency of the system according to the memory bandwidth of the host chip includes:
(1)周期检测主机芯片的内存带宽;(1) Periodically detect the memory bandwidth of the host chip;
(2)判断主机芯片的内存带宽是否低于预设带宽;(2) Determine whether the memory bandwidth of the host chip is lower than the preset bandwidth;
(3)若主机芯片的内存带宽低于预设带宽,则根据所述主机芯片的内存带宽逐级降低系统的刷新频率;(3) If the memory bandwidth of the host chip is lower than the preset bandwidth, reduce the refresh frequency of the system step by step according to the memory bandwidth of the host chip;
需要说明的是,本发明可在SurfaceFlinger里面实现内存带宽的周期监控,并且提供刷新频率的对外接口。同时,SurfaceFlinger还根据内存带宽情况设置当前的刷新频率。It should be noted that the present invention can realize the periodic monitoring of the memory bandwidth in the SurfaceFlinger, and provide the external interface of the refresh frequency. At the same time, SurfaceFlinger also sets the current refresh rate according to the memory bandwidth.
与现有技术不同的是,本发明增加内存带宽的周期检测,并根据预设调频规则逐级调节系统的刷新频率。具体地,所述预设调频规则为:当主机芯片的内存带宽超过85%,将刷新频率调节为45帧/秒;当主机芯片的内存带宽超过90%,将刷新频率降低为30帧/秒;当主机芯片的内存带宽超过95%,将刷新频率降低为25帧/秒;当主机芯片的内存带宽超过99%,将刷新频率降低为20帧/秒,但不以此为限制。Different from the prior art, the present invention increases the period detection of the memory bandwidth, and adjusts the refresh frequency of the system step by step according to the preset frequency modulation rule. Specifically, the preset frequency regulation rule is: when the memory bandwidth of the host chip exceeds 85%, the refresh rate is adjusted to 45 frames/second; when the memory bandwidth of the host chip exceeds 90%, the refresh rate is reduced to 30 frames/second ; When the memory bandwidth of the host chip exceeds 95%, reduce the refresh rate to 25 frames per second; when the memory bandwidth of the host chip exceeds 99%, reduce the refresh rate to 20 frames per second, but not limited by this.
因此,本发明根据内存带宽的情况动态调节系统的刷新率,从而达到对系统资源的充分利用,平衡了显示效果和系统性能,并解决卡滞问题。Therefore, the present invention dynamically adjusts the refresh rate of the system according to the situation of the memory bandwidth, so as to achieve full utilization of the system resources, balance the display effect and the system performance, and solve the problem of stuck.
(4)若主机芯片的内存带宽不低于预设带宽,则重新判断当前场景是否为耗带宽场景。(4) If the memory bandwidth of the host chip is not lower than the preset bandwidth, re-determine whether the current scene is a bandwidth-consuming scene.
也就是说,若主机芯片的内存带宽不低于预设带宽时,则返回步骤S101,以重新判断当前场景是否为耗带宽场景。That is, if the memory bandwidth of the host chip is not lower than the preset bandwidth, the process returns to step S101 to re-determine whether the current scene is a bandwidth-consuming scene.
由上可知,本发明不依赖硬件升级,而是通过软件手段解决了因内存带宽不足导致的系统卡滞问题,用相对成本较低,较快的方式,达到现有硬件平台的最优效果。具体地:本发明优先根据预设场景(如,耗带宽场景,需要流畅动画的场景)来设置刷新率;若当前场景为预设场景,则按预设的刷新率执行;若当前场景不为预设场景,则按带宽压力来降低刷新率;同时,本发明在调节刷新率时,均采用逐级调节的方式,可有效避免刷新频率的大幅度调节,实现刷新频率的平缓过度,避免系统界面出现明显变化。As can be seen from the above, the present invention does not rely on hardware upgrade, but solves the problem of system stuck caused by insufficient memory bandwidth through software means, and achieves the optimal effect of the existing hardware platform in a relatively low cost and fast manner. Specifically: the present invention preferentially sets the refresh rate according to a preset scene (such as a bandwidth-consuming scene, a scene that requires smooth animation); if the current scene is a preset scene, it is executed according to the preset refresh rate; if the current scene is not a In the preset scene, the refresh rate is reduced according to the bandwidth pressure; at the same time, when adjusting the refresh rate, the present invention adopts a step-by-step adjustment method, which can effectively avoid the large adjustment of the refresh frequency, realize the smooth and excessive refresh rate, and avoid the system The interface has changed significantly.
参见图2,图2显示了本发明车载双屏多媒体动态调频系统100的具体结构,其包括第一判断模块1、第一频率调节模块2、第二判断模块3、第二频率调节模块4及第三频率调节模块5,具体地:Referring to FIG. 2, FIG. 2 shows the specific structure of the vehicle-mounted dual-screen multimedia dynamic
第一判断模块1,用于判断当前场景是否为耗带宽场景。需要说明的是,所述带宽为主机芯片的内存带宽,所述耗带宽场景可由管理员根据实际情况进行预设;具体地,所述耗带宽场景可以为双屏启动器发生触控事件的场景、双屏运行导航及语音的场景、主屏启动器滑动使用且副屏运行导航及语音的场景,但不以此为限制。The
第一频率调节模块2,用于当所述第一判断模块1判断出当前场景为耗带宽场景时,则根据预设刷新率下限调节系统的刷新频率。具体地,所述第一频率调节模块2包括:刷新率下限获取单元,用于获取当前场景的预设刷新率下限;下限调频单元,用于将系统的刷新频率逐级调节为所述预设刷新率下限。需要说明的是,采用逐级调节的方式可有效避免刷新频率的大幅度调节,实现刷新频率的平缓过度,避免系统界面出现明显变化。The first
第二判断模块3,用于当所述第一判断模块1判断出当前场景为非耗带宽场景时,判断当前场景是否为需要流畅动画的场景。The
第二频率调节模块4,用于当所述第二判断模块3判断出当前场景为需要流畅动画的场景时,根据预设流畅刷新率调节系统的刷新频率。具体地,所述第二频率调节模块4包括:流畅刷新率获取单元,用于获取流畅动画的预设流畅刷新率;流畅调频单元,用于将系统的刷新频率逐级调节为所述预设流畅刷新率。需要说明的是,采用逐级调节的方式可有效避免刷新频率的大幅度调节,实现刷新频率的平缓过度,避免系统界面出现明显变化。The second
第三频率调节模块5,用于当所述第二判断模块3判断出当前场景为不需要流畅动画的场景时,根据主机芯片的内存带宽调节系统的刷新频率。The third
具体地,所述第三频率调节模块5包括:带宽检测单元,用于周期检测主机芯片的内存带宽;带宽判断单元,用于判断主机芯片的内存带宽是否低于预设带宽;第一调频单元,用于当带宽判断单元判断出主机芯片的内存带宽低于预设带宽时,根据所述主机芯片的内存带宽逐级降低系统的刷新频率;第二调频单元,用于当带宽判断单元判断出主机芯片的内存带宽不低于预设带宽时,驱动第一判断模块。Specifically, the third
需要说明是,本发明通过带宽检测单元实现内存带宽的周期检测,并由第一调频单元根据预设调频规则逐级调节系统的刷新频率。具体地,所述预设调频规则为:当主机芯片的内存带宽超过85%,将刷新频率调节为45帧/秒;当主机芯片的内存带宽超过90%,将刷新频率降低为30帧/秒;当主机芯片的内存带宽超过95%,将刷新频率降低为25帧/秒;当主机芯片的内存带宽超过99%,将刷新频率降低为20帧/秒,但不以此为限制。It should be noted that the present invention realizes the periodic detection of the memory bandwidth through the bandwidth detection unit, and the first frequency modulation unit adjusts the refresh frequency of the system step by step according to the preset frequency modulation rule. Specifically, the preset frequency regulation rule is: when the memory bandwidth of the host chip exceeds 85%, the refresh rate is adjusted to 45 frames/second; when the memory bandwidth of the host chip exceeds 90%, the refresh rate is reduced to 30 frames/second ; When the memory bandwidth of the host chip exceeds 95%, reduce the refresh rate to 25 frames per second; when the memory bandwidth of the host chip exceeds 99%, reduce the refresh rate to 20 frames per second, but not limited by this.
因此,本发明可根据内存带宽的情况以及实际应用场景动态调节系统的刷新率,实现了利用软件方法缓解带宽资源紧张的目的,从而达到在当前资源有限的硬件下对系统资源的充分利用,平衡了显示效果和系统性能,完成各种复杂车机功能(尤其是动效丰富的仪表加主机的功能),并解决卡滞问题。Therefore, the present invention can dynamically adjust the refresh rate of the system according to the situation of the memory bandwidth and the actual application scene, and realizes the purpose of alleviating the shortage of bandwidth resources by using the software method, so as to achieve full utilization of system resources under the current hardware with limited resources, balance It improves the display effect and system performance, completes various complex vehicle functions (especially the function of the instrument with rich dynamic effects and the host), and solves the problem of stuck.
相应地,本发明还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述车载双屏多媒体动态调频方法的步骤。Correspondingly, the present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned vehicle dual-screen multimedia dynamic frequency modulation method when the processor executes the computer program.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can also be made, and these improvements and modifications may also be regarded as It is the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010784914.7A CN111651233B (en) | 2020-08-06 | 2020-08-06 | Vehicle dual-screen multimedia dynamic frequency modulation method, system and computer equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010784914.7A CN111651233B (en) | 2020-08-06 | 2020-08-06 | Vehicle dual-screen multimedia dynamic frequency modulation method, system and computer equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111651233A CN111651233A (en) | 2020-09-11 |
| CN111651233B true CN111651233B (en) | 2020-10-30 |
Family
ID=72345579
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010784914.7A Active CN111651233B (en) | 2020-08-06 | 2020-08-06 | Vehicle dual-screen multimedia dynamic frequency modulation method, system and computer equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111651233B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104267801A (en) * | 2014-10-20 | 2015-01-07 | 福州瑞芯微电子有限公司 | Power consumption and bandwidth reducing method and system |
| CN104282286A (en) * | 2014-10-30 | 2015-01-14 | 广东欧珀移动通信有限公司 | Method and system for adjusting display refresh rate of smart mobile terminal according to application scene |
| CN106095363A (en) * | 2016-06-03 | 2016-11-09 | 广东欧珀移动通信有限公司 | Method, device and terminal for improving terminal freeze |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9141264B2 (en) * | 2011-12-14 | 2015-09-22 | International Business Machines Corporation | Variable refresh rates for portions of shared screens |
| CN102930852B (en) * | 2012-11-08 | 2014-05-14 | 山东大学 | Method of improving mobile terminal system performance by dynamically regulating of screen refresh rate |
| CN104347049A (en) * | 2014-09-24 | 2015-02-11 | 广东欧珀移动通信有限公司 | A method and device for adjusting screen refresh rate |
| CN104269155A (en) * | 2014-09-24 | 2015-01-07 | 广东欧珀移动通信有限公司 | A method and device for adjusting screen refresh rate |
| CN106506856A (en) * | 2016-11-30 | 2017-03-15 | 努比亚技术有限公司 | A kind of screen-refresh control method and terminal |
| CN110764725A (en) * | 2019-10-18 | 2020-02-07 | 中科创达软件股份有限公司 | Vehicle machine system main screen and auxiliary screen display method and device and electronic equipment |
| CN111131622A (en) * | 2019-12-31 | 2020-05-08 | 联想(北京)有限公司 | Refresh frequency adjusting method and device, electronic equipment and readable storage medium |
-
2020
- 2020-08-06 CN CN202010784914.7A patent/CN111651233B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104267801A (en) * | 2014-10-20 | 2015-01-07 | 福州瑞芯微电子有限公司 | Power consumption and bandwidth reducing method and system |
| CN104282286A (en) * | 2014-10-30 | 2015-01-14 | 广东欧珀移动通信有限公司 | Method and system for adjusting display refresh rate of smart mobile terminal according to application scene |
| CN106095363A (en) * | 2016-06-03 | 2016-11-09 | 广东欧珀移动通信有限公司 | Method, device and terminal for improving terminal freeze |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111651233A (en) | 2020-09-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101503630B1 (en) | Detecting static images and reducing resource usage on an electronic device | |
| US8621253B1 (en) | Processor boost based on user interface demand | |
| US10475405B2 (en) | Dynamic control of display refresh rate based on user interface activity | |
| JP4249763B2 (en) | Computer system and method for managing its performance and power consumption | |
| CN107209543B (en) | Clock rate adjustment for processing unit | |
| CN111583886A (en) | Screen refresh rate adjusting method, device, equipment and medium | |
| CN108415772B (en) | Container-based resource adjustment method, device and medium | |
| WO2012031540A1 (en) | Method for adjusting memory running frequency and electronic device | |
| US20080104437A1 (en) | Computer system and control method thereof | |
| US20190182452A1 (en) | Dynamic control of display refresh rate based on user interface activity | |
| US20120011506A1 (en) | Information processor, control method, and computer-readable recording medium recording control program | |
| EP3532919B1 (en) | Method and apparatus for dynamically reducing application render-to-on-screen time in a desktop environment | |
| US20130262388A1 (en) | Database backup to highest-used page | |
| CN108885486A (en) | Enhanced Dynamic Clock and Voltage Scaling (DCVS) scheme | |
| TW201241739A (en) | Techniques for changing image display properties | |
| CN110764725A (en) | Vehicle machine system main screen and auxiliary screen display method and device and electronic equipment | |
| WO2024112401A1 (en) | Display processing unit (dpu) pixel rate based on display region of interest (roi) geometry | |
| CN111651233B (en) | Vehicle dual-screen multimedia dynamic frequency modulation method, system and computer equipment | |
| WO2021000220A1 (en) | Methods and apparatus for dynamic jank reduction | |
| CN110383241B (en) | Apparatus and method for reducing hardware power consumption based on application state | |
| US8773442B2 (en) | Aligning animation state update and frame composition | |
| US9690619B2 (en) | Thread processing method and thread processing system for setting for each thread priority level of access right to access shared memory | |
| US20210358079A1 (en) | Methods and apparatus for adaptive rendering | |
| WO2021000226A1 (en) | Methods and apparatus for optimizing frame response | |
| US20160292015A1 (en) | Processor frequency scaling based upon load tracking of dependent tasks |
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 |