CN105528217A - Partial refreshing method and device based on display list - Google Patents

Partial refreshing method and device based on display list Download PDF

Info

Publication number
CN105528217A
CN105528217A CN201510983331.6A CN201510983331A CN105528217A CN 105528217 A CN105528217 A CN 105528217A CN 201510983331 A CN201510983331 A CN 201510983331A CN 105528217 A CN105528217 A CN 105528217A
Authority
CN
China
Prior art keywords
district
display object
screen
redraw
redraws
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
Application number
CN201510983331.6A
Other languages
Chinese (zh)
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.)
Beijing Egression Epoch Information Technology Co Ltd
Original Assignee
Beijing Egression Epoch Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Egression Epoch Information Technology Co Ltd filed Critical Beijing Egression Epoch Information Technology Co Ltd
Priority to CN201510983331.6A priority Critical patent/CN105528217A/en
Publication of CN105528217A publication Critical patent/CN105528217A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a partial refreshing method and device based on a display list, relating to a screen refreshing technology. The method comprises the following steps: determining a screen rectangle of each display object on a screen as a first redrawing area according to attributes of the display object and a parent display object in the display list; detecting whether each display object on the screen changes or not; when detecting that the display object changes, redetermining the corresponding screen rectangle of the display object on the screen as a second redrawing area according to the attributes of the display object that has been changed and the parent display object thereof; emptying the first redrawing area and the second redrawing area, and redrawing the display object that has been changed to the second redrawing area. According to the method and the device disclosed by the invention, the screen is partially refreshed, so that the computing performance of equipment can be remarkably improved and the electricity consumption of the equipment is reduced.

Description

