CN113192169A - Image display optimization method and device for dynamically adjusting LOD Scale - Google Patents

Image display optimization method and device for dynamically adjusting LOD Scale Download PDF

Info

Publication number
CN113192169A
CN113192169A CN202110444700.XA CN202110444700A CN113192169A CN 113192169 A CN113192169 A CN 113192169A CN 202110444700 A CN202110444700 A CN 202110444700A CN 113192169 A CN113192169 A CN 113192169A
Authority
CN
China
Prior art keywords
scale
value
max
frame rate
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110444700.XA
Other languages
Chinese (zh)
Other versions
CN113192169B (en
Inventor
温研
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Lingjiu Microelectronics Co ltd
Original Assignee
Beijing Linzhuo 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 Linzhuo Information Technology Co Ltd filed Critical Beijing Linzhuo Information Technology Co Ltd
Priority to CN202110444700.XA priority Critical patent/CN113192169B/en
Publication of CN113192169A publication Critical patent/CN113192169A/en
Application granted granted Critical
Publication of CN113192169B publication Critical patent/CN113192169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses an image display optimization method and device for dynamically adjusting LOD Scale, which dynamically adjust the LOD Scale in a rendering process according to the acquired system performance and scene details to ensure that a frame rate can meet the determined index requirement, namely, when the system load is too high, the display details are used for obtaining better performance, and when the system performance is excessive, the performance can be more fully utilized to enhance the display details, so that the rendering quality is improved.

Description

Image display optimization method and device for dynamically adjusting LOD Scale
Technical Field
The invention belongs to the technical field of computer graphics software development, and particularly relates to an image display optimization method and device for dynamically adjusting an LOD Scale.
Background
Lod (levels of detail) is a level of detail model proposed by the Clark scholars, and refers to a method for describing different objects or different parts of objects in a scene in different details. Specifically, the LOD technique can determine resource allocation for object rendering according to the position and importance of the model node of the object in the display environment, and reduce the number of faces and detail of non-important objects, thereby obtaining efficient rendering operation. The detail level model can observe the details of the model when the user viewpoint is close to the object, and the observed details are gradually blurred when the user viewpoint is gradually far away from the model. The detail level model can avoid time waste caused by drawing details with relatively small significance, so that the generation and display speed of the complex scene is improved. The detail level model is widely applied to the fields of interactive visualization, virtual reality and the like.
In the process of large-scale graphic rendering, the model needs to be subjected to LOD (level of detail) level of detail processing according to factors such as visual range, model complexity and the like. However, in the conventional static LOD mode, the detail level can only be displayed according to the preset LOD Scale no matter whether the rendering performance is excessive. Therefore, when the vertex and the graphic data in the rendered scene are excessive, the frame rate of display is lower than the index requirement; when the vertex and graphic data in the rendered scene are less, rendering performance is excessive, and the frame rate is far higher than the index requirement, but the excessive performance cannot be used for improving rendering details, so that performance waste is caused. Such problems are particularly prominent for domestic hardware platforms where graphics rendering capabilities are relatively weak.
Disclosure of Invention
In view of this, the present invention provides an image display optimization method and apparatus for dynamically adjusting an LOD Scale, which can optimize an image display effect of a system having a specific frame rate index requirement.
The invention provides an image display optimization method for dynamically adjusting LOD Scale, which specifically comprises the following steps:
step 1, setting a maximum value FR of a system frame rate dereferencing according to an index requirement of the system frame ratemaxAnd minimum value FRmin(ii) a Obtaining LOD Scale value currently adopted by the system as initial value s of Scale0Setting the maximum value S of ScalemaxAnd minimum value Smin
Step 2, obtaining the current frame rate FR of the system, if FR > FRmaxReducing the value of Scale, and if the value of the current Scale is not less than the minimum value SminIf so, taking the new Scale value as an LOD Scale rendering image, and executing the step 2; otherwise, if the value of the current Scale is smaller than the minimum value SminIf yes, executing step 3;
if FR < FRminIncreasing the value of Scale, and if the value of the current Scale is not more than the maximum value SmaxIf so, taking the new Scale value as an LOD Scale rendering image, and executing the step 2; otherwise, if the value of the current Scale is larger than the maximum value SmaxIf yes, executing step 3;
if FRmin≤fr≤FRmaxIf yes, executing step 3;
and 3, stopping adjustment and ending the process.
Further, the image display optimization method further comprises the following steps:
step 2.1, initializing an array SC, wherein elements of the array SC are values corresponding to display details, and element numbers of the array SC correspond to Scale values; the array SC [ i ], i is the serial number of the array, i is less than N, and N is the length of the array SC [ i ];
step 2.2, obtaining the current frame rate FR of the system, if FR > FRmaxOr FR < FRminThen step 2.3 is executed; if FRmin≤fr≤FRmaxThen executing the step 3;
step 2.3, obtaining the current display details of the current image, and comparing the current display details with the elements in the array SC [ i ] one by one:
when the last element which is smaller than the current display detail, has the minimum difference with the current display detail and is not 0 at the same time is traversed, stopping traversing and recording the number of the element as n; if (N +1) < N, the Scale value s is
Figure BDA0003038850030000031
If N is equal to N, the Scale value s is
Figure BDA0003038850030000032
Taking the Scale value s as an LOD Scale rendering image, and executing the step 3;
stopping traversing when traversing to the element with the same current display details, marking the number of the element as n, and then setting the Scale value s as
Figure BDA0003038850030000033
Taking the Scale value s as an LOD Scale rendering image, and executing the step 3;
stopping traversing when the last element which is smaller than the current display detail, has the minimum difference with the current display detail and is 0 at the same time is traversed, marking the number of the element as n, and setting the Scale value s as
Figure BDA0003038850030000034
Taking the Scale value s as an LOD Scale rendering image, and executing the step 2.4;
step 2.4, obtaining the current frame rate FR of the system, if FR > FRmaxReducing the Scale value S, if S is not less than the minimum value SminIf yes, taking s as an LOD Scale rendering image, and executing the step 2.4; otherwise, executing step 2.5;
if FR < FRminIncreasing the Scale value S, if S is not more than the maximum value SmaxIf yes, taking s as an LOD Scale rendering image, and executing the step 2.4; otherwise, executing step 2.5;
if FRmin≤fr≤FRmaxThen step 2.5 is executed;
and 2.5, storing the current display details as the ith (s-1) 10 elements into the array SC.
Further, said SmaxIs 4.0, SminHas a value of 1.0, the FRmaxIs higher than 30% of the frame rate index requirement, the FR isminThe frame rate index is a value required by the frame rate index.
Further, the step of the increase or decrease of the Scale is set to 0.1.
The invention provides an image display optimization device for dynamically adjusting LOD Scale, which comprises a frame rate monitoring module, a Scale adjusting module and an image rendering module;
the frame rate monitoring module is used for acquiring a current frame rate value of the system and setting a maximum value FR of the system frame rate according to an index requirement of the system frame ratemaxAnd minimum value FRmin
The Scale adjusting module is used for setting the maximum value S of the Scale value SmaxAnd minimum value SminAnd according to the current frame rate FR of the system and the maximum value FR of the frame rate obtained from the frame rate monitoring modulemaxAnd minimum value FRminAdjusting the value of Scale;
and the image rendering module is used for rendering an image as an LOD Scale according to the Scale value received from the Scale adjusting module.
Further, the manner of adjusting the value of Scale by the Scale adjusting module is as follows: when FR > FRmaxAnd reducing the value of the Scale, and if the value of the current Scale is not less than the minimum value SminThen send the new Scale value to the clientThe image rendering module; when FR is less than FRminIncreasing the value of Scale, and if the value of the current Scale is not more than the maximum value SmaxIf so, sending the new Scale value to the image rendering module; when FR ismin≤fr≤FRmaxIf so, the adjustment is stopped.
Further, the FRmax1.3 times of the index requirement of the system frame rate, the FRminIs an index requirement of the system frame rate.
Furthermore, the image display optimization device further comprises an adjustment learning module, wherein the adjustment learning module is used for maintaining the corresponding relation among the Scale value, the frame rate and the display details according to the adjustment result of the Scale adjustment module; the corresponding relation is stored in an array SC mode, the serial number of the array SC element corresponds to the value s of Scale, the value of the array SC element corresponds to the value of the display detail, and the maximum length of the array is N.
Further, the manner of adjusting the value of Scale by the Scale adjusting module is as follows:
when FR > FRmaxOr FR < FRminThen, obtaining the current display details, and comparing the current display details with the array SC elements in the adjustment learning module one by one; when the last element which is smaller than the current display detail, has the minimum difference with the current display detail and is not 0 in the subsequent elements is traversed, stopping traversing, and marking the number of the element as n; if (N +1) < N, the Scale value s is
Figure BDA0003038850030000051
If N is equal to N, the Scale value s is
Figure BDA0003038850030000052
Sending the Scale value s to the image rendering module;
when the last element which is smaller than the current display detail, has the minimum difference with the current display detail and is 0 in the subsequent elements is traversed, the traversal is stopped, and the number of the element is recorded as n so as to
Figure BDA0003038850030000053
Sending the Scale value s to the image rendering module as a value of the Scale value s; obtaining the current frame rate FR when FR > FRmaxIf the Scale value S is not less than the minimum value S, the Scale value S is decreasedminIf so, sending the Scale value s to the image rendering module and the adjustment learning module; when FR is less than FRminIncreasing the Scale value S, if the Scale value S is not greater than the maximum value SmaxIf so, sending the Scale value s to the image rendering module and the adjustment learning module; when FR ismin≤fr≤FRmaxWhen the adjustment is completed, the adjustment is stopped.
Has the advantages that:
1. according to the acquired system performance and scene details, the LOD Scale in the rendering process is dynamically adjusted to ensure that the frame rate can meet the determined index requirement, namely, when the system load is too high, the display details are used for obtaining better performance, and when the system performance is excessive, the performance can be more fully utilized to enhance the display details, so that the rendering quality is improved.
2. The invention further reduces the performance overhead of the system in the rendering process by learning and determining the relationship among the LOD Scale, the frame rate and the display details in advance.
Drawings
Fig. 1 is a flowchart of an image display optimization method for dynamically adjusting the LOD Scale according to the present invention.
Fig. 2 is a monitoring learning flowchart of the image display optimization method for dynamically adjusting the LOD Scale according to the present invention.
FIG. 3 is a flowchart of an image display optimization method for dynamically adjusting LOD Scale in an incremental learning process according to the present invention.
Fig. 4 is a structural diagram of an image display optimization apparatus for dynamically adjusting the LOD Scale according to the present invention.
Fig. 5 is a structural diagram of an image display optimization apparatus for dynamically adjusting the LOD Scale according to the present invention, which is added with a learning module.
Detailed Description
The invention is described in detail below by way of example with reference to the accompanying drawings.
To facilitate understanding and defining the technical content to which the invention relates, the terms referred to within the invention are defined as follows:
the display details of an image refer to the characteristic elements used by the computer system to display the image. The characteristic elements comprise a vertex number, a primitive number, a line segment number, a geometric figure number and the like. For example, an image in a computer system usually consists of many vertices, and the larger the rendered scene is, the larger the number of vertices contained in the image is, the more the rendering details are, and the system needs to consume more performance resources to process the vertices, and vice versa.
The LOD Scale is a detail Scale parameter of the LOD in the image rendering process, and the larger the Scale value is, the less the display detail of the image in the unit length is, the less the rendering data amount is, and vice versa.
Frame rate, which may also be referred to as frame frequency, refers to the frequency at which bitmap images in frames appear continuously on a display, and this term is equally applicable to film and video cameras, computer graphics, and motion capture systems.
The invention provides an image display optimization method and device for dynamically adjusting LOD Scale, which has the core idea that: and dynamically adjusting the value of the LOD Scale according to the current system performance and the display details of the scene to be rendered so as to ensure that the frame rate meets the determined index requirement.
The image display optimization method for dynamically adjusting the LOD Scale provided by the invention has the flow shown in FIG. 1, and comprises the following steps:
step 1.1, setting the maximum value FR of the system frame rate dereferencing according to the index requirement of the system frame ratemaxAnd minimum value FRmin(ii) a Obtaining LOD Scale value currently adopted by the system as initial value s of Scale0Setting the maximum value S of ScalemaxAnd minimum value Smin
Step 1.2, obtaining the current frame rate FR of the system, if the current frame rate is larger than the maximum value, namely FR > FRmaxThen step 1.3 is executed; if the current frame rate is less than the minimum value, i.e. FR < FRminThen step 1.4 is executed; if the current frame rate is less than or equal to the maximum value and greater than or equal to the minimum value, FR is obtainedmin≤fr≤FRmaxThen step 1.5 is performed.
Step 1.3, reducing the value of the Scale according to the set step, and if the value of the current Scale is not less than the minimum value SminIf so, rendering by taking the new Scale value as the LOD Scale, and then executing the step 1.2; otherwise, step 1.5 is performed.
Step 1.4, increasing the value of the Scale according to the set step, and if the value of the current Scale is not more than the maximum value SmaxIf so, rendering by taking the new Scale value as the LOD Scale, and then executing the step 1.2; otherwise, step 1.5 is performed.
And step 1.5, stopping adjustment and ending the process.
In the above process, S is usually set according to experimental experiencemaxIs 4.0, SminThe value of (a) is 1.0, and the adjustment step of Scale is 0.1; maximum value FR of system frame ratemaxThe value is usually set to be higher than the frame rate index requirement by 30%, and the minimum value FRminUsually set to the value required by the frame rate index.
In the above process, the problem of adjusting the LOD Scale too frequently due to fine adjustment may occur, which may increase the performance overhead of the rendering process. Because the display details have high correlation with the frame rate and are important factors causing the change of the frame rate, in order to solve the problems, the invention adds a process of learning the corresponding relationship between the Scale value and the frame rate and the display details in advance, namely, the corresponding relationship between the Scale value and the display details after the Scale value is finely adjusted each time is recorded in the learning process, in practical application, if the frame rate is lower than an index requirement or higher than the index requirement, the corresponding Scale value is determined by searching the recorded corresponding relationship according to the monitored current frame rate value, and the Scale value is rendered without fine adjustment again, thereby effectively reducing the performance overhead caused by fine adjustment.
Specifically, the process of learning the correspondence relationship among the Scale value, the frame rate, and the display details in advance, as shown in fig. 2, includes the following steps:
step 2.1, initialize the array SC, the array SC is used to store the Scale value and the ScaDisplay details corresponding to le value, where Scale value is such that frame rate FR satisfies condition FRmin≤fr≤FRmaxThe value of (a).
The value range of the Scale value s determined according to experience is that s is more than or equal to 1 and less than or equal to 4, and the step is 0.1, so the array SC is an array with the length of 31. For example, SC [1 ]]10, wherein, SC [1 ]]The corresponding s value is s 1+ 1/10; and the element SC [1]Has an element value of 10, which means that when s is 1.1, there are 10 vertices in the scene, and the frame rate FR at this time can satisfy FRmin≤fr≤FRmaxOf (3) is performed.
Step 2.2, monitoring the value of the system frame rate, if the current frame rate is less than or equal to the maximum value and greater than or equal to the minimum value, then FR is obtainedmin≤fr≤FRmaxThen step 2.4 is performed. If the current frame rate FR < FRminOr FR > FRmaxThen step 2.3 is performed.
Step 2.3, if the current frame rate is less than the minimum value, FR is less than FRminIncreasing the value of the Scale according to the set step, and if the value of the Scale is not more than the maximum value SmaxIf so, rendering by taking the new Scale value as the LOD Scale, and then executing the step 2.2, wherein the display detail is correspondingly reduced; otherwise, executing step 2.4;
if the current frame rate is greater than the maximum value, i.e. FR > FRmaxIf the value of the current Scale is not less than the minimum value S, the system computing resource is not fully utilizedminIf so, rendering by taking the new Scale value as the LOD Scale, and then executing the step 2.2, wherein the display detail is correspondingly improved; otherwise, step 2.4 is performed.
And 2.4, stopping adjusting the value of the Scale, simultaneously obtaining the display details of the current scene, and storing the corresponding numerical values of the display details into SC [ i ], wherein i is the number of the elements in the array SC, and i is (s-1) × 10, and the maximum value of i is N. Therefore, the frame rate can meet the requirement by setting the value of Scale to i for the scene with the current display details.
The first embodiment is as follows:
assuming that there are actually 10 vertices in the image of the current scene and the Scale value is 1, the frame rate can satisfy the index requirement. When a user moves a scene to a complex image, the content of the scene increases, the number of vertices in the current scene increases to 20, and the frame rate decreases accordingly. By fine-tuning the Scale value, it can be found that when the Scale value is increased to 2, the number of vertex points is correspondingly reduced to 10 in rendering detail, so that the frame rate can meet the index requirement. Since the actual number of vertices at this time is 20 and Scale is 2, the value of 10 th element (2-1) × 10 in the array SC [ i ] is set to 20.
The method for optimizing image display of dynamically adjusting LOD Scale, which adds a process of learning the corresponding relationship among the Scale value, the frame rate and the display details in advance, as shown in fig. 3, specifically includes the following steps:
step 3.1, setting the maximum value FR of the system frame rate dereferencing according to the index requirement of the system frame ratemaxAnd minimum value FRmin(ii) a Obtaining LOD Scale value currently adopted by the system as initial value s of Scale0Setting the maximum value S of ScalemaxAnd minimum value Smin. Initializing an array SC for storing a Scale value and display details corresponding to the Scale value, where the Scale value is such that the frame rate FR satisfies the condition FRmin≤fr≤FRmaxThe value of (a).
Step 3.2, obtaining the current frame rate FR of the system, if the current frame rate is larger than the maximum value or smaller than the minimum value, namely FR > FRmaxOr FR < FRminThen step 3.3 is executed; if the current frame rate is less than or equal to the maximum value and greater than or equal to the minimum value, FR is obtainedmin≤fr≤FRmaxThen step 3.7 is performed.
Step 3.3, obtaining the current display details of the current scene, and comparing the current display details with the elements in the array SC [ i ] one by one:
when the last element which is smaller than the current display detail and has the smallest difference with the current display detail is traversed, and meanwhile, the elements behind the element are not 0, the traversal is stopped, and the number of the element is recorded as n; if (N +1) < N, the Scale value s that should be currently set is
Figure BDA0003038850030000091
If N is equal to N, the Scale value s that should be currently set is
Figure BDA0003038850030000092
Rendering by taking the new Scale value s as LOD Scale, and then executing the step 3.8;
stopping traversing when traversing to the element equal to the current display detail, recording the number of the element as n, and setting the Scale value s which should be set at present as
Figure BDA0003038850030000101
Rendering by taking the new Scale value s as LOD Scale, and then executing the step 3.8;
when the last element which is smaller than the current display detail and has the smallest difference with the current display detail is traversed, and the elements behind the element are all 0, stopping traversing, and recording the number of the element as n so as to
Figure BDA0003038850030000102
And as the value of the Scale value s, rendering by taking the new Scale value s as the LOD Scale, and executing the step 3.4.
Step 3.4, obtaining the current frame rate FR of the system, if the current frame rate is larger than the maximum value, namely FR > FRmaxThen step 3.5 is executed; if the current frame rate is less than the minimum value, i.e. FR < FRminThen step 3.6 is executed; if the current frame rate is less than or equal to the maximum value and greater than or equal to the minimum value, FR is obtainedmin≤fr≤FRmaxThen step 3.7 is performed.
Step 3.5, reducing the value of the Scale according to the set step, and if the value of the current Scale is not less than the minimum value SminRendering by taking the new Scale value s as LOD Scale, and then executing the step 3.4; otherwise, step 3.7 is performed.
Step 3.6, increasing the value of the Scale according to the set step, and if the value of the current Scale is not more than the maximum value SmaxRendering by taking the new Scale value s as LOD Scale, and then executing the step 3.4; otherwise, executing stepAnd 3.7.
And 3.7, storing the current display details as the ith (s-1) 10 elements into the array SC.
And 3.8, stopping adjustment and ending the process.
According to the image display optimization method for dynamically adjusting the LOD Scale, the image display optimization device for dynamically adjusting the LOD Scale is designed, and the structure of the device is shown in FIG. 4 and comprises a frame rate monitoring module, a Scale adjusting module and an image rendering module.
The frame rate monitoring module is used for obtaining a current frame rate value of the system, and setting a maximum value FR of the system frame rate dereferencing according to an index requirement of the system frame ratemaxAnd minimum value FRmin. Wherein the maximum value FRmaxCan be set to be 1.3 times of the index requirement of the system frame rate, and the minimum value FRminIs an index requirement of the system frame rate.
A Scale adjusting module for setting the maximum value S of the Scale valuemaxAnd minimum value SminAnd according to the current frame rate FR of the system obtained from the frame rate monitoring module and the maximum value FR of the frame ratemaxAnd minimum value FRminAnd adjusting the value of Scale.
The way of adjusting Scale is as follows: when FR > FRmaxAnd reducing the value of the Scale, and if the value of the current Scale is not less than the minimum value SminIf so, sending the new Scale value to an image rendering module; when FR is less than FRminIncreasing the value of Scale, and if the value of the current Scale is not more than the maximum value SmaxIf so, sending the new Scale value to an image rendering module; when FR ismin≤fr≤FRmaxIf so, the adjustment is stopped. And the increase or decrease of the Scale value can be adjusted according to the set step. In general, the value of the step is set to 0.1.
And the image rendering module is used for rendering as the LOD Scale according to the Scale value received from the Scale adjusting module.
On this basis, in order to reduce the performance overhead of the rendering process, the present invention adds an adjustment learning module to the image display optimization apparatus for dynamically adjusting the LOD Scale, and optimizes the Scale adjustment module, as shown in fig. 5.
The adjusting and learning module is used for maintaining the corresponding relation among the Scale value, the frame rate and the display details, and establishing the corresponding relation in the adjusting process of the Scale adjusting module. The corresponding relation can be stored in an array mode, the serial number of the array element corresponds to the value s of Scale, the value of the array element corresponds to the value of the display detail, and the maximum length of the array is N. For example, it is empirically determined that the Scale value ranges from 1 ≦ s ≦ 4, the adjustment step is 0.1, and the length of the array SC is 31. Wherein, SC [1]The corresponding s value is s 1+1/10, SC [1 ]]Has an element value of 10, which means that when s is 1.1, there are 10 vertices in the scene, and the frame rate FR at this time can satisfy FRmin≤fr≤FRmaxOf (3) is performed.
A Scale adjusting module for setting the maximum value S of the Scale valuemaxAnd minimum value SminAnd according to the current frame rate FR of the system obtained from the frame rate monitoring module and the maximum value FR of the frame ratemaxAnd minimum value FRminOr adjusting the value of Scale according to the corresponding relation obtained from the adjusting learning module; the adjusting process comprises the steps of firstly obtaining display details of the system, comparing the display details with corresponding relations stored in the adjusting learning module according to the display details, and directly sending Scale values in the corresponding relations to the image rendering module if the matching is successful; and if the matching is not successful, adjusting by adopting the Scale adjusting mode, and sending an adjusting result to the adjusting and learning module.
The adjustment mode is as follows: when FR > FRmaxOr FR < FRminThen, obtaining the current display details of the current scene, and comparing the current display details with the corresponding relations stored by the adjustment learning module one by one; when the last element which is smaller than the current display detail and has the smallest difference with the current display detail is traversed, and meanwhile, the elements behind the element are not 0, the traversal is stopped, and the number of the element is recorded as n; if (N +1) < N, the current Scale value s is
Figure BDA0003038850030000121
If N is equal to N, the current Scale value s is
Figure BDA0003038850030000122
Sending the new Scale value s to an image rendering module;
when the last element which is smaller than the current display detail and has the smallest difference with the current display detail is traversed, and the elements behind the element are all 0, stopping traversing, and recording the number of the element as n so as to
Figure BDA0003038850030000123
As the value of the Scale value s, sending the new Scale value s to the image rendering module; the following adjustments were then made: when FR > FRmaxAnd reducing the value of the Scale, and if the value of the current Scale is not less than the minimum value SminIf so, sending the new Scale value to an image rendering module and an adjustment learning module; when FR is less than FRminIncreasing the value of Scale, and if the value of the current Scale is not more than the maximum value SmaxIf so, sending the new Scale value to an image rendering module and an adjustment learning module; when FR ismin≤fr≤FRmaxIf so, the adjustment is stopped.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. The image display optimization method for dynamically adjusting the LOD Scale is characterized by comprising the following steps of:
step 1, setting a maximum value FR of a system frame rate dereferencing according to an index requirement of the system frame ratemaxAnd minimum value FRmin(ii) a Obtaining LOD Scale value currently adopted by the system as initial value s of Scale0Setting the maximum value S of ScalemaxAnd minimum value Smin
Step 2, obtaining the current frame rate FR of the system, if FR > FRmaxReducing ScaleTaking value, if the value of the current Scale is not less than the minimum value SminIf so, taking the new Scale value as an LOD Scale rendering image, and executing the step 2; otherwise, if the value of the current Scale is smaller than the minimum value SminIf yes, executing step 3;
if FR < FRminIncreasing the value of Scale, and if the value of the current Scale is not more than the maximum value SmaxIf so, taking the new Scale value as an LOD Scale rendering image, and executing the step 2; otherwise, if the value of the current Scale is larger than the maximum value SmaxIf yes, executing step 3;
if FRmin≤fr≤FRmaxIf yes, executing step 3;
and 3, stopping adjustment and ending the process.
2. The image display optimization method according to claim 1, further comprising the steps of:
step 2.1, initializing an array SC, wherein elements of the array SC are values corresponding to display details, and element numbers of the array SC correspond to Scale values; the array SC [ i ], i is the serial number of the array, i is less than N, and N is the length of the array SC [ i ];
step 2.2, obtaining the current frame rate FR of the system, if FR > FRmaxOr FR < FRminThen step 2.3 is executed; if FRmin≤fr≤FRmaxThen executing the step 3;
step 2.3, obtaining the current display details of the current image, and comparing the current display details with the elements in the array SC [ i ] one by one:
when the last element which is smaller than the current display detail, has the minimum difference with the current display detail and is not 0 at the same time is traversed, stopping traversing and recording the number of the element as n; if (N +1) < N, the Scale value s is
Figure FDA0003038850020000021
If N is equal to N, the Scale value s is
Figure FDA0003038850020000022
Taking the Scale value s as an LOD Scale rendering image, and executing the step 3;
stopping traversing when traversing to the element with the same current display details, marking the number of the element as n, and then setting the Scale value s as
Figure FDA0003038850020000023
Taking the Scale value s as an LOD Scale rendering image, and executing the step 3;
stopping traversing when the last element which is smaller than the current display detail, has the minimum difference with the current display detail and is 0 at the same time is traversed, marking the number of the element as n, and setting the Scale value s as
Figure FDA0003038850020000024
Taking the Scale value s as an LOD Scale rendering image, and executing the step 2.4;
step 2.4, obtaining the current frame rate FR of the system, if FR > FRmaxReducing the Scale value S, if S is not less than the minimum value SminIf yes, taking s as an LOD Scale rendering image, and executing the step 2.4; otherwise, executing step 2.5;
if FR < FRminIncreasing the Scale value S, if S is not more than the maximum value SmaxIf yes, taking s as an LOD Scale rendering image, and executing the step 2.4; otherwise, executing step 2.5;
if FRmin≤fr≤FRmaxThen step 2.5 is executed;
and 2.5, storing the current display details as the ith (s-1) 10 elements into the array SC.
3. Image display optimization method according to claims 1 and 2, characterized in that S ismaxIs 4.0, SminHas a value of 1.0, the FRmaxIs higher than 30% of the frame rate index requirement, the FR isminThe frame rate index is a value required by the frame rate index.
4. The image display optimization method according to claims 1 and 2, wherein the step of the increase or decrease of the Scale is set to 0.1.
5. The image display optimization device for dynamically adjusting the LOD Scale is characterized by comprising a frame rate monitoring module, a Scale adjusting module and an image rendering module;
the frame rate monitoring module is used for acquiring a current frame rate value of the system and setting a maximum value FR of the system frame rate according to an index requirement of the system frame ratemaxAnd minimum value FRmin
The Scale adjusting module is used for setting the maximum value S of the Scale value SmaxAnd minimum value SminAnd according to the current frame rate FR of the system and the maximum value FR of the frame rate obtained from the frame rate monitoring modulemaxAnd minimum value FRminAdjusting the value of Scale;
and the image rendering module is used for rendering an image as an LOD Scale according to the Scale value received from the Scale adjusting module.
6. The image display optimization device according to claim 5, wherein the Scale adjusting module adjusts the Scale value in a manner that: when FR > FRmaxAnd reducing the value of the Scale, and if the value of the current Scale is not less than the minimum value SminIf so, sending the new Scale value to the image rendering module; when FR is less than FRminIncreasing the value of Scale, and if the value of the current Scale is not more than the maximum value SmaxIf so, sending the new Scale value to the image rendering module; when FR ismin≤fr≤FRmaxIf so, the adjustment is stopped.
7. Image display optimization device according to claims 5 and 6, characterized in that the FR ismax1.3 times of the index requirement of the system frame rate, the FRminIs an index requirement of the system frame rate.
8. The image display optimization device according to claim 7, further comprising an adjustment learning module, configured to maintain a corresponding relationship between the Scale value, the frame rate, and the display details according to an adjustment result of the Scale adjustment module; the corresponding relation is stored in an array SC mode, the serial number of the array SC element corresponds to the value s of Scale, the value of the array SC element corresponds to the value of the display detail, and the maximum length of the array is N.
9. The image display optimization device according to claim 8, wherein the Scale adjusting module adjusts a Scale value in a manner that:
when FR > FRmaxOr FR < FRminThen, obtaining the current display details, and comparing the current display details with the array SC elements in the adjustment learning module one by one; when the last element which is smaller than the current display detail, has the minimum difference with the current display detail and is not 0 in the subsequent elements is traversed, stopping traversing, and marking the number of the element as n; if (N +1) < N, the Scale value s is
Figure FDA0003038850020000041
If N is equal to N, the Scale value s is
Figure FDA0003038850020000042
Sending the Scale value s to the image rendering module;
when the last element which is smaller than the current display detail, has the minimum difference with the current display detail and is 0 in the subsequent elements is traversed, the traversal is stopped, and the number of the element is recorded as n so as to
Figure FDA0003038850020000043
Sending the Scale value s to the image rendering module as a value of the Scale value s; obtaining the current frame rate FR when FR > FRmaxIf the Scale value S is not less than the minimum value S, the Scale value S is decreasedminIf so, sending the Scale value s to the image rendering module andthe adjustment learning module; when FR is less than FRminIncreasing the Scale value S, if the Scale value S is not greater than the maximum value SmaxIf so, sending the Scale value s to the image rendering module and the adjustment learning module; when FR ismin≤fr≤FRmaxWhen the adjustment is completed, the adjustment is stopped.
CN202110444700.XA 2021-04-26 2021-04-26 Image display optimization method and device for dynamically adjusting LOD Scale Active CN113192169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110444700.XA CN113192169B (en) 2021-04-26 2021-04-26 Image display optimization method and device for dynamically adjusting LOD Scale

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110444700.XA CN113192169B (en) 2021-04-26 2021-04-26 Image display optimization method and device for dynamically adjusting LOD Scale

