CN108628562A - A kind of screen refresh method and system - Google Patents
A kind of screen refresh method and system Download PDFInfo
- Publication number
- CN108628562A CN108628562A CN201710179395.XA CN201710179395A CN108628562A CN 108628562 A CN108628562 A CN 108628562A CN 201710179395 A CN201710179395 A CN 201710179395A CN 108628562 A CN108628562 A CN 108628562A
- Authority
- CN
- China
- Prior art keywords
- image
- refresh cycle
- pixel
- screen
- refresh
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3265—Power saving in display device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The invention discloses a kind of screen refresh methods, including:According to preset determining rule, determines and be directed to current refresh cycle, the image that the needs drawn refresh;The diversity ratio pair that the image determined for the current refresh cycle is carried out to pixel with the image determined for a upper refresh cycle, obtains difference value;When the difference value is in preset threshold range, the vsync signals that hardware layer is sent are intercepted, are refreshed with the image for forbidding screen to refresh to needs within the current refresh cycle according to the vsync signals.Method provided by the invention, the image for needing to refresh for the current refresh cycle, the image and a upper refresh cycle are needed to the diversity ratio pair of the image refreshed progress pixel, when comparing the difference value obtained in preset threshold range, intercept the vsync signals of triggering screen-refresh, to forbid screen to needing the image refreshed to refresh in the current refresh cycle, to reduce the refreshing frequency of screen, the power consumption of terminal has been saved.
Description
Technical field
The present invention relates to image display arts more particularly to a kind of screen refresh method and systems.
Background technology
With the development of science and technology, the various terminals with display screen are more and more using in people's lives.With
Family can converse on the display screen of terminal, game, video-see, a variety of operations such as web page browsing, to meet life
Various needs.User is during operating display screen, in order to ensure to show the smoothness that screen shows image
Property, it needs constantly to refresh display screen.
Inventor has found that during to display screen constantly refresh, system can be largely occupied
Memory consumes terminal power, the power consumption of terminal is caused to increase.
Invention content
In view of this, the present invention provides a kind of screen refresh method, to solve constantly to refresh screen in the prior art
The problem of occupying a large amount of Installed System Memory and power resources, increasing the power consumption of terminal.Concrete scheme is as follows:
A kind of screen refresh method, including:
According to preset determining rule, determines and be directed to current refresh cycle, the image that the needs drawn refresh;
The image determined for the current refresh cycle is carried out to the difference of pixel with the image determined for a upper refresh cycle
Different comparison obtains difference value;
When the difference value is in preset threshold range, intercept hardware layer send with the current refresh cycle phase
Corresponding vertical synchronization vsync signals, with forbid screen according to the vsync signals within the current refresh cycle to needing to refresh
Image refreshed.
Above-mentioned method, it is preferred that further include:
When the difference value is not in preset threshold range, according to the vsync signals, the screen is triggered to needing
The image to be refreshed is refreshed.
Above-mentioned method, it is preferred that described draw is directed to the current refresh cycle, needs the image refreshed to include:
Determine operation behavior of the active user to terminal;
According to the operation behavior, the drafting frame per second of the terminal is adjusted;
The image refreshed is needed to be drawn the current refresh cycle by the drafting frame per second being adjusted.
Above-mentioned method, it is preferred that the determining active user includes to the operation behavior of terminal:
Receive enabled instruction of the user to application program;
Obtain the process number of the application program corresponding to the enabled instruction;
The maps files of the application program are obtained according to the process number;
The maps files are traversed, the dynamic library file of the application program is obtained;
The dynamic library file is matched with preset game engine dynamic library file, if matching, determines current use
Family is to start game class application program to the operation behavior of terminal.
Above-mentioned method, it is preferred that described by the image determined for the current refresh cycle and for a upper refresh cycle
Determining image carries out the diversity ratio pair of pixel, obtains difference value and includes:
Pixel in the second corresponding image of each pixel in first image is subjected to pixel matching;
Determine the quantity for the pixel for meeting matching condition in described first image;
Pixel total in the quantity and described first image of the pixel of matching condition will be met in described first image
Quantity ratio, as the difference value;
Described first image is for image determined by the current refresh cycle;
Second image was for image determined by a upper refresh cycle;
Described first image is for image determined by the current refresh cycle;
Second image was for image determined by a upper refresh cycle.
Above-mentioned method, it is preferred that described to intercept the corresponding vertical with the current refresh cycle of hardware layer transmission
Synchronizing vsync signals includes:
Call preset interception function;
Using the interception function, the vertical synchronization corresponding with current refresh cycle that intercepts that hardware layer sends
Vsync signals.
A kind of screen-refresh system, including:
Determination unit, for according to preset determining rule, determining and being directed to the current refresh cycle, that is drawn needs to refresh
Image;
Comparison unit, for the image that the current refresh cycle determines and the image determined for a upper refresh cycle will to be directed to
The diversity ratio pair of pixel is carried out, difference value is obtained;
Interception unit, for when the difference value is in preset threshold range, intercept that hardware layer sends with it is described
Corresponding vertical synchronization vsync signals of current refresh cycle, to forbid screen to refresh week current according to the vsync signals
The image refreshed to needs in phase refreshes.
Above-mentioned system, it is preferred that further include:
Trigger element, for when the difference value is not in preset threshold range, according to the vsync signals, touching
The image sent out screen described and refreshed to needs refreshes.
Above-mentioned system, it is preferred that the comparison unit includes:
Coupling subelement, for clicking through the pixel in the second corresponding image of each pixel in the first image
Row pixel matching;
Determination subelement, the quantity for determining the pixel for meeting matching condition in described first image;
Comparing subunit, for the quantity of the pixel of matching condition and first figure will to be met in described first image
The ratio of the quantity of total pixel as in, as the difference value;
Described first image is for image determined by the current refresh cycle;
Second image was for image determined by a upper refresh cycle.
Above-mentioned system, it is preferred that the interception unit includes:
Subelement is called, for calling preset interception function;
Intercept subelement, for apply the interception function, intercept hardware layer send with the current refresh cycle phase
Corresponding vertical synchronization vsync signals.
Compared with prior art, the present invention includes following advantages:
The present invention provides a kind of screen refresh method, including:According to preset determining rule, determines and refresh week for current
Phase, the image that the needs drawn refresh;The image determined for the current refresh cycle was determined with for a upper refresh cycle
Image carry out pixel diversity ratio pair, obtain difference value;When the difference value is in preset threshold range, hardware is intercepted
The vsync signals that layer is sent, with forbid screen according to the vsync signals within the current refresh cycle to the image that refreshes of needs into
Row refreshes.Method provided by the invention, for the image that the current refresh cycle needs to refresh, by the image and a upper refresh cycle
It needs the image refreshed to carry out the diversity ratio pair of pixel, when comparing the difference value obtained in preset threshold range, intercepts
The vsync signals for triggering screen-refresh, to forbid screen to needing the image refreshed to refresh in the current refresh cycle, to
The refreshing frequency for reducing screen has saved the power consumption of terminal.
The present invention reduces the drafting of graphics processor, is believed by intercepting the vsync by adjusting drafting frame per second in real time
Number, reduce the refreshing frequency of screen, needs the frequency that the vsync signals of hardware layer transmission are set repeatedly in the prior art, come
Achieve the purpose that reduce power consumption, when the frequency of the vsync signals is arranged, needs to interact with hardware, there are certain
Delay, the embodiment of the present invention not only solve the problems, such as to reduce power consumption, it is thus also avoided that the problem of delay.
Certainly, it implements any of the products of the present invention and does not necessarily require achieving all the advantages described above at the same time.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of screen refresh method flow chart disclosed in the embodiment of the present application;
Fig. 2 is a kind of another method flow diagram of screen refresh method disclosed in the embodiment of the present application;
Fig. 3 is a kind of another method flow diagram of screen refresh method disclosed in the embodiment of the present application;
Fig. 4 is a kind of another method flow diagram of screen refresh method disclosed in the embodiment of the present application;
Fig. 5 is a kind of another method flow diagram of screen refresh method disclosed in the embodiment of the present application;
Fig. 6 is a kind of another method flow diagram of screen refresh method disclosed in the embodiment of the present application;
Fig. 7 is a kind of screen-refresh system structure diagram disclosed in the embodiment of the present application;
Fig. 8 is a kind of another structure diagram of screen-refresh system disclosed in the embodiment of the present application.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest range caused.
The present invention provides a kind of screen refresh method, the executive agent of the method can be the processor in terminal,
The flow chart of the method is as shown in Figure 1, include step:
S101, determining for current refresh cycle, image that the needs drawn refresh regular according to preset determination;
In the embodiment of the present invention, when entering the current refresh cycle, according to the rule of preset determination, acquisition passes through figure
The image that the needs that processor GPU is drawn refresh.The image for needing to refresh is generated according to the behavior of user.
S102, the image determined for the current refresh cycle is subjected to pixel with the image determined for a upper refresh cycle
Diversity ratio pair, obtain difference value;
In the embodiment of the present invention, by the image determined for the current refresh cycle and the figure for the determination of a upper refresh cycle
Each corresponding points as in carry out the diversity ratio pair of pixel, obtain difference value.The upper refresh cycle is and this refresh cycle
An adjacent upper refresh cycle.
S103, when the difference value is in preset threshold range, intercept hardware layer send with the current refreshing
Period corresponding vertical synchronization vsync signals, with forbid screen according to the vsync signals within the current refresh cycle to need
The image to be refreshed is refreshed.
In the embodiment of the present invention, when the difference value is in preset threshold range, intercept hardware layer send with institute
Corresponding vertical synchronization vsync signals of current refresh cycle are stated, to forbid screen to refresh currently according to the vsync signals
The image refreshed to needs in period refreshes.It is described to intercept the corresponding with the current refresh cycle of hardware layer transmission
Vertical synchronization vsync signals have following three kinds of forms:Difference value is first calculated, the comparison result according to difference value and preset threshold value
It determines the need for intercepting;Do not judge comparison result, all vsync signals are intercepted;Even if the vsync signals
It is successfully transmitted, forbids triggering screen-refresh operation.The vsync signals realize the triggering operated to screen-refresh.It is described default
Threshold range be that the visual experience of configuration requirement either user according to terminal sets or adjusts.
The present invention provides a kind of screen refresh method, including:According to preset determining rule, determines and refresh week for current
Phase, the image that the needs drawn refresh;The image determined for the current refresh cycle was determined with for a upper refresh cycle
Image carry out pixel diversity ratio pair, obtain difference value;When the difference value is in preset threshold range, hardware is intercepted
The vsync signals that layer is sent, with forbid screen according to the vsync signals within the current refresh cycle to the image that refreshes of needs into
Row refreshes.Method provided by the invention, for the image that the current refresh cycle needs to refresh, by the image and a upper refresh cycle
It needs the image refreshed to carry out the diversity ratio pair of pixel, when comparing the difference value obtained in preset threshold range, intercepts
The vsync signals for triggering screen-refresh, to forbid screen to needing the image refreshed to refresh in the current refresh cycle, to
The refreshing frequency for reducing screen has saved the power consumption of terminal.
In the embodiment of the present invention, the screen in the screen-refresh is not limited solely to mobile terminal, all equipped with screen
The terminal of curtain is suitable for this screen refresh method.
The present invention is, by adjusting drafting frame per second in real time, to reduce the drafting of graphics processor in embodiment, pass through interception
The vsync signals, reduce the refreshing frequency of screen, need the vsync letters that hardware layer transmission is arranged repeatedly in the prior art
Number frequency, when the frequency of the vsync signals is arranged, need to interact with hardware to achieve the purpose that reduce power consumption,
There are certain delay, the embodiment of the present invention not only solves the problems, such as to reduce power consumption, it is thus also avoided that the problem of delay.
In the embodiment of the present invention, by the image determined for the current refresh cycle and the figure for the determination of a upper refresh cycle
Diversity ratio pair as carrying out pixel, during obtaining difference value, since two images are the pixel structures by identical quantity
At array of pixels, therefore the final difference value that obtains not is a value, but difference identical with the array of pixels dimension
It is worth array.
In the embodiment of the present invention, when the difference value is in preset threshold range, intercept hardware layer send with institute
Corresponding vertical synchronization vsync signals of current refresh cycle are stated, to forbid screen to refresh currently according to the vsync signals
The process that the image refreshed to needs in period is refreshed includes following three kinds of situations, is walked described in S101 and S102 when first passing through
Suddenly after calculating difference value, the difference value is judged whether in preset threshold range, when the difference value is in preset threshold value
When in range, vertical synchronization vsync signals corresponding with current refresh cycle are just intercepted, to forbid described in screen foundation
The image that vsync signals refresh needs within the current refresh cycle refreshes;There is also a kind of situations, without the difference
The calculating of different value, first pair vertical synchronization vsync signals corresponding with current refresh cycle intercept, and are deposited into
In one specified data library, if when arriving difference value in preset threshold range, searching institute by S101 and S102 calculating
Specified data library is stated, vertical synchronization vsync signals corresponding with current refresh cycle is found, utilizes the vsync
Signal-inhibiting screen is to needing refreshed image to carry out refresh operation;Further include another situation, does not intercept hardware layer and send
The vsync signals, be successfully transmitted the vsync signals, but forbid vsync signals triggering screen-refresh operation.
Above-mentioned three kinds of realization methods are all contained in screen refresh method of the present invention.
In the embodiment of the present invention, it is described it is corresponding with the refresh cycle refer specifically to two kinds of periods, a kind of refreshing week for screen
Phase, in the triggering period of another vsync signals, above-mentioned screen refresh method may be implemented in two kinds of periods, but needs to protect
It is same to demonstrate,prove the refresh cycle all in S101, S102 and S103, otherwise can lead to the confusion of screen-refresh process.
In the embodiment of the present invention, above-mentioned screen refresh method, particular flow sheet is as shown in Fig. 2, further include step:
S204, when the difference value is not in preset threshold range, according to the vsync signals, trigger the screen
The image that curtain refreshes needs refreshes.
In the embodiment of the present invention, when the difference value is not in preset threshold range, obtain and the refresh cycle
Corresponding vsync signals trigger the image that the screen refreshes needs using the vsync signals and refresh.
In the embodiment of the present invention, described draw is directed to the current refresh cycle, the image refreshed is needed, as shown in Fig. 2, including
Step:
S301, operation behavior of the active user to terminal is determined;
In the embodiment of the present invention, the operation behavior of the user can be slide up and down screen, horizontally slip screen or
Start three kinds of application program.
S302, according to the operation behavior, adjust the drafting frame per second of the terminal;
In the embodiment of the present invention, if the user's operation is when sliding up and down screen, when will detect the user's operation
When to slide up and down screen, the concrete operations slided up and down can be browsing webpage etc., be passed by the speed that terminal carries
Acquired sliding speed value is stored in speed array by sensor, the speed that user in real slides up and down successively, by dividing
The variation tendency for sliding up and down speed in the speed array is analysed, adjusts the drafting frame per second, the adjustment Fang Shike is with for tune
Drafting frame per second that is high or turning down terminal, but under normal conditions, faster screen-refresh is usually required that due to sliding up and down screen
Number, therefore be usually taken and the measure for drawing frame per second is turned up, to meet the operation for needing frequently to refresh screen.
In the embodiment of the present invention, if the user's operation is to horizontally slip screen, when detecting that the user's operation is a left side
When right sliding screen, described horizontally slip operation usually browsing pictures, e-book etc. relatively need not very frequent screen brushes
New number generally selects the drafting frame per second for reducing terminal.
In the embodiment of the present invention, for screen or so and corresponding following specific example is slided up and down, the current of certain terminal is painted
Frame per second processed is 60, and it is a fixed value to draw frame per second under normal conditions, for characterizing the rate of screen-refresh, it is generally the case that
In order to reach best user experience, the relatively high of frame per second setting can be drawn by described, but no more than the brush of display video card
New rate.When user is to the browsing that the operation of the mobile terminal is by the screen completion picture that horizontally slips, the variation of the page
It is smaller, in order to achieve the purpose that reduce power consumption, the drafting frame per second can be reduced to 30 or other draftings for meeting the requirements
Frame rate value monitors the operation behavior of user, if the operation behavior of user has by horizontally slipping in real time in current operation process
Browsing pictures or for human-computer interaction it is less even without the case where human-computer interaction when, be adjusted to by sliding up and down browsing net
Page, browses the operation of webpage, needs constantly to refresh screen, therefore, it is necessary to which current drafting frame per second is turned up, for example, can be turned up
To 50 or higher level, the principle of adjusting is subject to the user experience for reaching best, and above-mentioned adjustment process recycles past
It is multiple.The adjustment process is the process adjusted in real time.All adjustment for drafting frame per second specifically operate row by user
To determine.
In the embodiment of the present invention, if the user's operation behavior starts application program, the specific method that executes is as inscribed 4 institutes
Show, including step:
S401, enabled instruction of the user to application program is received;
In the embodiment of the present invention, the continuous transmitting terminal for scanning application start instruction, when receiving user to application
The enabled instruction of program stops scanning, when the application program is out of service, is again started up scanning process.The startup refers to
Order is clicked by user or is generated when calling the application program.
The process number of application program corresponding to S402, the acquisition enabled instruction;
In the embodiment of the present invention, when receiving the enabled instruction of the application program, obtains and generate the enabled instruction
Application program process number, the process number is a specific mark for the application program, has uniqueness,
One application program corresponds to an independent process number, and a same application program also corresponds to a unique enabled instruction.
S403, the maps files that the application program is obtained according to the process number;
In the embodiment of the present invention, the position that mark file all in the application program is positioned by the process number is believed
Breath, maps files are found in the mark document location.The maps files, it includes the application features information to be
Identify file.
S404, the traversal maps files, obtain the dynamic library file of the application program;
The present invention is to search the maps files in embodiment, obtains the characteristic value comprising the application program or spy
Sign parameter etc. can represent the dynamic library file of the Application Type.
S405, the dynamic library file is matched with preset game engine dynamic library file, if matching, determination is worked as
Preceding user is to start game class application program to the operation behavior of terminal;
In the embodiment of the present invention, the dynamic base and the preset game engine dynamic base are compared, if matching, determined
Active user is to start game class application program to the operation behavior of terminal.In the preset game engine dynamic library file,
Include the characteristic value or characteristic parameter of all energy game representation classifications.
In the embodiment of the present invention, if user is to start game class application program to the operation of terminal, in order to ensure game
Operation is smooth, needs the drafting frame per second being adjusted to peak.
In the embodiment of the present invention, the mainstream game 90% through investigating in society is all based on game engine exploitation, main
Game engine is cocos2d, unity3d etc., and the dynamic base of these game engines can be included in the code structure of game application,
The embodiment of the present invention is exactly by detecting the dynamic base in game engine to determine whether being to start game application.
In the embodiment of the present invention, further include when the terminal carry out video playing when, in order to reach best result of broadcast,
It is also required to the drafting frame per second being adjusted to peak.
S303, the image refreshed is needed to be drawn the current refresh cycle by the drafting frame per second being adjusted.
In the embodiment of the present invention, the drafting frame per second using graphics processor GPU according to the adjustment, to currently refreshing week
Phase needs the image refreshed to be drawn.
It is described to determine the image determined for the current refresh cycle with for a upper refresh cycle in the embodiment of the present invention
Image carry out pixel diversity ratio pair, obtain difference value, as shown in figure 5, include step:
S501, the pixel in the second corresponding image of each pixel in the first image is subjected to pixel
Match;
In the embodiment of the present invention, by corresponding pixel in the second corresponding image of each pixel in the first image
Point carries out pixel matching.By calculating the function of pixel value in the terminal handler, to described first image and described second
The pixel value of all the points is calculated in image, and matches the pixel value of corresponding points, and the matching refers to compares respective pixel successively
The variance rate of point, if variance rate is in the given preset threshold range, then it is assumed that matching.Described first image be for
Image determined by the current refresh cycle, second image were for image determined by a upper refresh cycle.It is described default
Threshold range refer to determining the preset threshold range jointly according to the resolution ratio and user experience of the terminal.
S502, the quantity for determining the pixel for meeting matching condition in described first image;
In the embodiment of the present invention, record meets the number of the pixel of matching relationship successively.
S503, picture total in the quantity and described first image of the pixel of matching condition will be met in described first image
The ratio of the quantity of vegetarian refreshments, as the difference value;
In the embodiment of the present invention, the number and described first image of the pixel for meeting relationship in described first image are calculated
The ratio of the number of total pixel, as pixel difference value.
In the embodiment of the present invention, the vertical synchronization corresponding with current refresh cycle for intercepting hardware layer and sending
Vsync signals are as shown in fig. 6, include step:
S601, preset interception function is called;
In the embodiment of the present invention, when needing to intercept operation, the preset interception in the terminal handler is directly invoked
Function.
S602, using the interception function, intercept hardware layer send it is corresponding vertical with the current refresh cycle
Synchronous vsync signals
In the embodiment of the present invention, using the interception function, the current refreshing of hardware layer transmission described in real time scan
Period corresponding vertical synchronization vsync signals, and if it exists, directly intercept the vsync signals.
Corresponding with a kind of screen refresh method described in Fig. 1, the embodiment of the present invention additionally provides a kind of screen-refresh
System, structure diagram as shown in fig. 7, comprises:
Determination unit 701, comparison unit 702, interception unit 703.
Wherein:
The determination unit 701, for according to preset determining rule, determining and being directed to the current refresh cycle, drawn
Need the image refreshed;
It is drawn in the embodiment of the present invention, described in the determination unit in the screen-refresh system and is directed to current brush
In the new period, the image refreshed is needed to include:Determine operation behavior of the active user to terminal;According to the operation behavior, adjustment
The drafting frame per second of the terminal;By the drafting frame per second being adjusted, to the current refresh cycle, the image refreshed is needed to carry out
Draw three steps.
In the embodiment of the present invention.The determining active user includes to the operation behavior of terminal:User is received to applying journey
The enabled instruction of sequence;Obtain the process number of the application program corresponding to the enabled instruction;Described in process number acquisition
The maps files of application program;The maps files are traversed, the dynamic library file of the application program is obtained;By the dynamic base
File is matched with preset game engine dynamic library file, if matching, determines that active user is to the operation behavior of terminal
Start game class application program.Five steps.
The comparison unit 702, for will be directed to the current refresh cycle determine image be directed to a upper refresh cycle it is true
Fixed image carries out the diversity ratio pair of pixel, obtains difference value;
The interception unit 703, for when the difference value is in preset threshold range, intercepting what hardware layer was sent
Vertical synchronization vsync signals corresponding with current refresh cycle, to forbid screen according to the vsync signals current
The image refreshed to needs in refresh cycle refreshes.
The present invention provides a kind of screen-refresh system, including:According to preset determining rule, determines and refresh week for current
Phase, the image that the needs drawn refresh;The image determined for the current refresh cycle was determined with for a upper refresh cycle
Image carry out pixel diversity ratio pair, obtain difference value;When the difference value is in preset threshold range, hardware is intercepted
The vsync signals that layer is sent, with forbid screen according to the vsync signals within the current refresh cycle to the image that refreshes of needs into
Row refreshes.Method provided by the invention, for the image that the current refresh cycle needs to refresh, by the image and a upper refresh cycle
It needs the image refreshed to carry out the diversity ratio pair of pixel, when comparing the difference value obtained in preset threshold range, intercepts
The vsync signals for triggering screen-refresh, to forbid screen to needing the image refreshed to refresh in the current refresh cycle, to
The refreshing frequency for reducing screen has saved the power consumption of terminal.
It should be noted that the screen-refresh system, is a complete system, can be used alone can also be with it
Its system is used cooperatively.
On the basis of Fig. 7, with reference to figure 8, Fig. 8 shows the another structure diagram of system provided in an embodiment of the present invention,
The screen-refresh system further includes:
Trigger element 704, for when the difference value is not in preset threshold range, according to the vsync signals,
The image that the screen refreshes needs is triggered to refresh.
On the basis of Fig. 7, with reference to figure 8, Fig. 8 shows the another structure diagram of system provided in an embodiment of the present invention,
The comparison unit, including:
Coupling subelement 705, determination subelement 706, comparing subunit 707.
Wherein:
The coupling subelement 705, being used for will be in the second corresponding image of each pixel in the first image
Pixel carries out pixel matching;
The determination subelement 706, the quantity for determining the pixel for meeting matching condition in described first image;
The comparing subunit 707, for quantity and the institute of the pixel of matching condition will to be met in described first image
The ratio for stating the quantity of pixel total in the first image, as the difference value.
On the basis of Fig. 7, with reference to figure 8, Fig. 8 shows the another structure diagram of system provided in an embodiment of the present invention,
The interception unit, including
It calls subelement 708 and intercepts subelement 709.
Wherein:
The calling subelement, for calling preset interception function;
The interception subelement intercepts all with the current refreshing of hardware layer transmission for applying the interception function
Phase corresponding vertical synchronization vsync signals.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight
Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so fairly simple, the related place ginseng of description
See the part explanation of embodiment of the method.
Finally, it is to be noted that, in this application, relational terms such as first and second and the like are used merely to
It distinguishes one entity or operation from another entity or operation, without necessarily requiring or implying these entities or behaviour
There are any actual relationship or orders between work.Moreover, the terms "include", "comprise" or its any other variant
It is intended to non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only
Those elements, but also include other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of person's equipment.In the absence of more restrictions, the element limited by sentence "including a ...", not
There is also other identical elements in the process, method, article or apparatus that includes the element for exclusion.
The foregoing description of the disclosed embodiments enables those skilled in the art to realize or use the present invention.To this
A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can
Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited
It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest
Range.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of screen refresh method, which is characterized in that including:
According to preset determining rule, determines and be directed to current refresh cycle, the image that the needs drawn refresh;
The image determined for the current refresh cycle is carried out to the diversity ratio of pixel with the image determined for a upper refresh cycle
It is right, obtain difference value;
When the difference value is in preset threshold range, the corresponding with the current refresh cycle of hardware layer transmission is intercepted
Vertical synchronization vsync signals, with forbid screen according to the vsync signals within the current refresh cycle to the figure that refreshes of needs
As being refreshed.
2. according to the method described in claim 1, it is characterized in that, further including:
When the difference value is not in preset threshold range, according to the vsync signals, the screen is triggered to needing to brush
New image is refreshed.
3. according to the method described in claim 1, it is characterized in that, described draw is directed to the current refresh cycle, need to refresh
Image includes:
Determine operation behavior of the active user to terminal;
According to the operation behavior, the drafting frame per second of the terminal is adjusted;
The image refreshed is needed to be drawn the current refresh cycle by the drafting frame per second being adjusted.
4. according to the method described in claim 3, it is characterized in that, the determining active user is to the operation behavior packet of terminal
It includes:
Receive enabled instruction of the user to application program;
Obtain the process number of the application program corresponding to the enabled instruction;
The maps files of the application program are obtained according to the process number;
The maps files are traversed, the dynamic library file of the application program is obtained;
The dynamic library file is matched with preset game engine dynamic library file, if matching, determines active user couple
The operation behavior of terminal is to start game class application program.
5. according to the method described in claim 1, it is characterized in that, the image and needle that will be determined for the current refresh cycle
The diversity ratio pair that pixel was carried out to the image that a upper refresh cycle determines, obtaining difference value includes:
Pixel in the second corresponding image of each pixel in first image is subjected to pixel matching;
Determine the quantity for the pixel for meeting matching condition in described first image;
The number of total pixel in the quantity and described first image of the pixel of matching condition will be met in described first image
The ratio of amount, as the difference value;
Described first image is for image determined by the current refresh cycle;
Second image was for image determined by a upper refresh cycle.
6. according to the method described in claim 1, it is characterized in that, described intercept all with the current refreshing of hardware layer transmission
Phase, corresponding vertical synchronization vsync signals included:
Call preset interception function;
Using the interception function, the vertical synchronization vsync corresponding with current refresh cycle that intercepts that hardware layer sends
Signal.
7. a kind of screen-refresh system, which is characterized in that including:
Determination unit, for according to preset determining rule, determining and being directed to current refresh cycle, the figure that the needs drawn refresh
Picture;
Comparison unit is carried out for that will be directed to the image that the current refresh cycle determines with the image determined for a upper refresh cycle
The diversity ratio pair of pixel obtains difference value;
Interception unit, for when the difference value is in preset threshold range, intercept that hardware layer sends with it is described current
Refresh cycle corresponding vertical synchronization vsync signals, to forbid screen according to the vsync signals within the current refresh cycle
The image refreshed to needs refreshes.
8. system according to claim 7, which is characterized in that further include:
Trigger element, for when the difference value is not in preset threshold range, according to the vsync signals, triggering institute
The image that screen refreshes needs is stated to refresh.
9. system according to claim 7, which is characterized in that the comparison unit includes:
Coupling subelement, for the pixel in the second corresponding image of each pixel in the first image to be carried out picture
Element matching;
Determination subelement, the quantity for determining the pixel for meeting matching condition in described first image;
Comparing subunit, for will be in the quantity and described first image that meet the pixel of matching condition in described first image
The ratio of the quantity of total pixel, as the difference value;
Described first image is for image determined by the current refresh cycle;
Second image was for image determined by a upper refresh cycle.
10. system according to claim 7, which is characterized in that the interception unit includes:
Subelement is called, for calling preset interception function;
Subelement is intercepted, for applying the interception function, intercepts the corresponding with the current refresh cycle of hardware layer transmission
Vertical synchronization vsync signals.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710179395.XA CN108628562A (en) | 2017-03-23 | 2017-03-23 | A kind of screen refresh method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710179395.XA CN108628562A (en) | 2017-03-23 | 2017-03-23 | A kind of screen refresh method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108628562A true CN108628562A (en) | 2018-10-09 |
Family
ID=63707308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710179395.XA Pending CN108628562A (en) | 2017-03-23 | 2017-03-23 | A kind of screen refresh method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108628562A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110708587A (en) * | 2019-09-29 | 2020-01-17 | 南阳柯丽尔科技有限公司 | Window image refreshing frequency determining method and device, computer equipment and medium |
WO2020211029A1 (en) * | 2019-04-18 | 2020-10-22 | 深圳市柔宇科技有限公司 | Note redrawing method, writing device, and storage medium |
CN112256223A (en) * | 2020-10-20 | 2021-01-22 | 北京字节跳动网络技术有限公司 | Display fluency adjusting method and device and electronic equipment |
CN113050906A (en) * | 2019-12-26 | 2021-06-29 | 深圳市万普拉斯科技有限公司 | Frame rate adjusting method and device of display screen, terminal and storage medium |
CN113254137A (en) * | 2021-06-08 | 2021-08-13 | Tcl通讯(宁波)有限公司 | Dynamic image display method and device, storage medium and mobile terminal |
WO2022199509A1 (en) * | 2021-03-24 | 2022-09-29 | 华为技术有限公司 | Method for application performing drawing operation, and electronic device |
US11862125B2 (en) | 2020-08-04 | 2024-01-02 | Samsung Electronics Co., Ltd. | Electronic device comprising display, and operation method thereof |
US11893956B2 (en) | 2020-08-04 | 2024-02-06 | Samsung Electronics Co., Ltd. | Electronic device comprising display and operation method thereof |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1116756A (en) * | 1994-02-25 | 1996-02-14 | 株式会社半导体能源研究所 | Active matrix type electro-optical device and method of driving the same |
CN102024432A (en) * | 2009-09-22 | 2011-04-20 | 华映视讯(吴江)有限公司 | Display driving device and method |
CN104933983A (en) * | 2015-07-17 | 2015-09-23 | 京东方科技集团股份有限公司 | Method and system for reducing power consumption of mobile terminal |
CN105117191A (en) * | 2015-09-08 | 2015-12-02 | 广东欧珀移动通信有限公司 | Method and apparatus for controlling display of mobile terminal |
CN105448225A (en) * | 2016-01-05 | 2016-03-30 | 京东方科技集团股份有限公司 | Method and apparatus for adjusting screen refreshing frequency, and display |
CN105867576A (en) * | 2015-11-24 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Method for prolonging battery life of terminal device and terminal device |
CN105917290A (en) * | 2014-01-17 | 2016-08-31 | 三星电子株式会社 | Frame rate control method and electronic device thereof |
-
2017
- 2017-03-23 CN CN201710179395.XA patent/CN108628562A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1116756A (en) * | 1994-02-25 | 1996-02-14 | 株式会社半导体能源研究所 | Active matrix type electro-optical device and method of driving the same |
CN102024432A (en) * | 2009-09-22 | 2011-04-20 | 华映视讯(吴江)有限公司 | Display driving device and method |
CN105917290A (en) * | 2014-01-17 | 2016-08-31 | 三星电子株式会社 | Frame rate control method and electronic device thereof |
CN104933983A (en) * | 2015-07-17 | 2015-09-23 | 京东方科技集团股份有限公司 | Method and system for reducing power consumption of mobile terminal |
CN105117191A (en) * | 2015-09-08 | 2015-12-02 | 广东欧珀移动通信有限公司 | Method and apparatus for controlling display of mobile terminal |
CN105867576A (en) * | 2015-11-24 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Method for prolonging battery life of terminal device and terminal device |
CN105448225A (en) * | 2016-01-05 | 2016-03-30 | 京东方科技集团股份有限公司 | Method and apparatus for adjusting screen refreshing frequency, and display |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113330412A (en) * | 2019-04-18 | 2021-08-31 | 深圳市柔宇科技股份有限公司 | Method for redrawing notes, writing equipment and storage medium |
WO2020211029A1 (en) * | 2019-04-18 | 2020-10-22 | 深圳市柔宇科技有限公司 | Note redrawing method, writing device, and storage medium |
CN110708587B (en) * | 2019-09-29 | 2021-11-12 | 南阳柯丽尔科技有限公司 | Window image refreshing frequency determining method and device, computer equipment and medium |
CN110708587A (en) * | 2019-09-29 | 2020-01-17 | 南阳柯丽尔科技有限公司 | Window image refreshing frequency determining method and device, computer equipment and medium |
CN113050906A (en) * | 2019-12-26 | 2021-06-29 | 深圳市万普拉斯科技有限公司 | Frame rate adjusting method and device of display screen, terminal and storage medium |
WO2021129415A1 (en) * | 2019-12-26 | 2021-07-01 | 深圳市万普拉斯科技有限公司 | Frame rate adjusting method and apparatus for display screen, terminal, and storage medium |
US11942062B2 (en) | 2019-12-26 | 2024-03-26 | Oneplus Technology (Shenzhen) Co., Ltd. | Frame rate adjusting method and apparatus for display screen, terminal, and storage medium |
CN113050906B (en) * | 2019-12-26 | 2024-05-07 | 深圳市万普拉斯科技有限公司 | Frame rate adjustment method and device for display screen, terminal and storage medium |
US11862125B2 (en) | 2020-08-04 | 2024-01-02 | Samsung Electronics Co., Ltd. | Electronic device comprising display, and operation method thereof |
US11893956B2 (en) | 2020-08-04 | 2024-02-06 | Samsung Electronics Co., Ltd. | Electronic device comprising display and operation method thereof |
CN112256223A (en) * | 2020-10-20 | 2021-01-22 | 北京字节跳动网络技术有限公司 | Display fluency adjusting method and device and electronic equipment |
CN112256223B (en) * | 2020-10-20 | 2024-04-19 | 北京字节跳动网络技术有限公司 | Method and device for adjusting display fluency and electronic equipment |
WO2022199509A1 (en) * | 2021-03-24 | 2022-09-29 | 华为技术有限公司 | Method for application performing drawing operation, and electronic device |
CN113254137A (en) * | 2021-06-08 | 2021-08-13 | Tcl通讯(宁波)有限公司 | Dynamic image display method and device, storage medium and mobile terminal |
CN113254137B (en) * | 2021-06-08 | 2023-03-14 | Tcl通讯(宁波)有限公司 | Dynamic image display method and device, storage medium and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108628562A (en) | A kind of screen refresh method and system | |
WO2020155785A1 (en) | Screen adaptive display method, electronic device and computer storage medium | |
CN103970894B (en) | The method and system that the interface streaming layout of self-adaptative adjustment shows | |
CN105549845B (en) | A kind of continuous screenshot method of page based on mobile terminal, system and mobile terminal | |
US20150026587A1 (en) | System and Method for Displaying Objects in a User Interface Based on a Visual Acuity of a Viewer | |
EP2879044B1 (en) | Information processing apparatus, program, information processing system, and information processing method | |
CN103248946B (en) | The method and system that a kind of video image quickly transmits | |
WO2006041987B1 (en) | Techniques for displaying digital images on a display | |
CN109817181B (en) | Display driving method and mobile terminal | |
CN104461442A (en) | Regional display method for flexible screen and terminal device | |
US20220141690A1 (en) | Transmission method and communication device | |
EP2418569A1 (en) | Information input device and information input method | |
US20170038912A1 (en) | Information providing device | |
CN101662611A (en) | Template display method in video conference system | |
WO2021258938A1 (en) | Live broadcast message display method and apparatus | |
US20050223343A1 (en) | Cursor controlled shared display area | |
CN102164166B (en) | Method and system for remote-control sector transmission | |
CN105843485B (en) | The method and device that the page is shown | |
CN103593046B (en) | Information processor, projection arrangement, information processing method and projecting method | |
JP5563703B2 (en) | Content distribution apparatus, content distribution method, content distribution program, and terminal program | |
WO2014079043A1 (en) | Method and device for realizing remote browsing | |
CN106708495B (en) | Page display method and device based on mobile terminal | |
JP6339550B2 (en) | Terminal program, terminal device, and terminal control method | |
CN106249919A (en) | Electronic ink screen triggers ghost and eliminates the method refreshed | |
WO2017198092A1 (en) | Touch feedback method and apparatus, and terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181009 |