A kind of Local hydrodynamic unit method based on display list and device
Technical field
The present invention relates to screen-refresh technology, particularly a kind of Local hydrodynamic unit method based on display list and device.
Background technology
No matter in application software or games, it is a vital link that screen presents always, and its allows computing machine to present image to user, in this, as the basis of interactive operation.Different from video display process, the order carousel of video playback just a series of static images usually, and the graphic interface presented in software or game, normally generated according to a large amount of display element permutation and combination in real time by computing machine.Under normal circumstances, manage a large amount of display element, and by correct order and these display elements of position display, the performance that meeting consumption calculations machine is a large amount of.
At present, a large amount of programming language both provides the method for various management display element, ActionScript3.0 language wherein in AdobeFlashPlayer, propose one and be called the data structure of " display list " for managing display element, tree structure based on display list operates display element, meet very much nature use habit, a large amount of display element can be organized efficiently.Developer only needs programming to allow display element organize according to display list mode, and the interface that AdobeFlashPlayer just can be represented presents.Developer does not stop element position or the level of revising display list, and screen presents result and also can refresh immediately thereupon.
Play and application for the HTML5 in recent years risen, HTML5 game or application framework all have employed the screen presentation mode of this display list in AdobeFlashPlayer, and are all the display list presentation mode simply employing " full frame refreshing ".The display list presentation mode of " full frame refreshing " goes to empty whole screen according to fixed frequency per second (such as 60 times), again reads whole display list, be plotted on screen by each display element in order.
Under normal circumstances, only have part display element to change in whole display list, all refresh whole screen at every turn, unnecessary expense can be brought, directly cause the picture of game or application not smooth, too increase electricity consumption of equipment amount simultaneously.
Summary of the invention
The object of the present invention is to provide a kind of Local hydrodynamic unit method based on display list and device, " full frame refreshing " problem that mode performance cost is large can be solved better.
According to an aspect of the present invention, provide a kind of Local hydrodynamic unit method based on display list, comprising:
According to the attribute of the display object in display list and parent display object, determine the screen rectangle of each display object on screen, redraw district as first;
Whether each display object detected on screen changes;
When detecting that display object changes, according to the attribute of the described display object that changed and parent display object thereof, redefining the screen rectangle that described display object is corresponding on screen, redrawing district as second;
Redraw district and described second to redraw district empty described first, and the described display object changed is redrawn to described second redraw district.
Preferably, the attribute of each display object comprises self information converting and own form information.
Preferably, the described attribute according to the display object in display list and parent display object, determine the screen rectangle of each display object on screen, comprise as the first step redrawing district:
According to self information converting of each display object and self information converting of all parent display object thereof, obtain the screen transitions information that each display object corresponds to screen;
Correspond to screen transitions information and the own form information of screen according to described each display object, determine the screen rectangle of described each display object on screen.
Preferably, the attribute of the display object changed described in described basis and parent display object thereof, redefines the screen rectangle that described display object is corresponding on screen, comprises as the second step redrawing district:
According to self information converting of the described display object changed and self information converting of all parent display object thereof, the display object changed described in obtaining corresponds to the screen transitions information of screen;
Screen transitions information and the own form information of screen is corresponded to, the screen rectangle of the display object changed described in determining on screen according to the described display object changed.
Preferably, redraw district and empty redrawing district and described second by described first, and the described display object changed is redrawn to described second redraw the step in district after, also comprise:
Utilize the attribute of each display object, search its screen rectangle and described first respectively and redraw district and/or described second and redraw the crossing display object in district, and repaint found display object.
Preferably, also comprise:
First of the display object changed on screen redraws district and second and redraws in district, if two redraw district merge after area be less than and merge the first two and redraw the area sum in district, then described two are redrawn district and merge, form merging and redraw district;
Redraw district to each obtaining after the merging treatment on screen to empty, and redraw in district in described merging, redraw corresponding display object.
Preferably, also comprise:
Redraw in district if first of the display object changed on screen redraws district and second, if two redraw district merge after area be not less than and merge the first two and redraw the area sum in district, and the quantity redrawing district is greater than predetermined number, then according to preset strategy, the district that redraws on screen is carried out merging treatment, until the district's quantity that redraws after merging treatment is not more than described predetermined number;
Redraw district to each obtaining after the merging treatment on screen to empty, and redraw in district in described merging, redraw corresponding display object.
Preferably, also comprise:
Judge the rectangular area of display object that do not change whether with obtain after merging treatment each to redraw district crossing, if crossing, then redraw the display object that described crossing rectangular area is corresponding.
According to a further aspect in the invention, provide a kind of Local hydrodynamic unit device based on display list, comprising:
Whether detection module, change for each display object detected on screen;
Redraw district's computing module, for the attribute according to the display object in display list and parent display object, determine the screen rectangle of each display object on screen, district is redrawn as first, and when detecting that display object changes, according to the attribute of the described display object that changed and parent display object thereof, redefine the screen rectangle that described display object is corresponding on screen, redraw district as second;
Redraw module, redraw district empty for redrawing district and described second by described first, and the described display object changed is redrawn to described second redraw district.
Preferably, the described district's computing module that redraws also redraws district and second redraw redrawing in district to search and crossing redrawing district of district for comprising first on screen, and the found district that redraws of intersecting is carried out merging treatment, form merging and redraw district, district is redrawn to each obtaining after the merging treatment on screen empty for the described module that redraws, and redraw in district in described merging, redraw corresponding display object.
Preferably, the described district's computing module that redraws also finds crossing redraw district for the Qu Zhongwei that redraws on screen, and the quantity redrawing district is when being greater than predetermined number, according to preset strategy, the district that redraws on screen is carried out merging treatment, until the district's quantity that redraws after merging treatment is not more than described predetermined number so that described in redraw module and district is redrawn to each obtaining after the merging treatment on screen empty, and redraw in district in described merging, redraw corresponding display object.
Compared with prior art, beneficial effect of the present invention is:
The present invention, by carrying out Local hydrodynamic unit to screen, can significantly improve the calculated performance of equipment, reduces the power consumption of equipment.
Accompanying drawing explanation
Fig. 1 is the Local hydrodynamic unit method block diagram based on display list that the embodiment of the present invention provides;
Fig. 2 is the Local hydrodynamic unit device block diagram based on display list that the embodiment of the present invention provides;
Fig. 3 is the display list structural representation that the embodiment of the present invention provides;
Fig. 4 is the schematic diagram of the rectangular area of determination display object on screen that the embodiment of the present invention provides;
Fig. 5 is the schematic diagram that acquisition that the embodiment of the present invention provides redraws district;
Fig. 6 is the schematic diagram that merging that the embodiment of the present invention provides redraws district;
Fig. 7 is the decompress(ion) schematic diagram of the Local hydrodynamic unit software that the embodiment of the present invention provides;
Fig. 8 is the safety warning schematic diagram of the Local hydrodynamic unit software that the embodiment of the present invention provides;
Fig. 9 is the installation interface schematic diagram of the Local hydrodynamic unit software that the embodiment of the present invention provides;
Figure 10 is the scheme of installation of the Local hydrodynamic unit software that the embodiment of the present invention provides
Figure 11 is the installation schematic diagram of the Local hydrodynamic unit software that the embodiment of the present invention provides;
Figure 12 is the engine management interface schematic diagram that the embodiment of the present invention provides;
Figure 13 is the schematic diagram of the establishment project that the embodiment of the present invention provides;
Figure 14 is the amendment schematic diagram of the index.html file that the embodiment of the present invention provides;
Figure 15 is the order line serial ports input schematic diagram that the embodiment of the present invention provides;
Figure 16 is the browser display content schematic diagram that the embodiment of the present invention provides.
Embodiment
Below in conjunction with accompanying drawing to a preferred embodiment of the present invention will be described in detail, should be appreciated that following illustrated preferred embodiment is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Fig. 1 is the Local hydrodynamic unit method block diagram based on display list that the embodiment of the present invention provides, and as shown in Figure 1, step comprises:
Step S101: according to the attribute of the display object in display list and parent display object, determine the screen rectangle of each display object on screen, redraw district as first.
Wherein, the attribute of each display object comprises self information converting (i.e. self matrix) and own form information (i.e. self rectangle).
Step S101 comprises: according to self information converting of each display object and self information converting of all parent display object thereof, obtain the screen transitions information that each display object corresponds to screen, and screen transitions information and the own form information of screen is corresponded to according to each display object, determine the screen rectangle of each display object on screen.
Specifically, by self matrix multiple of self matrix of each display object and all parent display object thereof, obtain the screen matrix that each display object corresponds to screen, namely obtain the information converting such as position, transparency, convergent-divergent of each display object relative to screen.Then utilize obtain the information converting such as position, transparency, convergent-divergent of each display object relative to screen, self rectangle of each display object is converted, obtains the screen rectangle of each display object on screen, redraw district as first.
Step S102: whether each display object detected on screen changes.
Step S103: when detecting that display object changes, according to the attribute of the display object changed and parent display object thereof, redefines the screen rectangle that display object is corresponding on screen, redraws district as second.
Step S103 specifically comprises: according to self information converting of the display object changed and self information converting of all parent display object thereof, the display object changed corresponds to the screen transitions information of screen, and screen transitions information and the own form information of screen is corresponded to according to the display object changed, determine the screen rectangle of display object on screen changed.
The account form that second account form and first redrawing district redraws district is identical, does not repeat them here.
Step S104: redraw district and second by first and redraw district and empty, and the display object changed is redrawn to second redraw district.
During concrete operations, can carry out redrawing operation according to following several mode:
Mode 1: each display object changed is redrawn to it and second redraw district.
Such as, there are 5 display object changed, calculate first of these 5 display object respectively and redraw district and second and redraw district, and redrawing to respectively of these 5 display object respective emptied second is redrawn district.
Further, for mode 1, to redrawing after district repaints the display object changed accordingly, also need the attribute utilizing each display object do not changed, search its screen rectangle and first respectively to redraw district and/or second and redraw the crossing display object do not changed in district, and repaint found display object.
Such as, display object 1 changes, display object 1 is redrawn to its second redraw district after, the screen matrix of the display object 2 do not changed and first of display object 1 is found to redraw district crossing, now, redraw display object 2, redraw to second of display object 2 by display object 2 and redraw district.
Mode 2: the district that redraws of intersecting is merged, then redraws.
That is, first of the display object changed on screen redraws district and second and redraws in district, if two redraw district merge after area be less than and merge the first two and redraw the area sum in district, then described two are redrawn district and merge, form merging and redraw district; Then redraw district to each obtaining after the merging treatment on screen to empty, and redraw in district in merging, redraw corresponding display object.It should be noted that, preferentially can merge and redraw district and intersect maximum two of area and redraw district.
Mode 3: do not intersect redraw district too much time, force merging redraw district, then redraw.
That is, redraw in district if first of the display object changed on screen redraws district and second, if two redraw district merge after area be not less than and merge the first two and redraw the area sum in district, and the quantity redrawing district is greater than predetermined number (such as 2,3,4 etc.), then according to preset strategy, the district that redraws on screen is carried out merging treatment, until the district's quantity that redraws after merging treatment is not more than described predetermined number; Then redraw district to each obtaining after the merging treatment on screen to empty, and redraw in district in merging, redraw corresponding display object.It should be noted that, preferentially can merge minimum two of area recruitment and redraw district.
Further, for mode 2 and mode 3, judge the rectangular area of display object that do not change whether with obtain after merging treatment each to redraw district crossing, if crossing, then redraw the display object that described crossing rectangular area is corresponding.
Such as, there are 5 display object changed, calculate first of these 5 display object respectively and redraw district and second and redraw district, obtain 10 and redraw district.Now, in the manner described above 2 and/or mode 3 redraw district by these 10 and carry out merging treatment, obtain 3 merging and redraw district, and empty 3 merging and redraw district, again to redraw district 3 merging the repainting display object changed accordingly.Then, judge that whether the rectangular area of display object that do not change redraws district with these 3 merging crossing, if the display object do not changed 6 merges with at least one, to redraw district crossing, then redraw display object 6.
Relative to mode 1, mode 2 and mode 3 effectively can reduce and redraw expense.
Fig. 2 is the Local hydrodynamic unit device block diagram based on display list that the embodiment of the present invention provides, and as shown in Figure 2, comprises detection module, redraws district's computing module and redraw module.
Whether detection module changes for each display object detected on screen, and such as, whether the attribute detecting each display object changes.
Redraw district's computing module for the attribute according to the display object in display list and parent display object, determine the screen rectangle of each display object on screen, district is redrawn as first, and when detecting that display object changes, according to the attribute of the display object changed and parent display object thereof, redefine the screen rectangle that display object is corresponding on screen, redraw district as second.Wherein, the attribute of each display object comprises self information converting and own form information.
Redraw module to redraw district empty for redrawing district and second by first, and the display object changed is redrawn to second redraw district.
Further, redraw district's computing module to comprise first redraw district and second and redraw redrawing in district to search and crossing redrawing district of district on screen, and the found district that redraws of intersecting is carried out merging treatment, form merging and redraw district, district is redrawn to each obtaining after the merging treatment on screen empty for redrawing module, and redraw in district in merging, redraw corresponding display object.
Further, redraw district's computing module to find and crossing redraw district by the Qu Zhongwei that redraws on screen, and the quantity redrawing district is when being greater than predetermined number, according to preset strategy, the district that redraws on screen is carried out merging treatment, until the district's quantity that redraws after merging treatment is not more than predetermined number, district is redrawn to each obtaining after the merging treatment on screen empties to redraw module, and redraw in district in merging, redraw corresponding display object.
Fig. 3 is the display list structural representation that the embodiment of the present invention provides, and as shown in Figure 3, shows a simple display list example.Display list is a tree-shaped structure, and each node in list is called display object.Display object is divided into two classes, and a class is common display object, and another kind of is container display object.Container display object can comprise other display object (common and/or container) again in inside.That is, container display object can be analogized to a box, other display object are put in the inside.When mobile containers, the subitem of its inside also can be overall and then mobile, and when convergent-divergent container, the subitem of its inside also can overall and then convergent-divergent.
Display list is exactly data structure in layer nested like this.Container all only plays overall positioning action usually, does not present image.And the common display object normally picture of end leaf node, can be shown on screen.Location on all parent containers of a picture node or scalability information, finally all can be applied on this picture, the display position being used for determining that picture is final on screen and area size.
For the existing screen presentation mode in HTML5 field, the full frame refresh mode principle of work that display list is traditional: first set a clock frequency, such as execution normally per second 60 times.Each refreshing all separately screen.Refresh process is exactly directly empty whole screen, then travels through from the root node of display list, finds each display object node presented in order, is plotted on screen according to its coordinate and size.Such developer only needs the position attribution changing display object, and wait for that the clock period arrives next time, change will flush on screen automatically.Due under normal circumstances, be not that 60 display lists per second all can change at every turn, or when changing, only have sub-fraction to change.Although therefore emptying the mode that whole screen redraws realizes simple, expense is larger.For HTML5 field existing screen presentation mode Problems existing, the present embodiment proposes a kind of Local hydrodynamic unit algorithm based on display list, its display element in display list carries out partial refresh when changing, and all can not empty whole screen at every turn, realize significantly improving of calculated performance, reduce electricity consumption of equipment amount simultaneously.Specifically, first a clock frequency is set, timing execution per second 60 times, but difference is, directly do not empty whole screen, but first calculate the region that screen changes, the present invention is referred to as to redraw district, then only empty specify redraw district, and find out all display object redrawing district crossing with this and redraw one time.If display list this do not change, so directly will skip this and draw, and not carry out anyly redrawing operation.
Therefore, Local hydrodynamic unit be realized, first will obtain and redraw district.Fig. 4 is the schematic diagram of the rectangular area of determination display object on screen that the embodiment of the present invention provides, and as shown in Figure 4, each display object is a corresponding rectangular area on screen.Usual display object self all comprises two attributes: self matrix (i.e. self information converting) and self rectangle (i.e. own form information).The information convertings such as the position of this display object of self matrix representative in parent container, convergent-divergent, the namely part that the most usually operates of developer.Self rectangle is a fixation measuring quadrilateral out, if picture, self rectangle equals original size region during the non-convergent-divergent of this picture.Self rectangle and the superposition of self matrix, can obtain the rectangular area that this display object converts rear (such as displacement and/or convergent-divergent) in its parent container.Compare in order to unified, the present embodiment will obtain the rectangle of each display object on screen, first be to obtain the matrix information (i.e. screen matrix) of each display object relative to screen, screen matrix equals the matrix multiple result of self matrix and all parent containers.Finally obtain screen rectangle with screen matrix with the superposition of self rectangle.
After getting the rectangular area of each display object on screen (i.e. screen rectangle), need to set up an informing mechanism, namely, when screen matrix and/or self rectangle that a display object detected change, the screen rectangle of this display object is recalculated.Now can obtain two rectangles, namely this display object change before rectangle (namely second redrawing district) after rectangle (namely first redrawing district) on screen and change on screen, these two rectangles be all to obtain redraw district.Fig. 5 is the schematic diagram that acquisition that the embodiment of the present invention provides redraws district, and as shown in Figure 5, picture C is moved to the right of screen from the left side of screen, and this operation can produce the region that two needs in left and right redraw, and namely redraws district.All emptied in two regions, and the position new according to picture C, be plotted to by picture C in new region (redrawing district namely on the right of screen), such picture C is just moved to reposition from original position.
Fig. 5 is the situation of single display object movement, and the situation of convergent-divergent also can be by that analogy.But in practical application, each not only have a display object to change when refreshing, may produce numerous may intersect redraw region.The simplest mode directly redraws these display object, namely finds the screen rectangle after change, performs the operation emptying screen rectangle respectively, then search crossing object and redraw.Obviously, redraw district's quantity excessive time, huge expense can be caused, therefore present embodiments provide a kind of preferred mode and carry out Local hydrodynamic unit, namely the district that redraws obtained is merged.Consolidation strategy is as follows:
Strategy 1: if the total area after two screen rectangle merging is less than two screen rectangle area sum separately, then allow these two screen rectangle to merge, it should be noted that, the present embodiment preferentially merges two maximum rectangles of crossing area.
Strategy 2: if do not meet strategy 1, and the total quantity of screen rectangle is greater than predetermined number, then carry out pressure and merge, it should be noted that, the present embodiment preferentially merges two minimum screen rectangle of area recruitment.
Through a large amount of test, the preferred predetermined number of the present embodiment is 3, that is, best equilibrium point being merged into when the last quantity redrawing district controls within three, now, both can not redraw operation and brought pressure follow-up, also enough cover most Local hydrodynamic unit situation.Fig. 6 is the schematic diagram that merging that the embodiment of the present invention provides redraws district, as shown in Figure 6, screen has and a large amount of redraws region, according to above-mentioned consolidation strategy, can show that final three redraw district.Wherein, the lower left corner redraw district, two screen rectangle of its inside do not have intersecting area, that is their merge after the area of screen rectangle be greater than respective area sum, the present embodiment in order to will redraw district's quantity control three and within, employ above-mentioned tactful 2 and merged.It should be noted that, when whole screen is covered with scrappy disjoint screen rectangle, above-mentioned strategy will obtain a unique full frame rectangle, just meet the demand of full frame refreshing, make simultaneous adaptation Local hydrodynamic unit of the present invention and full frame brush news.
The innovative point of this algorithm is to redrawing in the merging in district in a large number, according to consolidation strategy 1 and 2, allow a certain amount of non-district that redraws to include in merging process and redraw district, and control final amalgamation result quantity be 3 and within, thus effectively reduce and follow-up redraw operation overhead.
Said method and device can realize in a software form.First up-to-date Egret mono-key installation kit (windows version) is downloaded from Egret website special area for downloading.Next carries out engine installation, specifically, double-clicks the EgretEngine-v2.5.0.exe that downloads to, and program will decompress(ion) automatically, as shown in Figure 7, after decompress(ion), if safety warning shown in ejection Fig. 8, then click operation, there is installation interface as shown in Figure 9, the custom button clicking the lower right corner can open custom menu, such as, at the language selecting to select under language hurdle to install, the self-defined path be installed under the folder icon under custom menu, shortcut icon is added to desktop by choosing " adding desktop shortcuts to ", by clicking " User Agreement ", check User Agreement etc., after reading also consenting user agreement, namely EgretEngine can be installed, as shown in Figure 10, after engine installation, the button of operation immediately as shown in figure 11 can be seen, click and run button immediately, the engine management interface of EgretEngine as shown in figure 12 can be seen, so far successful installation.Then project is created, specifically, win (having the key of windows logo)+r key is pressed at keyboard, then cmd is inputted, and press carriage return, command Window as shown in fig. 13 that can be ejected, and by carriage return after command Window input egretcreateHello, enter file C: Users [your user name] Hello, the index.html file of the inside opened by right button notepad or other text editor software, find content as shown in figure 14, made into " true " and preserve; Get back to command Window, as shown in figure 15, input egretrunHello and carriage return, automatically open browser as shown in figure 16, a line word wherein, change can not be stopped and refresh, refresh moment there will be a square frame, this square frame be exactly Local hydrodynamic unit method calculate redraw district.
In sum, the present invention has following technique effect:
1, the present invention can improve HTML5 game and performance played up by the screen in application and development field comprehensively;
2, present invention achieves full automatic Local hydrodynamic unit algorithm, intervene without the need to developer, only carrying out partial refresh screen when changing, effectively can save electric power of equipment, reducing thermal value simultaneously.
Although above to invention has been detailed description, the present invention is not limited thereto, those skilled in the art of the present technique can carry out various amendment according to principle of the present invention.Therefore, all amendments done according to the principle of the invention, all should be understood to fall into protection scope of the present invention.