Publications (2)

Publication Number Publication Date
CN113192169A true CN113192169A (en) 2021-07-30
CN113192169B CN113192169B (en) 2021-11-05

Family

ID=76978392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110444700.XA Active CN113192169B (en) 2021-04-26 2021-04-26 Image display optimization method and device for dynamically adjusting LOD Scale

Country Status (1)

Country Link
CN (1) CN113192169B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6137492A (en) * 1997-04-03 2000-10-24 Microsoft Corporation Method and system for adaptive refinement of progressive meshes
EP1918880A2 (en) * 2005-04-19 2008-05-07 Digitalfish, Inc. Techniques and workflows for computer graphics animation system
CN108211352A (en) * 2017-12-28 2018-06-29 深圳市创梦天地科技股份有限公司 A kind of method and terminal for adjusting image quality
CN109966739A (en) * 2019-01-17 2019-07-05 珠海金山网络游戏科技有限公司 A kind of method and system optimizing game running
CN111068316A (en) * 2019-12-25 2020-04-28 北京像素软件科技股份有限公司 Game frame number adjusting method and device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6137492A (en) * 1997-04-03 2000-10-24 Microsoft Corporation Method and system for adaptive refinement of progressive meshes
EP1918880A2 (en) * 2005-04-19 2008-05-07 Digitalfish, Inc. Techniques and workflows for computer graphics animation system
CN108211352A (en) * 2017-12-28 2018-06-29 深圳市创梦天地科技股份有限公司 A kind of method and terminal for adjusting image quality
CN109966739A (en) * 2019-01-17 2019-07-05 珠海金山网络游戏科技有限公司 A kind of method and system optimizing game running
CN111068316A (en) * 2019-12-25 2020-04-28 北京像素软件科技股份有限公司 Game frame number adjusting method and device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李波: "基于GPU的河流场景自适应多细节层次网格仿真研究", 《科技通报》 *