Claims (10)

1., based on a Local hydrodynamic unit method for display list, it is characterized in that, comprising:
According to the attribute of the display object in display list and parent display object, determine the screen rectangle of each display object on screen, redraw district as first;
Whether each display object detected on screen changes;
When detecting that display object changes, according to the attribute of the described display object that changed and parent display object thereof, redefining the screen rectangle that described display object is corresponding on screen, redrawing district as second;
Redraw district and described second to redraw district empty described first, and the described display object changed is redrawn to described second redraw district.
2. method according to claim 1, is characterized in that, the attribute of each display object comprises self information converting and own form information.
3. method according to claim 2, is characterized in that, the described attribute according to the display object in display list and parent display object, determines the screen rectangle of each display object on screen, comprises as the first step redrawing district:
According to self information converting of each display object and self information converting of all parent display object thereof, obtain the screen transitions information that each display object corresponds to screen;
Correspond to screen transitions information and the own form information of screen according to described each display object, determine the screen rectangle of described each display object on screen.
4. method according to claim 3, it is characterized in that, the attribute of the display object changed described in described basis and parent display object thereof, redefines the screen rectangle that described display object is corresponding on screen, comprises as the second step redrawing district:
According to self information converting of the described display object changed and self information converting of all parent display object thereof, the display object changed described in obtaining corresponds to the screen transitions information of screen;
Screen transitions information and the own form information of screen is corresponded to, the screen rectangle of the display object changed described in determining on screen according to the described display object changed.
5. method according to claim 4, is characterized in that, redraws district and empties redrawing district and described second by described first, and the described display object changed is redrawn to described second redraw the step in district after, also comprise:
Utilize the attribute of each display object, search its screen rectangle and described first respectively and redraw district and/or described second and redraw the crossing display object in district, and repaint found display object.
6. the method according to claim 1-5 any one, is characterized in that, also comprises:
First of the display object changed on screen redraws district and second and redraws in district, if two redraw district merge after area be less than and merge the first two and redraw the area sum in district, then described two are redrawn district and merge, form merging and redraw district;
Redraw district to each obtaining after the merging treatment on screen to empty, and redraw in district in described merging, redraw corresponding display object.
7. method according to claim 6, is characterized in that, also comprises:
Redraw in district if first of the display object changed on screen redraws district and second, if two redraw district merge after area be not less than and merge the first two and redraw the area sum in district, and the quantity redrawing district is greater than predetermined number, then according to preset strategy, the district that redraws on screen is carried out merging treatment, until the district's quantity that redraws after merging treatment is not more than described predetermined number;
Redraw district to each obtaining after the merging treatment on screen to empty, and redraw in district in described merging, redraw corresponding display object.
8., based on a Local hydrodynamic unit device for display list, it is characterized in that, comprising:
Whether detection module, change for each display object detected on screen;
Redraw district's computing module, for the attribute according to the display object in display list and parent display object, determine the screen rectangle of each display object on screen, district is redrawn as first, and when detecting that display object changes, according to the attribute of the described display object that changed and parent display object thereof, redefine the screen rectangle that described display object is corresponding on screen, redraw district as second;
Redraw module, redraw district empty for redrawing district and described second by described first, and the described display object changed is redrawn to described second redraw district.
9. device according to claim 6, it is characterized in that, the described district's computing module that redraws also redraws district and second redraw redrawing in district to search and crossing redrawing district of district for comprising first on screen, and the found district that redraws of intersecting is carried out merging treatment, form merging and redraw district, district is redrawn to each obtaining after the merging treatment on screen empty for the described module that redraws, and redraw in district in described merging, redraw corresponding display object.
10. device according to claim 9, it is characterized in that, the described district's computing module that redraws also finds crossing redraw district for the Qu Zhongwei that redraws on screen, and the quantity redrawing district is when being greater than predetermined number, according to preset strategy, the district that redraws on screen is carried out merging treatment, until the district's quantity that redraws after merging treatment is not more than described predetermined number, so that described in redraw module and district is redrawn to each obtaining after the merging treatment on screen empty, and redraw in district in described merging, redraw corresponding display object.
CN201510983331.6A 2015-12-24 2015-12-24 Partial refreshing method and device based on display list Pending CN105528217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510983331.6A CN105528217A (en) 2015-12-24 2015-12-24 Partial refreshing method and device based on display list

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510983331.6A CN105528217A (en) 2015-12-24 2015-12-24 Partial refreshing method and device based on display list

Publications (1)

Publication Number Publication Date
CN105528217A true CN105528217A (en) 2016-04-27

Family

ID=55770466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510983331.6A Pending CN105528217A (en) 2015-12-24 2015-12-24 Partial refreshing method and device based on display list

Country Status (1)

Country Link
CN (1) CN105528217A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502659A (en) * 2016-10-14 2017-03-15 武汉斗鱼网络科技有限公司 A kind of layout method of mobile device webpage single-page and system
CN107343019A (en) * 2017-03-29 2017-11-10 宁波方太厨具有限公司 A kind of dynamic refresh method of communication data
CN108399090A (en) * 2018-02-08 2018-08-14 广东欧珀移动通信有限公司 Visibility method for refreshing, device, storage medium and intelligent terminal
WO2020050907A1 (en) * 2018-09-07 2020-03-12 Microsoft Technology Licensing, Llc Rendering oversized glyphs to a monospace grid
CN112199537A (en) * 2020-09-18 2021-01-08 杭州安恒信息技术股份有限公司 Visual image updating method and device, electronic device and storage medium
CN113096263A (en) * 2021-03-16 2021-07-09 普联技术有限公司 Display method, device and equipment for face card punching and storage medium
CN113476839A (en) * 2021-07-23 2021-10-08 腾讯科技(深圳)有限公司 Entity display method and device in game application, storage medium and electronic equipment
CN113900758A (en) * 2021-10-22 2022-01-07 广州博冠信息科技有限公司 Content display method, content display device, computer equipment and computer-readable storage medium
WO2024031544A1 (en) * 2022-08-11 2024-02-15 京东方科技集团股份有限公司 Display apparatus, display method, and terminal
WO2024036572A1 (en) * 2022-08-18 2024-02-22 京东方科技集团股份有限公司 Display method, display apparatus and computer-readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080098296A1 (en) * 2006-10-23 2008-04-24 Christopher Brichford Rendering hypertext markup language content
CN101211462A (en) * 2007-12-21 2008-07-02 炬力集成电路设计有限公司 Vector graph acceleration method and multimedia player
US20080291218A1 (en) * 2006-01-21 2008-11-27 Tencent Technology (Shenzhen) Company Limited System And Method For Generating Interactive Video Images
CN103268337A (en) * 2013-05-16 2013-08-28 北京奇虎科技有限公司 Playing method and device of videos in web pages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080291218A1 (en) * 2006-01-21 2008-11-27 Tencent Technology (Shenzhen) Company Limited System And Method For Generating Interactive Video Images
US20080098296A1 (en) * 2006-10-23 2008-04-24 Christopher Brichford Rendering hypertext markup language content
CN101211462A (en) * 2007-12-21 2008-07-02 炬力集成电路设计有限公司 Vector graph acceleration method and multimedia player
CN103268337A (en) * 2013-05-16 2013-08-28 北京奇虎科技有限公司 Playing method and device of videos in web pages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
游戏开发:主席: "脏矩形技术", 《HTTP://WWW.CNBLOGS.COM/GAMEDEVELOPER/ARCHIVE/2011/05/25/2056501.HTML》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502659B (en) * 2016-10-14 2019-05-17 武汉斗鱼网络科技有限公司 A kind of layout method and system of mobile device webpage single-page
CN106502659A (en) * 2016-10-14 2017-03-15 武汉斗鱼网络科技有限公司 A kind of layout method of mobile device webpage single-page and system
CN107343019A (en) * 2017-03-29 2017-11-10 宁波方太厨具有限公司 A kind of dynamic refresh method of communication data
CN107343019B (en) * 2017-03-29 2020-04-24 宁波方太厨具有限公司 Dynamic refreshing method of communication data
CN108399090B (en) * 2018-02-08 2021-04-27 Oppo广东移动通信有限公司 Visibility refreshing method and device, storage medium and intelligent terminal
CN108399090A (en) * 2018-02-08 2018-08-14 广东欧珀移动通信有限公司 Visibility method for refreshing, device, storage medium and intelligent terminal
WO2020050907A1 (en) * 2018-09-07 2020-03-12 Microsoft Technology Licensing, Llc Rendering oversized glyphs to a monospace grid
US10636387B2 (en) 2018-09-07 2020-04-28 Microsoft Technology Licensing, Llc Rendering oversized glyphs to a monospace grid
CN112199537A (en) * 2020-09-18 2021-01-08 杭州安恒信息技术股份有限公司 Visual image updating method and device, electronic device and storage medium
CN113096263A (en) * 2021-03-16 2021-07-09 普联技术有限公司 Display method, device and equipment for face card punching and storage medium
CN113476839A (en) * 2021-07-23 2021-10-08 腾讯科技(深圳)有限公司 Entity display method and device in game application, storage medium and electronic equipment
CN113476839B (en) * 2021-07-23 2023-10-24 腾讯科技(深圳)有限公司 Entity display method and device in game application, storage medium and electronic equipment
CN113900758A (en) * 2021-10-22 2022-01-07 广州博冠信息科技有限公司 Content display method, content display device, computer equipment and computer-readable storage medium
CN113900758B (en) * 2021-10-22 2023-09-12 广州博冠信息科技有限公司 Content display method, apparatus, computer device, and computer-readable storage medium
WO2024031544A1 (en) * 2022-08-11 2024-02-15 京东方科技集团股份有限公司 Display apparatus, display method, and terminal
WO2024036572A1 (en) * 2022-08-18 2024-02-22 京东方科技集团股份有限公司 Display method, display apparatus and computer-readable medium