Also Published As

Publication number Publication date
CN113192169B (en) 2021-11-05

Similar Documents

Publication Publication Date Title
CN108665521B (en) Image rendering method, device, system, computer readable storage medium and equipment
CN111292337B (en) Image background replacement method, device, equipment and storage medium
US8253722B2 (en) Method, medium, and system rendering 3D graphics data to minimize power consumption
EP4002281A1 (en) Layer composition method and apparatus, electronic device, and storage medium
CN111028191B (en) Anti-shake method and device for video image, electronic equipment and storage medium
CN108681439B (en) Uniform display method based on frame rate control
CN110135576A (en) A kind of unsupervised learning method for video deblurring
CN111489322B (en) Method and device for adding sky filter to static picture
WO2023174216A1 (en) Video resolution adaptive adjustment method, apparatus and device, and storage medium
CN108446089B (en) Data display method and device and display
US20060072017A1 (en) Creation of image based video using step-images
US11810524B2 (en) Virtual reality display device and control method thereof
CN113327193A (en) Image processing method, image processing apparatus, electronic device, and medium
TWI715157B (en) System and method for maintaining a stable frame rate
CN101533511B (en) Background image updating method and device thereof
CN112804527B (en) Image output method, image output device and computer-readable storage medium
CN113192169B (en) Image display optimization method and device for dynamically adjusting LOD Scale
CN102243856A (en) Method and device for dynamically switching screen data processing modes
TW201842775A (en) Systems and methods for deferred post-processes in video encoding
CN111833262A (en) Image noise reduction method and device and electronic equipment
CN110933493A (en) Video rendering system, method and computer-readable storage medium
CN114942854A (en) Screenshot method of GIF (graphic interchange Format) dynamic image and related equipment
CN108520259A (en) A kind of extracting method of foreground target, device, equipment and storage medium
CN115129279A (en) Image drawing method, image drawing device, electronic equipment and computer storage medium
CN115913939B (en) Real-time image data modification method and device in cloud desktop image transmission process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240109

Address after: 430000 No. 1 Baihe Road, Guandong Industrial Park, Wuhan East Lake New Technology Development Zone, Wuhan, Hubei Province

Patentee after: Wuhan lingjiu Microelectronics Co.,Ltd.

Address before: 310312, 3 / F, No.27, courtyard 801, Changlin, Xisanqi, Haidian District, Beijing 100085

Patentee before: BEIJING LINZHUO INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right