Similar Documents

Publication Publication Date Title
CN105528217A (en) Partial refreshing method and device based on display list
US11720739B2 (en) System and method for extended dynamic layout
US9389759B2 (en) Environment for responsive graphical designs
JP5905541B2 (en) Control gallery organized hierarchically
CN102073502B (en) Method for rendering page frame by WEB primary layout and device thereof
US20110283215A1 (en) Integrated user interface controls for web dialogs
US20110258534A1 (en) Declarative definition of complex user interface state changes
CN106570098A (en) Page refreshing method and device
US9946806B2 (en) Exporting responsive designs from a graphical design tool
US10169307B2 (en) Method and system for the use of adjustment handles to facilitate dynamic layout editing
US20170221242A1 (en) Automatic overdraw reduction before rendering
CN103019557B (en) Page switching method and device
US20130238977A1 (en) Method and system for master-page based integrated editing and dynamic layout activation
CN106162302B (en) Layout method and device for Launcher main interface and smart television
CN106294501A (en) web animation effect display method and device
CN109782977B (en) View processing method, electronic device and storage medium
CN110262749A (en) A kind of web page operation method, apparatus, container, equipment and medium
US8381116B2 (en) Display systems and methods for dynamically updating a graphical user interface
CN113093961B (en) Window switching method, storage medium and related equipment
KR101373694B1 (en) Method, apparutus and computer readable recording medium for creating mind-map with web-scraping
CN101546316A (en) Method and device for screen drawing
CN116521043B (en) Method, system and computer program product for quick response of drawing
CN104462101A (en) Information processing method and electronic equipment
CN103165105A (en) Mobile communication terminal and graphic display method
CN110119485B (en) Interface access method and device based on bookmark

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160427

WD01 Invention patent application deemed withdrawn after publication