WO2023066095A1 - Rendering method and related apparatus - Google Patents

Rendering method and related apparatus Download PDF

Info

Publication number
WO2023066095A1
WO2023066095A1 PCT/CN2022/124742 CN2022124742W WO2023066095A1 WO 2023066095 A1 WO2023066095 A1 WO 2023066095A1 CN 2022124742 W CN2022124742 W CN 2022124742W WO 2023066095 A1 WO2023066095 A1 WO 2023066095A1
Authority
WO
WIPO (PCT)
Prior art keywords
rendering
terminal
description information
parameters
server
Prior art date
Application number
PCT/CN2022/124742
Other languages
French (fr)
Chinese (zh)
Inventor
张培
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023066095A1 publication Critical patent/WO2023066095A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • 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/445Program loading or initiating
    • 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
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation

Definitions

  • the embodiments of the present application relate to the field of computer technologies, and in particular, to a rendering method and related devices.
  • the rendering features are divided into several levels.
  • the parameters corresponding to different levels have different values, and the parameters corresponding to the same level have the same value.
  • the above classification method is the same for all terminal devices, regardless of the rendering capabilities of the terminal devices, the level division of the rendering characteristics is the same.
  • the level division of rendering characteristics is relatively poor, resulting in two terminal devices with different rendering capabilities using the same level of rendering characteristic parameter values for rendering; thus, it may appear that the rendering characteristic parameters The value cannot make full use of the rendering capabilities of terminal devices with strong rendering capabilities, or cannot adapt to the rendering capabilities of terminal devices with weak rendering capabilities, resulting in poor rendering effects.
  • Embodiments of the present application provide a rendering method and a related device, which are used to determine appropriate rendering characteristic parameters for different terminals, so as to improve rendering effects.
  • the present application provides a rendering method, including: a terminal sends a first request to a first server, and the first request carries description information of the terminal and description information of a first rendering characteristic, wherein the first rendering characteristic may be It is understood as a method of rendering with certain rendering parameters to produce a certain visual effect, for example, the visual effect can be a floodlight effect (bloom) of a lamp, or it can be motion blur, etc.; the description information of the terminal in this application
  • the content and the content of the description information of the first rendering characteristic are not specifically limited.
  • the first server may be a cloud server; the terminal receives the value of one or more parameters from the first server; for example, there may be many types of parameters, such as It can include one or more of the following parameters: the number of Gaussian blur iterations, the number of samples, the sampling zoom range, the ratio of high brightness, and whether to enable high dynamic range (High Dynamic Range, HDR); the terminal selects according to one or more parameters value, execute the rendering operation corresponding to the first rendering feature.
  • the number of Gaussian blur iterations the number of samples, the sampling zoom range, the ratio of high brightness, and whether to enable high dynamic range (High Dynamic Range, HDR)
  • HDR High Dynamic Range
  • the terminal sends the first request to the first server, so that the first server obtains the value of one or more parameters according to the description information of the terminal carried in the first request and the description information of the first rendering characteristic; since the first server determines that one or The descriptive information of the terminal is taken into account when setting the values of multiple parameters. Therefore, compared to dividing all terminal devices into several simple levels, this application can select the value of the parameter that is more suitable for the current terminal, so that the terminal The rendering operation is performed according to the value of the parameter, which can produce a better rendering effect.
  • the value of one or more parameters is obtained by the first server according to the description information of the terminal and the description information of the first rendering characteristic.
  • this application can select parameters that are more suitable for the current terminal than dividing all terminal devices into several simple levels. value, so that the terminal performs a rendering operation according to the value of the parameter, which can produce a better rendering effect.
  • the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters, where the identifier of the first rendering characteristic may be a name of the first rendering characteristic, The ID of the parameter may be the name of the parameter.
  • the description information of the first rendering characteristic includes the identifier of the first rendering characteristic and/or the identifier of one or more parameters, so that the first server can determine the first rendering characteristic according to the identifier of the first rendering characteristic and/or the identifier of one or more parameters Parameters required for rendering features.
  • the description information of the terminal includes at least one of the following information: the model of the terminal and the hardware information of the terminal, where the hardware information of the terminal may be the model of the central processing unit CPU and the model of the graphics processor , the size of the memory; in addition, the description information of the terminal may also include the rendering frame rate adopted by the terminal during the previous rendering operation.
  • the description information of the terminal includes the model of the terminal or the hardware information of the terminal, so that the first server can select the value of the parameter suitable for the terminal according to the model of the terminal or the hardware information of the terminal.
  • the terminal performing the rendering operation corresponding to the first rendering characteristic according to the value of one or more parameters includes: the terminal adjusts the value of one or more parameters according to the current running state of the terminal,
  • the current running state of the terminal can be represented in various ways, which is not specifically limited in this application; the terminal executes the rendering operation corresponding to the first rendering characteristic according to the adjusted values of one or more parameters.
  • the terminal adjusts the value of one or more parameters according to the current operating state of the terminal, so that the value of the adjusted parameter is more suitable for the terminal in the current operating state, so that the terminal performs rendering according to the value of the adjusted parameter operation, you can get a better rendering effect.
  • the current operating state of the terminal includes at least one of the following states: the utilization rate of the terminal central processing unit, the utilization rate of the terminal graphics processor, and the remaining memory space of the terminal; in addition, the terminal The current running state may also include other parameters such as storage read-write channel occupancy rate and remaining network card bandwidth.
  • This implementation method provides multiple representations of the current operating state of the terminal, so that the value of the parameter adjusted according to the current operating state of the terminal is more suitable for the terminal in the current operating state. In this way, the terminal according to the value of the adjusted parameter Perform rendering operations to get better rendering results.
  • the method further includes: the terminal receives first indication information from the user, where the first indication information indicates a first rendering type among the plurality of rendering types,
  • the first rendering type can also be understood as an experience style. This application does not specifically limit the first rendering type, for example, it can be “smooth”, “exquisite”, “low power consumption” and so on;
  • the input method is not specifically limited, for example, it may be input by touch or voice control; the first request also carries the identifier of the first rendering type.
  • the terminal receives first indication information from the user, where the first indication information indicates a first rendering type among multiple rendering types, and then carries an identifier of the first rendering type in the first request, so that the first server can
  • the identification of the terminal, the description information of the terminal, and the description information of the first rendering characteristic obtain the value of one or more parameters required by the first rendering characteristic; in this way, the terminal performs the rendering operation according to the value of the parameter, and can realize the rendering operation according to the user's selection Rendering type to present the corresponding rendering effect for the user.
  • the method further includes: the terminal receives second indication information from the user, where the second indication information indicates a second rendering type among multiple rendering types, and the second rendering type is different from the first rendering type.
  • the application does not specifically limit the second rendering type, for example, it can be "smooth", “exquisite”, “low power consumption”, etc.; the terminal sends a second request to the first server, and the second request carries the identification of the second rendering type ;
  • the terminal receives the value of one or more parameters from the first server, and the value of one or more parameters is obtained by the first server according to the identification of the second rendering type, specifically according to the identification of the second rendering type , the description information of the terminal and the description information of the first rendering characteristic; the terminal executes the rendering operation according to the value of one or more parameters required by the second rendering type.
  • the second request may not carry the description information of the terminal; since the first server can interact with multiple terminals, Therefore, in order to identify which terminal it is, the second request can also carry the description information of the terminal; in addition, if the user selects only the second rendering type, but the type of rendering feature has not changed, that is, the terminal still executes the corresponding rendering operation, then the second request may not carry the description information of the rendering characteristics. If the user selects a rendering type for the second rendering characteristic (different from the first rendering characteristic) used in the subsequent rendering process, the second request may also carry description information of the second rendering characteristic.
  • the terminal receives the second indication information, and then obtains the value of the parameter required by the second rendering type according to the second rendering type indicated by the second indication information, so as to provide the user with a rendering effect corresponding to the second rendering type; before that, if the terminal First receive the first indication information, then obtain the value of the parameters required by the first rendering type according to the first rendering type indicated by the first indication information, and provide the user with the rendering effect corresponding to the first rendering type, then this application also realizes Switching between different rendering effects.
  • the first request also carries the identification of the target application, and the rendering characteristics required by the target application during running include the first rendering characteristics; correspondingly, the value of one or more parameters is the first server, obtained according to the identifier of the target application program, the description information of the terminal, and the description information of the first rendering characteristic.
  • the first request also carries the identification of the target application, so that the first server can obtain the value of one or more parameters according to the identification of the target application, so that the value of one or more parameters can be adapted to the target application, so that the target application can get better rendering effect when it is running.
  • the present application provides a rendering method, including: the first server receives the first request from the terminal, the first request carries the description information of the terminal and the description information of the first rendering characteristic, and the description information of the terminal in this application
  • the content of the information and the content of the description information of the first rendering characteristic are not specifically limited, and the first server may be a cloud server; the first server obtains the description information of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic.
  • the number of parameters can be one or more; this parameter can include one or more of the following parameters: the number of Gaussian blur iterations, the number of samples, the sampling zoom range, the ratio of high brightness and whether to enable high dynamic range Range (High Dynamic Range, HDR); the first server sends the value of one or more parameters to the terminal.
  • this parameter can include one or more of the following parameters: the number of Gaussian blur iterations, the number of samples, the sampling zoom range, the ratio of high brightness and whether to enable high dynamic range Range (High Dynamic Range, HDR); the first server sends the value of one or more parameters to the terminal.
  • the first server receives the first request from the terminal, and obtains the value of the parameter required by the first rendering characteristic according to the description information of the terminal carried in the first request and the description information of the first rendering characteristic; since the first server determines the parameter Considering the description information of the terminal when taking the value of , so compared to dividing all terminal devices into several simple levels, this application can select the value of the parameter that is more suitable for the current terminal, so that the terminal can be based on the parameters.
  • the value is used to perform rendering operations, which can produce better rendering effects.
  • obtaining the value of one or more parameters by the first server according to the description information of the terminal and the description information of the first rendering characteristic includes: the first server according to the description information of the terminal, the description information of the first rendering characteristic
  • the description information, and the correspondence between the description information of the terminal, the description information of the first rendering characteristic, and the value of the parameter obtain the value of one or more parameters, wherein the correspondence can be obtained through a table, a graph, It can be expressed in multiple ways such as a tree, and the present application does not limit the specific storage format of the corresponding relationship.
  • the first server can more quickly and accurately determine the value of one or more parameters required by the first rendering characteristic. value.
  • obtaining the value of one or more parameters by the first server according to the description information of the terminal and the description information of the first rendering characteristic includes: A second server corresponding to the first rendering characteristic; the first server sends a request to the second server corresponding to the first rendering characteristic to acquire values of one or more parameters.
  • the first server determines the second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic, so that the value of the parameter can be obtained from the corresponding second server .
  • the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters, where the identifier of the first rendering characteristic may be a name of the first rendering characteristic, The ID of the parameter may be the name of the parameter.
  • the description information of the first rendering characteristic includes the identifier of the first rendering characteristic and/or the identifier of one or more parameters, so that the first server can determine the first rendering characteristic according to the identifier of the first rendering characteristic and/or the identifier of one or more parameters Parameters required for rendering features.
  • the description information of the terminal includes at least one of the following information: the model of the terminal and the hardware information of the terminal, where the hardware information of the terminal may be the model of the central processing unit CPU and the model of the graphics processor , the size of the memory; in addition, the description information of the terminal may also include the rendering frame rate adopted by the terminal during the previous rendering operation.
  • the description information of the terminal includes the model of the terminal or the hardware information of the terminal, so that the first server can select the value of the parameter suitable for the terminal according to the model of the terminal or the hardware information of the terminal.
  • the first request also carries the identifier of the first rendering type; correspondingly, the first server obtains the value of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic
  • the method includes: the first server obtains the value of one or more parameters required by the first rendering type according to the identifier of the first rendering type, the description information of the terminal, and the description information of the first rendering characteristic.
  • the first server can obtain the value of one or more parameters required by the first rendering characteristic according to the identifier of the first rendering type, the description information of the terminal, and the description information of the first rendering characteristic; in this way, the terminal executes the The rendering operation can realize the corresponding rendering effect for the user according to the rendering type selected by the user.
  • the method further includes: the first server receives the second request from the terminal, and the second request carries the identifier of the second rendering type; the first server obtains the second rendering type according to the identifier of the second rendering type The value of one or more parameters required by the rendering type; the first server sends the value of one or more parameters required by the second rendering type to the terminal.
  • the server obtains the value of one or more parameters required by the second rendering type according to the identification of the second rendering type, so that the terminal performs a rendering operation according to the value of one or more parameters required by the second rendering type, so as to provide the user with The rendering effect corresponding to the second rendering type; before that, if the server obtains the selection of one or more parameters required by the first rendering characteristic according to the identification of the first rendering type, the description information of the terminal and the description information of the first rendering characteristic value, so that the terminal performs a rendering operation according to the value of one or more parameters required by the first rendering characteristic, so as to provide the user with the rendering effect corresponding to the first rendering type, and the present application also realizes the switching of different rendering effects.
  • the embodiment of the present application also provides a rendering device, including: a transceiver unit, which sends a first request to the first server, and the first request carries description information of the terminal and description information of the first rendering characteristic; the transceiver unit , configured to receive values of one or more parameters from the first server; a processing unit configured to execute a rendering operation corresponding to the first rendering characteristic according to values of the one or more parameters.
  • the value of one or more parameters is obtained by the first server according to the description information of the terminal and the description information of the first rendering characteristic.
  • the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters.
  • the description information of the terminal includes a model of the terminal and/or hardware information of the terminal.
  • the processing unit is configured to adjust the value of one or more parameters according to the current operating state of the terminal; and execute the first rendering characteristic according to the adjusted value of one or more parameters The corresponding rendering operation.
  • the current running state of the terminal includes at least one of the following states: the utilization rate of the central processing unit of the terminal, the utilization rate of the graphic processor of the terminal, and the remaining memory space of the terminal.
  • the transceiving unit is further configured to receive first indication information from the user, where the first indication information indicates a first rendering type among multiple rendering types; the first request also carries an identifier of the first rendering type.
  • the transceiver unit is further configured to receive second indication information from the user, where the second indication information indicates the second rendering type among the plurality of rendering types; send a second request to the first server, and the second request carries the identifier of the second rendering type; receives the value of one or more parameters required by the second rendering type from the first server; the processing unit is also used for one or more parameters required by the second rendering type value to perform rendering operations.
  • the embodiment of the present application further provides a rendering device, including: a transceiver unit, configured to receive a first request from a terminal, where the first request carries description information of the terminal and description information of the first rendering characteristic; processing The unit is configured to obtain the values of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic; the sending and receiving unit is configured to send the values of one or more parameters to the terminal.
  • a transceiver unit configured to receive a first request from a terminal, where the first request carries description information of the terminal and description information of the first rendering characteristic
  • processing The unit is configured to obtain the values of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic
  • the sending and receiving unit is configured to send the values of one or more parameters to the terminal.
  • the processing unit is configured to, according to the description information of the terminal, the description information of the first rendering characteristic, and the relationship between the description information of the terminal, the description information of the first rendering characteristic, and the value of the parameter Corresponding relationship, get the value of one or more parameters.
  • the processing unit is configured to determine the second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic;
  • the transceiver unit is configured to send a request to the second server corresponding to the first rendering characteristic to obtain values of one or more parameters.
  • the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters.
  • the description information of the terminal includes a model of the terminal and/or hardware information of the terminal.
  • the first request also carries the identifier of the first rendering type; the processing unit is configured to obtain one or more The value of multiple parameters.
  • the transceiver unit is configured to receive the second request from the terminal, and the second request carries the identifier of the second rendering type; the processing unit is configured to obtain one or more rendering types according to the identifier of the second rendering type The value of one parameter; the transceiver unit is used to send the value of one or more parameters to the terminal.
  • the present application provides a terminal device, including a memory and a processor, wherein the memory is used to store computer-readable instructions (or called computer programs), and the processor is used to read the computer
  • the instructions can be read to implement the method provided by any implementation manner in the aforementioned first aspect.
  • the present application provides a server, including a memory and a processor, wherein the memory is used to store computer-readable instructions (or called computer programs), and the processor is used to read the computer-readable The instruction is read to implement the method provided by any implementation manner in the aforementioned second aspect.
  • the present application provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the above-mentioned any aspect, the second aspect and various possible implementations. method.
  • the present application provides a computer-readable storage medium, including instructions.
  • the instructions When the instructions are run on a computer, the computer executes any of the aforementioned aspects, the second aspect, and various possible implementations. described method.
  • the present application provides a chip, including one or more processors. Part or all of the processor is used to read and execute the computer program stored in the memory, so as to execute the method described in any one of the foregoing aspects, the second aspect and various possible implementation manners.
  • the chip includes a memory, and the memory and the processor are connected to the memory through a circuit or wires. Further optionally, the chip further includes a communication interface, and the processor is connected to the communication interface.
  • the communication interface is used to receive data and/or information to be processed, and the processor obtains the data and/or information from the communication interface, processes the data and/or information, and outputs the processing result through the communication interface.
  • the communication interface may be an input-output interface.
  • some of the one or more processors may implement some of the steps in the above method through dedicated hardware, for example, the processing related to the neural network model may be performed by a dedicated neural network processor or graphics processor to achieve.
  • the method provided in the embodiment of the present application may be implemented by one chip, or may be implemented by multiple chips in cooperation.
  • FIG. 1 is a schematic diagram of the architecture of the rendering system in the embodiment of the present application.
  • FIG. 2 is a schematic diagram of description information of a rendered scene in an embodiment of the present application
  • Fig. 3 is the schematic diagram that test server controls mobile phone to carry out test in the embodiment of the present application
  • FIG. 4 is a schematic diagram of an embodiment of a rendering method provided by the present application.
  • FIG. 5 is a schematic diagram of different parameter values corresponding to different types of terminals in the embodiment of the present application.
  • FIG. 6 is a schematic diagram of the rendering effect in the embodiment of the present application.
  • FIG. 7 is a schematic diagram of another embodiment of a rendering method provided by the present application.
  • FIG. 8 is a schematic diagram of an embodiment of a rendering device provided by the present application.
  • FIG. 9 is a schematic diagram of another embodiment of a rendering device provided by the present application.
  • FIG. 10 is a schematic structural diagram of a terminal device provided by the present application.
  • FIG. 11 is a schematic structural diagram of a server provided by the present application.
  • the embodiment of the present application can be applied to the rendering system shown in FIG. 1 , where the rendering system includes a terminal device, a first server, a second server, and a test device.
  • the terminal device may be referred to as a terminal for short, and may be a smart phone, a tablet computer, a notebook computer, a desktop computer, and a vehicle-mounted device.
  • An application program is deployed in the terminal device, and the application program may be a three-dimensional (Three Dimensions, 3D) application program, specifically a game-like 3D application program.
  • the rendering characteristic may be understood as a method of rendering with certain rendering parameters to produce a certain visual effect; for example, the visual effect may be a special effect (bloom) of a lamp, or may be motion blur.
  • the first server is used to query the value of the parameter required by the rendering feature from the second server, and provide the value of the parameter to the terminal, and the number of the first server is usually one.
  • the second server may also be referred to as a test server, and is used for testing the values of the parameters required by the rendering characteristics, and for storing the values of the parameters required for the rendering characteristics obtained from the test.
  • FIG. 1 shows two second servers; during the test, each second server can control at least one test device for testing.
  • the test device is used to test the values of the parameters required by the rendering feature, so as to obtain more suitable values of the parameters.
  • the test device can be a server or a terminal device; when the test device is a server, the test device can run a virtual machine to test the value of the parameters required for rendering features; when the test device is a terminal, it can realize Test the values of the parameters required by the rendering feature locally on the terminal.
  • test equipment when the test equipment is a terminal, in order to obtain the values of parameters suitable for various terminals, the number of test equipment is usually multiple; for example, taking a mobile phone as an example, the test equipment can include as many types of mobile phones as possible , wherein Figure 1 shows three mobile phones.
  • the developer when developing an application, the developer will construct a description file of the rendering scene, and the description file of the rendering scene includes description information of the rendering scene.
  • the description information of the rendered scene includes the detailed description information of the mesh Mesh model, material or texture, lighting, and all rendering features in the application;
  • Figure 2 shows rendering feature 1, rendering feature 2, and rendering Feature 3 These three rendering features.
  • an extras field (used to indicate additional information) can be added, and detailed description information of the rendering feature can be added in the extras field;
  • the detailed description information of the rendering feature can include the feature name featurename, The type type of the rendering feature, the address testserver of the test server required for the rendering feature, and the description information of the parameters required for the rendering feature.
  • the description information of the parameters required for the rendering feature can be added by adding a new field, which can include rendering The parameter name paraname required by the feature, the parameter type "datatype" required by the rendering feature, the value of the parameter required by the rendering feature, etc.
  • the attribute name of the rendering attribute is "bloom_hdr”
  • the type of the rendering attribute is "postProcessing", which specifically indicates that the type of the rendering attribute is post-processing
  • the field name of the parameter required by the rendering attribute is "Number of Gaussian Blur Iterations”
  • the rendering attribute Required parameter type is 'int'.
  • the description information of the rendering feature 1 may include the name of the rendering feature 1, the names of the parameters required by the rendering feature 1, and the values of the parameters required by the rendering feature 1.
  • the developer will send the description file of the rendering scene to the test server (that is, the first server in Figure 1), and the test server will run the server-side rendering test program after receiving the description file of the rendering scene, and then send the rendering scene
  • the description information of the rendered scene in the description file is sent to multiple different mobile phones.
  • Each mobile phone runs a mobile-side rendering test program. After receiving the description information of the rendering scene, it will traverse each parameter, and continuously test the rendering effect by modifying the value of the parameters required for rendering characteristics, so as to obtain the results obtained in the test.
  • the value of the parameters required for the rendering characteristics with better rendering effects on the current mobile phone there are many schemes for traversing the parameters, which are not specifically limited in this embodiment of the application, which may include sequential traversal or optimal traversal according to rendering Strategy to traverse; the scheme of the traverse parameters can be selected by the developer when uploading the description file of the rendered scene.
  • the test server runs the rendering test program, and controls the three mobile phones of mobile phone 1, mobile phone 2 and mobile phone 3 to test;
  • the value of the parameter required for the rendering characteristic with good effect the value of the parameter required for the rendering characteristic with good rendering effect in mobile phone 2, and the value of the parameter required for the rendering characteristic with good rendering effect in mobile phone 3.
  • the rendering type can be expressed as an experience style; for example, the experience style can include “smooth”, “exquisite”, “low power consumption” and so on; corresponding
  • the experience style can include "smooth”, “exquisite”, “low power consumption” and so on; corresponding
  • each mobile phone will generate the values of the parameters required for the rendering characteristics with the best rendering effect.
  • the values of the parameters corresponding to different mobile phones may be different.
  • the mobile phone can run other applications in the background to simulate the scene where the user actually uses the mobile phone; when the value of a certain parameter cannot be set on the mobile phone, the parameter can be marked as Invalid or unavailable.
  • each mobile phone After the test is completed, each mobile phone will send the optimal value of the parameters required for the rendering characteristics corresponding to each rendering type to the test server for storage by the test server.
  • the description information of the terminal includes the following information At least one: the model of the terminal and the hardware information of the terminal.
  • the hardware information mainly includes hardware information related to rendering capabilities.
  • the hardware information may include information such as a central processing unit CPU, a graphics card, and memory.
  • the embodiment of the present application provides a rendering method.
  • the rendering method is to obtain the values of the parameters of the appropriate rendering characteristics of a large number of terminals through pre-testing; when rendering is required, the terminal can send the server Request the value of the parameter that is most suitable for its own rendering characteristics, and then perform the rendering operation according to the value of the requested parameter, so as to obtain a better rendering effect.
  • the terminal obtains the value of the parameter required for the rendering characteristic from the server, so when the terminal downloads the application program, it can first download the scene of the rendering characteristic that does not include the value of the parameter Description files and other relevant data of the application program; when the terminal installs or starts to start the application program, execute the method provided by the embodiment of the present application to obtain the values of the parameters required for rendering features from the server.
  • the present application provides an embodiment of a rendering method, which includes:
  • Step 101 the terminal sends a first request to a first server, and the first request carries description information of the terminal and description information of a first rendering characteristic.
  • the first server may be a cloud server.
  • the terminal description information includes at least one of the following information: terminal model and terminal hardware information.
  • the hardware information of the terminal may be a model of a central processing unit CPU, a model of a graphics processor, a size of a memory, and the like.
  • the description information of the terminal may also include the rendering frame rate used in the last rendering process of the terminal.
  • the description information of the first rendering characteristic may include the identifier of the first rendering characteristic and/or the description information of the first rendering characteristic ID of one or more parameters required.
  • description information of the first rendering characteristic may also include other information, for details, please refer to related descriptions above.
  • the first request also carries the identifier of the target application program, and the rendering characteristics required by the target application program during running include the first rendering characteristic.
  • step 101 After step 101 is executed, correspondingly, the first server receives a first request from the terminal, where the first request carries description information of the terminal and description information of the first rendering characteristic.
  • step 102 the first server obtains values of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic.
  • the number of parameters obtained by the first server may be one or multiple; this parameter is a parameter required by the first rendering characteristic, and specifically may include one or more of the following parameters: the number of Gaussian blur iterations, Sampling times, sampling zoom range, high brightness ratio, and whether to enable high dynamic range (High Dynamic Range, HDR).
  • this parameter is a parameter required by the first rendering characteristic, and specifically may include one or more of the following parameters: the number of Gaussian blur iterations, Sampling times, sampling zoom range, high brightness ratio, and whether to enable high dynamic range (High Dynamic Range, HDR).
  • the values of the parameters required for the first rendering feature are as follows: the number of Gaussian blur iterations is 4, the number of sampling times is 2, the sampling zoom range is 1, and the high The brightness ratio is 10% and HDR is not enabled; when the terminal model is Mate20, the values of the parameters required for the first rendering feature are as follows: the number of Gaussian blur iterations is 5, the number of samples is 3, and the sampling zoom range is 1. The proportion of high brightness is 10% and HDR is not enabled; when the terminal model is Mate30, the values of the parameters required for the first rendering feature are as follows: the number of Gaussian blur iterations is 6, the number of samples is 3, and the number of samples is 3.
  • the zoom range is 2, the high brightness ratio is 20%, and HDR is not enabled; when the terminal model is Mate10, the values of the parameters required for the first rendering feature are as follows: the number of Gaussian blur iterations is 6, and the number of samples is 3.
  • the sampling zoom range is 3, the high brightness ratio is 20%, and HDR is not enabled.
  • the first server obtains the value of the parameter.
  • the first case is that the value of the parameter is stored in the first server
  • the second case is that the value of the parameter is stored in other servers. (for example, the second server mentioned above, that is, the test server), which will be introduced respectively below.
  • step 102 may include:
  • the first server obtains the information of one or more parameters. value.
  • the corresponding relationship can be expressed in various ways, for example, the corresponding relationship can be represented by the following table.
  • the different first The second server controls the corresponding terminal to perform the test, and the specific test process can be understood by referring to the relevant description above.
  • step 102 may include:
  • the first server determines a second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic
  • the first server sends a request to the second server corresponding to the first rendering characteristic to obtain values of one or more parameters.
  • the first server may store the corresponding relationship between the rendering characteristic and the second server in a form such as a table, so as to determine the server corresponding to the first rendering characteristic.
  • the first server determines the second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic, and then the first server sends a request to the second server corresponding to the first rendering characteristic, and the second server After receiving the request, it will query according to the description information of the terminal, and then return the values of one or more parameters found in the query to the first server.
  • the first rendering feature requires five parameters, the number of Gaussian blur iterations, the number of samples, the sampling zoom range, the ratio of high brightness, and whether to enable high dynamic range (High Dynamic Range, HDR). These five parameters are stored in the second server In A, the first rendering feature requires three parameters: the number of Gaussian blur iterations, the number of sampling times, and the sampling zoom range, and these three parameters are stored in the second server B; then the first server can determine the second server, and then send a request to the second server corresponding to the first rendering characteristic to obtain the values of the above five parameters; similarly, the first server can determine the second server corresponding to the second rendering characteristic, and then send the request to the second rendering characteristic The corresponding second server sends a request to obtain the values of the above three parameters.
  • step 101 the description information of the terminal may also include the rendering frame rate used in the last rendering process of the terminal.
  • step 102 includes: the first server may also rate to get the value of one or more parameters.
  • the request may also carry the identifier of the target application.
  • the first server can obtain the values of one or more parameters required by the first rendering characteristic according to the application identifier, the description information of the terminal, and the description information of the first rendering characteristic, that is, the values required by the first rendering characteristic
  • the value of one or more parameters of is obtained by the first server according to the identification of the application program, the description information of the terminal, and the description information of the first rendering characteristic; the specific process can be understood by referring to the foregoing description.
  • Step 103 the first server sends values of one or more parameters to the terminal.
  • the terminal receives values of one or more parameters from the first server, that is, the values of the parameters are obtained by the first server according to the description information of the terminal and the description information of the first rendering characteristic.
  • the terminal may store the value of the parameter in the description file of the rendered scene, or in other files.
  • Step 104 the terminal executes a rendering operation corresponding to the first rendering characteristic according to values of one or more parameters.
  • the rendering operation may be understood as an operation of rendering an image according to the method indicated by the first rendering characteristic.
  • step 104 there are many methods for implementing step 104, which are not specifically limited in this embodiment of the present application.
  • step 104 includes:
  • the terminal adjusts the value of one or more parameters required by the first rendering feature according to the current operating state of the terminal
  • the terminal performs a rendering operation according to values of one or more parameters required by the adjusted first rendering characteristic.
  • the current operating state of the terminal can be expressed in various ways.
  • the current operating state of the terminal includes at least one of the following states: the state of the central processing unit CPU in the terminal, the state of the graphics processor in the terminal and the state of the memory in the terminal.
  • the state of the CPU and the state of the graphics processor are generally represented by a usage rate (or utilization rate), and the state of the memory is generally represented by a remaining memory space.
  • the current operating status of the terminal may also include the occupancy rate of the storage read-write channel and the remaining bandwidth of the network card.
  • the parameters required by the first rendering feature include the number of iterations of Gaussian blur and the number of samples
  • the number of iterations of Gaussian blur and/or the number of samples can be appropriately reduced;
  • the usage rate is high, the number of Gaussian blur iterations and/or sampling times can be appropriately reduced, and when the remaining memory space is small, the number of Gaussian blur iterations and/or sampling times can be appropriately reduced.
  • the terminal sends the first request to the first server, so that the first server obtains the parameters required by the first rendering characteristic according to the description information of the terminal carried in the first request and the description information of the first rendering characteristic. value; since the first server considers the description information of the terminal when determining the value of the parameter required for the first rendering characteristic, compared to dividing all terminal devices into several simple levels, the embodiment of the present application can The value of the parameter that is more suitable for the current terminal is selected, so that the terminal performs a rendering operation according to the value of the parameter, which can produce a better rendering effect.
  • the embodiments of the present application can give full play to the rendering capabilities of high-configuration terminals, so that high-configuration terminals can obtain better rendering effects; especially when the scene to be rendered is complex, for example, when the scene to be rendered is complex In the case of 3D scenes, the embodiments of the present application can better utilize the advantages of high-configuration terminals in terms of rendering capabilities.
  • the embodiments of the present application can prevent low-configuration terminals from using inappropriate parameter values for rendering, resulting in poor rendering effects and even unsmooth running of applications, so that applications with complex screen scenes can also be displayed on low-configuration terminals. run smoothly.
  • the embodiment of the present application adopts four sets of different parameter values for testing, and the rendering effect is shown in FIG. 6 .
  • the appropriate parameter value can enable the terminal to obtain better rendering effect.
  • the present application provides another embodiment of a rendering method.
  • the rendering type includes a first rendering type and a second rendering type, and the first rendering type and the second rendering type refer to Different rendering types, different rendering types can be understood as different experience styles; based on this, this embodiment includes:
  • Step 201 the terminal receives first indication information from a user.
  • the first indication information indicates the first rendering type among multiple rendering types.
  • the embodiment of the present application does not specifically limit the first rendering type, for example, it may be “smooth”, “beautiful”, “low power consumption” and so on.
  • Step 202 the terminal sends a first request to the first server.
  • the first request carries the description information of the terminal and the description information of the first rendering characteristic, and in addition, the first request also carries an identifier of the first rendering type.
  • the first server obtains values of one or more parameters required by the first rendering type according to the identifier of the first rendering type, the description information of the terminal, and the description information of the first rendering characteristic.
  • the value of one or more parameters required by the first rendering type is obtained by the first server according to the identifier of the first rendering type, description information of the terminal, and description information of the first rendering characteristic.
  • Step 203 is similar to step 102, except that, in the process of executing step 203, the first rendering type selected by the user is also taken into consideration, other content can be understood by referring to the related description of step 102.
  • step 204 the first server sends values of one or more parameters to the terminal.
  • Step 204 is similar to step 103, and step 204 can be understood by referring to the relevant description of step 103 for details.
  • Step 205 the terminal executes a rendering operation corresponding to the first rendering characteristic according to values of one or more parameters.
  • Step 205 is similar to step 104, and step 205 can be understood by referring to the relevant description of step 104 for details.
  • Step 206 the terminal receives second indication information from the user, where the second indication information indicates a second rendering type among the plurality of rendering types.
  • the embodiment of the present application does not specifically limit the second rendering type, for example, it may be “smooth”, “beautiful”, “low power consumption” and so on.
  • step 206 may be performed when steps 201 to 203 are performed, or may be performed under other conditions.
  • step 204 the first server sends the value of the parameter of the default rendering type; after that, the user selects the second rendering type, and then executes step 206, it can be seen that, in this In this case, steps 201 to 203 are not executed, but step 206 is executed.
  • Step 207 the terminal sends a second request to the first server, and the second request carries an identifier of the second rendering type.
  • the terminal interacts with the first server (for example, steps 201 to 205 are executed), the first server already has the terminal's description information, so the second request may not carry the terminal's description information.
  • the second request may also carry terminal description information.
  • the second request may not carry the description information of the rendering characteristic.
  • the second request may also carry description information of the second rendering characteristic.
  • the first server receives the second request from the terminal, and the second request carries the identifier of the second rendering type; as an implementable manner, the second request carries the description information of the terminal and/or the second rendering characteristic Description.
  • step 208 the first server obtains values of one or more parameters required by the second rendering type according to the identifier of the second rendering type.
  • step 208 includes: the first server obtains the information required by the second rendering type according to the identifier of the second rendering type and at least one of the description information of the terminal and the description information of the first rendering characteristic. The value of one or more parameters.
  • step 209 the first server sends values of one or more parameters required by the second rendering type to the terminal.
  • the terminal receives values of one or more parameters from the first server, where the values of the one or more parameters are obtained by the first server according to the identifier of the second rendering type,
  • Step 210 the terminal performs a rendering operation according to values of one or more parameters required by the second rendering type.
  • the rendering operation may be a rendering operation corresponding to the first rendering characteristic, or may be a rendering operation corresponding to the second rendering characteristic.
  • Steps 206 to 210 are similar to steps 201 to 205. For details, reference may be made to the relevant descriptions of steps 201 to 205 to understand steps 206 to 210.
  • the terminal first receives the first indication information, and then acquires the value of the parameters required by the first rendering type according to the first rendering type indicated by the first indication information, so as to provide the user with the rendering effect corresponding to the first rendering type ; Then, the terminal receives the second indication information, and then obtains the value of the parameter required by the second rendering type according to the second rendering type indicated by the second indication information, so as to provide the user with a rendering effect corresponding to the second rendering type, so as to realize different Switching of rendering effects.
  • step 210 when step 210 is executed, if one of the parameters required by the first rendering type is the same as one of the parameters required by the second rendering type, in order to prevent the rendering effect from changing too much, you can first set The same parameter generates the value of the transition state, and then performs the rendering operation according to the value of the parameter of the transition state, so as to achieve a smooth transition between two different rendering types; among them, the method of generating the value of the parameter of the transition state is as follows Various, the embodiment of the present application does not specifically limit this, for example, the difference method can be used, and the transition can be calculated according to the values of the parameters required by the first rendering type and the values of the parameters required by the second rendering type The value of the parameter of the state.
  • the parameters required by the first rendering type and the parameters required by the second rendering type both include the number of Gaussian blur iterations, and the number of Gaussian blur iterations required by the first rendering type is 4 times, and the number of Gaussian blur iterations required by the second rendering type If the number of Gaussian blur iterations is 6, you can first perform the rendering operation according to the Gaussian blur iteration number of 5 times, and then perform the rendering operation according to the Gaussian blur iteration number of 6 times, so as to achieve smoothing from the first rendering type to the second rendering type Switch to achieve smooth switching of different rendering effects.
  • the server can first send the values of the parameters required by each of the multiple rendering types to the terminal, and then the user selects the first rendering type among the multiple rendering types, and the terminal then After that, if the user selects the second rendering type among the multiple rendering types, the terminal will perform the rendering operation according to the value of the parameters required by the second rendering type; this method reduces the number of terminals and The interaction between the first server can reduce the switching time of different rendering types.
  • the embodiment of the present application also provides an embodiment of a rendering device, including: a transceiver unit 301, which sends a first request to the first server, and the first request carries the description information of the terminal and the first rendering Characteristic description information; the transceiver unit 301 is configured to receive the value of one or more parameters from the first server; the processing unit 302 is configured to perform rendering corresponding to the first rendering characteristic according to the value of one or more parameters operate.
  • the value of one or more parameters is obtained by the first server according to the description information of the terminal and the description information of the first rendering characteristic.
  • the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters.
  • the description information of the terminal includes a model of the terminal and/or hardware information of the terminal.
  • the processing unit 302 is configured to adjust the value of one or more parameters according to the current operating state of the terminal; perform the first rendering according to the adjusted value of one or more parameters The rendering operation corresponding to the feature.
  • the current running state of the terminal includes at least one of the following states: the utilization rate of the central processing unit of the terminal, the utilization rate of the graphic processor of the terminal, and the remaining memory space of the terminal.
  • the transceiving unit 301 is further configured to receive first indication information from the user, where the first indication information indicates a first rendering type among multiple rendering types; the first request also carries an identifier of the first rendering type.
  • the transceiver unit 301 is further configured to receive second indication information from the user, where the second indication information indicates a second rendering type among multiple rendering types; send a second request to the first server, and the second The request carries the identification of the second rendering type; receives the value of one or more parameters required by the second rendering type from the first server; the processing unit 302 is also configured to The value of the parameter, perform the rendering operation.
  • the embodiment of the present application also provides an embodiment of a rendering device, including: a transceiver unit 401, configured to receive a first request from a terminal, the first request carries the description information of the terminal and the first The description information of the rendering characteristic; the processing unit 402 is configured to obtain the value of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic; the transceiver unit 401 is configured to send one or more parameters to the terminal value of .
  • the processing unit 402 is configured to, according to the description information of the terminal, the description information of the first rendering characteristic, and the relationship among the description information of the terminal, the description information of the first rendering characteristic, and the value of the parameter Corresponding relationship, get the value of one or more parameters.
  • the processing unit 402 is configured to determine a second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic;
  • the transceiving unit 401 is configured to send a request to a second server corresponding to the first rendering characteristic, so as to obtain values of one or more parameters.
  • the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters.
  • the description information of the terminal includes a model of the terminal and/or hardware information of the terminal.
  • the first request also carries the identifier of the first rendering type; the processing unit 402 is configured to obtain a or the value of multiple parameters.
  • the transceiver unit 401 is configured to receive a second request from the terminal, and the second request carries the identifier of the second rendering type; the processing unit 402 is configured to obtain a or values of multiple parameters; the transceiver unit 401 is configured to send values of one or more parameters to the terminal.
  • the embodiment of the present application further provides a terminal device 1200 .
  • the terminal device 1200 is configured to perform operations performed by the terminal device in the foregoing method embodiments.
  • a PC is used as an example of a terminal device for description.
  • the terminal device 1200 includes a processor 1201, a memory 1202, an input unit 1203, a display unit 1204, a communication unit 1206 and other components.
  • the memory 1202 can be used to store software programs and modules, and the processor 1201 executes various functional applications and data processing of the device by running the software programs and modules stored in the memory 1202 .
  • the memory 1202 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the processor 1201 can be used to calculate the value of the parameter, the display time, and judge whether to display the video frame or not.
  • the processor 1201 includes, but is not limited to, various types of processors, such as a central processing unit (central processing unit, CPU), an image signal processor, and the like.
  • the input unit 1203 can be used to receive inputted number or character information, and generate key signal input related to user settings and function control of the device.
  • the input unit 1203 may include a touch panel 1231 .
  • the touch panel 1231 also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1231 or near the touch panel 1231). operate).
  • the input unit 1130 may also include other input devices 1232 .
  • other input devices 1232 may include but not limited to one or more of a physical keyboard, mouse, joystick, and the like.
  • the display unit 1204 can be used to display video frames.
  • the display unit 1204 may include a display panel 1241.
  • the display panel 1241 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the touch panel 1231 can be integrated with the display panel 1241 to realize the input and output functions of the device.
  • the communication unit 1206 is configured to establish a communication channel and communicate with other terminal devices, and may be specifically configured to send or receive messages carrying video frame numbers, video data, etc., and send or receive indication information indicating not to display a certain video frame.
  • the communication unit 1206 may include communication modules such as a wireless local area network module, a Bluetooth module, and a baseband module, or may also include a PLC communication module, a wifi communication module, a UWB communication module, an ultrasonic communication module, RFID communication, and ZigBee communication.
  • various communication modules in the communication unit 1206 generally appear in the form of integrated circuit chips, and can be selectively combined without including all communication modules and corresponding antenna groups.
  • the embodiment of the present application also provides a server 2000, which is used to perform the operations performed by the server in the above method embodiment; as shown in the figure, the server 2000 includes a processor 701, a storage unit 702, a storage medium 703 , a bus 704 , and a communication interface 705 . Wherein, the processor 701, the storage unit 702, and the storage medium 703 communicate through the bus 704, and the communication may also be realized through other means such as wireless transmission.
  • the storage medium 703 is used for storing instructions, and the processor 701 is used for executing the instructions stored in the storage medium 703 .
  • the storage medium 703 stores program codes, and the processor 701 can call the program codes stored in the storage medium 703 to perform corresponding operations.
  • the bus 704 may include not only a data bus, but also a power bus, a control bus, and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus 704 in the figure.
  • the storage unit 702 may include kernels and programs.
  • the processor 701 is configured to execute the method executed by the rendering device in FIG. 9 .
  • An embodiment of the present application provides a computer-readable medium, the computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is made to perform the method performed by the display device in the above method embodiments.
  • An embodiment of the present application provides a chip, and the chip includes a processor and a communication interface, where the communication interface is, for example, an input/output interface, a pin, or a circuit.
  • the processor is configured to read instructions to execute the methods executed by the display device in the above method embodiments.
  • An embodiment of the present application provides a computer program product, and when the computer program product is executed by a computer, the method performed by the display device in the foregoing method embodiment is implemented.
  • the processor mentioned in any of the above is a general-purpose central processing unit (CPU), a microprocessor, or an application-specific integrated circuit (application-specific integrated circuit, ASIC).
  • CPU central processing unit
  • microprocessor microprocessor
  • ASIC application-specific integrated circuit

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Graphics (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Geometry (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed in the present application are a rendering method and a related apparatus, which are used for determining, for different terminals, parameters of suitable rendering characteristics, so as to improve a rendering effect. The method in the embodiments of the present application comprises: a terminal sending a first request to a first server, wherein the first request carries description information of the terminal and description information of a first rendering characteristic; the first server obtaining a value of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic, and sending the value to the terminal; and the terminal executing, according to the value of the one or more parameters, a rendering operation which corresponds to the first rendering characteristic.

Description

一种渲染方法及相关装置A rendering method and related device
本申请要求于2021年10月21日提交中国专利局、申请号为CN202111228777.X、申请名称为“一种渲染方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with application number CN202111228777.X and application title "A Rendering Method and Related Device" filed with the China Patent Office on October 21, 2021, the entire contents of which are hereby incorporated by reference Applying.
技术领域technical field
本申请实施例涉及计算机技术领域,尤其涉及一种渲染方法及相关装置。The embodiments of the present application relate to the field of computer technologies, and in particular, to a rendering method and related devices.
背景技术Background technique
随着计算机技术的发展,涌现出越来越多的应用程序。像游戏类的应用程序在运行时,需要采用特定的方法进行渲染,这种特定的方法也可以称为渲染特性。With the development of computer technology, more and more applications emerge. When an application such as a game is running, it needs to use a specific method for rendering, and this specific method can also be called a rendering feature.
目前,会将渲染特性划分为几个等级,不同的等级对应的参数的取值不同,同一等级对应的参数的取值相同;应用程序在运行时,可以选择一个等级对应的参数进行渲染。At present, the rendering features are divided into several levels. The parameters corresponding to different levels have different values, and the parameters corresponding to the same level have the same value. When the application is running, you can choose the parameters corresponding to a level for rendering.
然而,上述划分方法对于所有的终端设备,无论终端设备的渲染能力如何,渲染特性的等级划分都是相同的。However, the above classification method is the same for all terminal devices, regardless of the rendering capabilities of the terminal devices, the level division of the rendering characteristics is the same.
由于终端设备的种类众多,所以渲染特性的等级划分较粗劣,导致渲染能力不同的两种终端设备采用同一等级的渲染特性的参数的取值进行渲染;这样,便可能出现,渲染特性的参数的取值无法发挥渲染能力强的终端设备的渲染能力,或无法适应渲染能力弱的终端设备的渲染能力的问题,进而导致渲染效果较差。Due to the large variety of terminal devices, the level division of rendering characteristics is relatively poor, resulting in two terminal devices with different rendering capabilities using the same level of rendering characteristic parameter values for rendering; thus, it may appear that the rendering characteristic parameters The value cannot make full use of the rendering capabilities of terminal devices with strong rendering capabilities, or cannot adapt to the rendering capabilities of terminal devices with weak rendering capabilities, resulting in poor rendering effects.
发明内容Contents of the invention
本申请实施例提供了一种渲染方法及相关装置,用于为不同的终端确定合适的渲染特性的参数,以提高渲染效果。Embodiments of the present application provide a rendering method and a related device, which are used to determine appropriate rendering characteristic parameters for different terminals, so as to improve rendering effects.
第一方面,本申请提供了一种渲染方法,包括:终端向第一服务器发送第一请求,第一请求中携带终端的描述信息以及第一渲染特性的描述信息,其中,第一渲染特性可以理解为采用某些渲染参数进行渲染,以产生某种视觉效果的方法,例如,该视觉效果可以是灯的泛光特效(bloom),也可以是运动模糊等;本申请对终端的描述信息的内容以及第一渲染特性的描述信息的内容均不作具体限定,第一服务器可以是云端服务器;终端接收来自第一服务器的一个或多个参数的取值;例如,参数的种类可以有很多,例如可以包括以下参数中的一个或多个:高斯模糊迭代次数、采样次数、采样缩放范围、高亮度占比以及是否启用高动态范围(High Dynamic Range,HDR);终端根据一个或多个参数的取值,执行第一渲染特性对应的渲染操作。In a first aspect, the present application provides a rendering method, including: a terminal sends a first request to a first server, and the first request carries description information of the terminal and description information of a first rendering characteristic, wherein the first rendering characteristic may be It is understood as a method of rendering with certain rendering parameters to produce a certain visual effect, for example, the visual effect can be a floodlight effect (bloom) of a lamp, or it can be motion blur, etc.; the description information of the terminal in this application The content and the content of the description information of the first rendering characteristic are not specifically limited. The first server may be a cloud server; the terminal receives the value of one or more parameters from the first server; for example, there may be many types of parameters, such as It can include one or more of the following parameters: the number of Gaussian blur iterations, the number of samples, the sampling zoom range, the ratio of high brightness, and whether to enable high dynamic range (High Dynamic Range, HDR); the terminal selects according to one or more parameters value, execute the rendering operation corresponding to the first rendering feature.
终端向第一服务器发送第一请求,使得第一服务器根据第一请求中携带的终端的描述信息以及第一渲染特性的描述信息得到一个或多个参数的取值;由于第一服务器确定一个或多个参数的取值时考虑了终端的描述信息,所以相比于将所有的终端设备同一划分为简单的几个等级,本申请能够选择出更加适合当前终端的参数的取值,从而使得终端根据参数的取值执行渲染操作,能够产生较好的渲染效果。The terminal sends the first request to the first server, so that the first server obtains the value of one or more parameters according to the description information of the terminal carried in the first request and the description information of the first rendering characteristic; since the first server determines that one or The descriptive information of the terminal is taken into account when setting the values of multiple parameters. Therefore, compared to dividing all terminal devices into several simple levels, this application can select the value of the parameter that is more suitable for the current terminal, so that the terminal The rendering operation is performed according to the value of the parameter, which can produce a better rendering effect.
作为一种可实现的方式,一个或多个参数的取值是第一服务器根据终端的描述信息和 第一渲染特性的描述信息得到的。As an implementable manner, the value of one or more parameters is obtained by the first server according to the description information of the terminal and the description information of the first rendering characteristic.
由于第一服务器确定一个或多个参数的取值时考虑了终端的描述信息,所以相比于将所有的终端设备同一划分为简单的几个等级,本申请能够选择出更加适合当前终端的参数的取值,从而使得终端根据参数的取值执行渲染操作,能够产生较好的渲染效果。Since the first server considers the description information of the terminal when determining the value of one or more parameters, this application can select parameters that are more suitable for the current terminal than dividing all terminal devices into several simple levels. value, so that the terminal performs a rendering operation according to the value of the parameter, which can produce a better rendering effect.
作为一种可实现的方式,第一渲染特性的描述信息包括第一渲染特性的标识和/或一个或多个参数的标识,其中,第一渲染特性的标识可以是第一渲染特性的名称,参数的标识可以是参数的名称。As an implementable manner, the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters, where the identifier of the first rendering characteristic may be a name of the first rendering characteristic, The ID of the parameter may be the name of the parameter.
第一渲染特性的描述信息包括第一渲染特性的标识和/或一个或多个参数的标识,使得第一服务器可以根据第一渲染特性的标识和/或一个或多个参数的标识确定第一渲染特性所需的参数。The description information of the first rendering characteristic includes the identifier of the first rendering characteristic and/or the identifier of one or more parameters, so that the first server can determine the first rendering characteristic according to the identifier of the first rendering characteristic and/or the identifier of one or more parameters Parameters required for rendering features.
作为一种可实现的方式,终端的描述信息包括以下信息中的至少一种:终端的型号和终端的硬件信息,其中,终端的硬件信息可以是中央处理器CPU的型号、图形处理器的型号、内存的大小;此外,终端的描述信息还可以包括终端在执行前一次渲染操作的过程中,所采用的渲染帧率。As an implementable manner, the description information of the terminal includes at least one of the following information: the model of the terminal and the hardware information of the terminal, where the hardware information of the terminal may be the model of the central processing unit CPU and the model of the graphics processor , the size of the memory; in addition, the description information of the terminal may also include the rendering frame rate adopted by the terminal during the previous rendering operation.
终端的描述信息包括终端的型号或终端中的硬件信息,使得第一服务器可以根据终端的型号或终端的硬件信息选择出适合终端的参数的取值。The description information of the terminal includes the model of the terminal or the hardware information of the terminal, so that the first server can select the value of the parameter suitable for the terminal according to the model of the terminal or the hardware information of the terminal.
作为一种可实现的方式,终端根据一个或多个参数的取值,执行第一渲染特性对应的渲染操作包括:终端根据终端当前的运行状态,对一个或多个参数的取值进行调整,终端当前的运行状态可以通过多种方式表示,本申请对此不做具体限定;终端根据调整后的一个或多个参数的取值,执行第一渲染特性对应的渲染操作。As an achievable manner, the terminal performing the rendering operation corresponding to the first rendering characteristic according to the value of one or more parameters includes: the terminal adjusts the value of one or more parameters according to the current running state of the terminal, The current running state of the terminal can be represented in various ways, which is not specifically limited in this application; the terminal executes the rendering operation corresponding to the first rendering characteristic according to the adjusted values of one or more parameters.
终端根据终端当前的运行状态,对一个或多个参数的取值进行调整,使得调整后的参数的取值更适合处于当前运行状态下终端,这样,终端根据调整后的参数的取值执行渲染操作,便能得到更好的渲染效果。The terminal adjusts the value of one or more parameters according to the current operating state of the terminal, so that the value of the adjusted parameter is more suitable for the terminal in the current operating state, so that the terminal performs rendering according to the value of the adjusted parameter operation, you can get a better rendering effect.
作为一种可实现的方式,终端当前的运行状态包括以下状态中的至少一种:终端中央处理器的利用率、终端图形处理器的利用率以及终端的剩余内存空间;除此之外,终端当前的运行状态还可以包括存储读写通道占用率、网卡剩余带宽等其他参数。As an achievable manner, the current operating state of the terminal includes at least one of the following states: the utilization rate of the terminal central processing unit, the utilization rate of the terminal graphics processor, and the remaining memory space of the terminal; in addition, the terminal The current running state may also include other parameters such as storage read-write channel occupancy rate and remaining network card bandwidth.
该实现方式提供了终端当前的运行状态的多种表示方式,使得根据终端当前的运行状态调整后的参数的取值更适合处于当前运行状态下终端,这样,终端根据调整后的参数的取值执行渲染操作,便能得到更好的渲染效果。This implementation method provides multiple representations of the current operating state of the terminal, so that the value of the parameter adjusted according to the current operating state of the terminal is more suitable for the terminal in the current operating state. In this way, the terminal according to the value of the adjusted parameter Perform rendering operations to get better rendering results.
作为一种可实现的方式,在终端向第一服务器发送第一请求之前,方法还包括:终端接收来自用户的第一指示信息,第一指示信息指示多个渲染类型中的第一渲染类型,该第一渲染类型也可以理解为体验风格,本申请对第一渲染类型不做具体限定,例如可以是“流畅”、“精美”、“低耗电”等;本申请对第一指示信息的输入方式不做具体限定,例如可以是通过触控的方式输入,也可以是通过声控的方式输入;第一请求中还携带第一渲染类型的标识。As an implementable manner, before the terminal sends the first request to the first server, the method further includes: the terminal receives first indication information from the user, where the first indication information indicates a first rendering type among the plurality of rendering types, The first rendering type can also be understood as an experience style. This application does not specifically limit the first rendering type, for example, it can be "smooth", "exquisite", "low power consumption" and so on; The input method is not specifically limited, for example, it may be input by touch or voice control; the first request also carries the identifier of the first rendering type.
终端接收来自用户的第一指示信息,第一指示信息指示多个渲染类型中的第一渲染类型,然后在第一请求中携带第一渲染类型的标识,使得第一服务器可以根据第一渲染类型 的标识、终端的描述信息和第一渲染特性的描述信息得到第一渲染特性所需的一个或多个参数的取值;这样,终端根据参数的取值执行渲染操作,便可以实现根据用户选择的渲染类型,为用户呈现相应的渲染效果。The terminal receives first indication information from the user, where the first indication information indicates a first rendering type among multiple rendering types, and then carries an identifier of the first rendering type in the first request, so that the first server can The identification of the terminal, the description information of the terminal, and the description information of the first rendering characteristic obtain the value of one or more parameters required by the first rendering characteristic; in this way, the terminal performs the rendering operation according to the value of the parameter, and can realize the rendering operation according to the user's selection Rendering type to present the corresponding rendering effect for the user.
作为一种可实现的方式,方法还包括:终端接收来自用户的第二指示信息,第二指示信息指示多个渲染类型中的第二渲染类型,第二渲染类型与第一渲染类型不同,本申请对第二渲染类型不做具体限定,例如可以是“流畅”、“精美”、“低耗电”等;终端向第一服务器发送第二请求,第二请求中携带第二渲染类型的标识;终端接收来自第一服务器的一个或多个参数的取值,一个或多个参数的取值是第一服务器,根据第二渲染类型的标识得到的,具体可以是根据第二渲染类型的标识、终端的描述信息和第一渲染特性的描述信息得到的;终端根据第二渲染类型所需的一个或多个参数的取值,执行渲染操作。As an implementable manner, the method further includes: the terminal receives second indication information from the user, where the second indication information indicates a second rendering type among multiple rendering types, and the second rendering type is different from the first rendering type. The application does not specifically limit the second rendering type, for example, it can be "smooth", "exquisite", "low power consumption", etc.; the terminal sends a second request to the first server, and the second request carries the identification of the second rendering type ;The terminal receives the value of one or more parameters from the first server, and the value of one or more parameters is obtained by the first server according to the identification of the second rendering type, specifically according to the identification of the second rendering type , the description information of the terminal and the description information of the first rendering characteristic; the terminal executes the rendering operation according to the value of one or more parameters required by the second rendering type.
需要说明的是,在终端和第一服务器交互后,第一服务器中已经存在了终端的描述信息,所以第二请求中可以不携带终端的描述信息;由于第一服务器可以与多个终端交互,所以为了辨别是哪个终端,第二请求中也可以携带终端的描述信息;另外,若用户选择的仅仅是第二渲染类型,而渲染特性的种类未改变,即终端仍执行第一渲染特性对应的渲染操作,那么第二请求中可以不携带渲染特性的描述信息。若用户为后续渲染过程中用到的第二渲染特性(不同于第一渲染特性)选择渲染类型,那么第二请求中还可以携带第二渲染特性的描述信息。It should be noted that after the terminal interacts with the first server, the description information of the terminal already exists in the first server, so the second request may not carry the description information of the terminal; since the first server can interact with multiple terminals, Therefore, in order to identify which terminal it is, the second request can also carry the description information of the terminal; in addition, if the user selects only the second rendering type, but the type of rendering feature has not changed, that is, the terminal still executes the corresponding rendering operation, then the second request may not carry the description information of the rendering characteristics. If the user selects a rendering type for the second rendering characteristic (different from the first rendering characteristic) used in the subsequent rendering process, the second request may also carry description information of the second rendering characteristic.
终端接收第二指示信息,然后根据第二指示信息指示的第二渲染类型获取第二渲染类型所需的参数的取值,以为用户提供第二渲染类型对应的渲染效果;在此之前,若终端先接收第一指示信息,然后根据第一指示信息指示的第一渲染类型获取第一渲染类型所需的参数的取值,为用户提供第一渲染类型对应的渲染效果,则本申请还实现了不同渲染效果的切换。The terminal receives the second indication information, and then obtains the value of the parameter required by the second rendering type according to the second rendering type indicated by the second indication information, so as to provide the user with a rendering effect corresponding to the second rendering type; before that, if the terminal First receive the first indication information, then obtain the value of the parameters required by the first rendering type according to the first rendering type indicated by the first indication information, and provide the user with the rendering effect corresponding to the first rendering type, then this application also realizes Switching between different rendering effects.
作为一种可实现的方式,第一请求中还携带目标应用程序的标识,目标应用程序在运行过程中所需采用的渲染特性包括第一渲染特性;相应地,一个或多个参数的取值是第一服务器,根据目标应用程序的标识、终端的描述信息和第一渲染特性的描述信息得到的。As an achievable way, the first request also carries the identification of the target application, and the rendering characteristics required by the target application during running include the first rendering characteristics; correspondingly, the value of one or more parameters is the first server, obtained according to the identifier of the target application program, the description information of the terminal, and the description information of the first rendering characteristic.
在该实现方式中,第一请求还携带目标应用程序的标识,使得第一服务器可以根据目标应用程序的标识得到一个或多个参数的取值,使得一个或多个参数的取值能够适应目标应用程序,使得目标应用程序在运行时,能够得到更好的渲染效果。In this implementation, the first request also carries the identification of the target application, so that the first server can obtain the value of one or more parameters according to the identification of the target application, so that the value of one or more parameters can be adapted to the target application, so that the target application can get better rendering effect when it is running.
第二方面,本申请提供了一种渲染方法,包括:第一服务器接收来自终端的第一请求,第一请求中携带终端的描述信息以及第一渲染特性的描述信息,本申请对终端的描述信息的内容以及第一渲染特性的描述信息的内容均不作具体限定,第一服务器可以是云端服务器;第一服务器根据终端的描述信息和第一渲染特性的描述信息,得到一个或多个参数的取值,参数的数量可以为一个,也可以为多个;该参数可以包括以下参数中的一个或多个:高斯模糊迭代次数、采样次数、采样缩放范围、高亮度占比以及是否启用高动态范围(High Dynamic Range,HDR);第一服务器向终端发送一个或多个参数的取值。In the second aspect, the present application provides a rendering method, including: the first server receives the first request from the terminal, the first request carries the description information of the terminal and the description information of the first rendering characteristic, and the description information of the terminal in this application The content of the information and the content of the description information of the first rendering characteristic are not specifically limited, and the first server may be a cloud server; the first server obtains the description information of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic. Value, the number of parameters can be one or more; this parameter can include one or more of the following parameters: the number of Gaussian blur iterations, the number of samples, the sampling zoom range, the ratio of high brightness and whether to enable high dynamic range Range (High Dynamic Range, HDR); the first server sends the value of one or more parameters to the terminal.
第一服务器接收来自终端的第一请求,并根据第一请求中携带的终端的描述信息以及第一渲染特性的描述信息得到第一渲染特性所需的参数的取值;由于第一服务器确定参数 的取值时考虑了终端的描述信息,所以相比于将所有的终端设备同一划分为简单的几个等级,本申请能够选择出更加适合当前终端的参数的取值,从而使得终端根据参数的取值执行渲染操作,能够产生较好的渲染效果。The first server receives the first request from the terminal, and obtains the value of the parameter required by the first rendering characteristic according to the description information of the terminal carried in the first request and the description information of the first rendering characteristic; since the first server determines the parameter Considering the description information of the terminal when taking the value of , so compared to dividing all terminal devices into several simple levels, this application can select the value of the parameter that is more suitable for the current terminal, so that the terminal can be based on the parameters. The value is used to perform rendering operations, which can produce better rendering effects.
作为一种可实现的方式,第一服务器根据终端的描述信息和第一渲染特性的描述信息,得到一个或多个参数的取值包括:第一服务器根据终端的描述信息、第一渲染特性的描述信息,以及终端的描述信息、第一渲染特性的描述信息、参数的取值三者之间的对应关系,得到一个或多个参数的取值,其中,该对应关系可以通过表格、图、树等多种方式表示,本申请不限制对应关系的具体存储格式。As an implementable manner, obtaining the value of one or more parameters by the first server according to the description information of the terminal and the description information of the first rendering characteristic includes: the first server according to the description information of the terminal, the description information of the first rendering characteristic The description information, and the correspondence between the description information of the terminal, the description information of the first rendering characteristic, and the value of the parameter, obtain the value of one or more parameters, wherein the correspondence can be obtained through a table, a graph, It can be expressed in multiple ways such as a tree, and the present application does not limit the specific storage format of the corresponding relationship.
第一服务器根据终端的描述信息、第一渲染特性的描述信息、参数的取值三者之间的对应关系,能够更快速、准确地确定第一渲染特性所需的一个或多个参数的取值。According to the correspondence between the description information of the terminal, the description information of the first rendering characteristic, and the value of the parameter, the first server can more quickly and accurately determine the value of one or more parameters required by the first rendering characteristic. value.
作为一种可实现的方式,第一服务器根据终端的描述信息和第一渲染特性的描述信息,得到一个或多个参数的取值包括:第一服务器根据第一渲染特性的描述信息,确定与第一渲染特性对应的第二服务器;第一服务器向第一渲染特性对应的第二服务器发送请求,以获取一个或多个参数的取值。As an implementable manner, obtaining the value of one or more parameters by the first server according to the description information of the terminal and the description information of the first rendering characteristic includes: A second server corresponding to the first rendering characteristic; the first server sends a request to the second server corresponding to the first rendering characteristic to acquire values of one or more parameters.
由于第二服务器的数量可能包括多个,所以第一服务器根据第一渲染特性的描述信息,确定与第一渲染特性对应的第二服务器,从而可以从对应的第二服务器中得到参数的取值。Since there may be multiple second servers, the first server determines the second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic, so that the value of the parameter can be obtained from the corresponding second server .
作为一种可实现的方式,第一渲染特性的描述信息包括第一渲染特性的标识和/或一个或多个参数的标识,其中,第一渲染特性的标识可以是第一渲染特性的名称,参数的标识可以是参数的名称。As an implementable manner, the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters, where the identifier of the first rendering characteristic may be a name of the first rendering characteristic, The ID of the parameter may be the name of the parameter.
第一渲染特性的描述信息包括第一渲染特性的标识和/或一个或多个参数的标识,使得第一服务器可以根据第一渲染特性的标识和/或一个或多个参数的标识确定第一渲染特性所需的参数。The description information of the first rendering characteristic includes the identifier of the first rendering characteristic and/or the identifier of one or more parameters, so that the first server can determine the first rendering characteristic according to the identifier of the first rendering characteristic and/or the identifier of one or more parameters Parameters required for rendering features.
作为一种可实现的方式,终端的描述信息包括以下信息中的至少一种:终端的型号和终端的硬件信息,其中,终端的硬件信息可以是中央处理器CPU的型号、图形处理器的型号、内存的大小;此外,终端的描述信息还可以包括终端在执行前一次渲染操作的过程中,所采用的渲染帧率。As an implementable manner, the description information of the terminal includes at least one of the following information: the model of the terminal and the hardware information of the terminal, where the hardware information of the terminal may be the model of the central processing unit CPU and the model of the graphics processor , the size of the memory; in addition, the description information of the terminal may also include the rendering frame rate adopted by the terminal during the previous rendering operation.
终端的描述信息包括终端的型号或终端中的硬件信息,使得第一服务器可以根据终端的型号或终端的硬件信息选择出适合终端的参数的取值。The description information of the terminal includes the model of the terminal or the hardware information of the terminal, so that the first server can select the value of the parameter suitable for the terminal according to the model of the terminal or the hardware information of the terminal.
作为一种可实现的方式,第一请求中还携带第一渲染类型的标识;相应地,第一服务器根据终端的描述信息和第一渲染特性的描述信息,得到一个或多个参数的取值包括:第一服务器根据第一渲染类型的标识、终端的描述信息和第一渲染特性的描述信息,得到第一渲染类型所需的一个或多个参数的取值。As an implementable manner, the first request also carries the identifier of the first rendering type; correspondingly, the first server obtains the value of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic The method includes: the first server obtains the value of one or more parameters required by the first rendering type according to the identifier of the first rendering type, the description information of the terminal, and the description information of the first rendering characteristic.
第一服务器可以根据第一渲染类型的标识、终端的描述信息和第一渲染特性的描述信息得到第一渲染特性所需的一个或多个参数的取值;这样,终端根据参数的取值执行渲染操作,便可以实现根据用户选择的渲染类型,为用户呈现相应的渲染效果。The first server can obtain the value of one or more parameters required by the first rendering characteristic according to the identifier of the first rendering type, the description information of the terminal, and the description information of the first rendering characteristic; in this way, the terminal executes the The rendering operation can realize the corresponding rendering effect for the user according to the rendering type selected by the user.
作为一种可实现的方式,方法还包括:第一服务器接收来自终端的第二请求,第二请求中携带第二渲染类型的标识;第一服务器根据第二渲染类型的标识,得到第二渲染类型 所需的一个或多个参数的取值;第一服务器向终端发送第二渲染类型所需的一个或多个参数的取值。As an implementable manner, the method further includes: the first server receives the second request from the terminal, and the second request carries the identifier of the second rendering type; the first server obtains the second rendering type according to the identifier of the second rendering type The value of one or more parameters required by the rendering type; the first server sends the value of one or more parameters required by the second rendering type to the terminal.
服务器根据第二渲染类型的标识得到第二渲染类型所需的一个或多个参数的取值,使得终端根据第二渲染类型所需的一个或多个参数的取值执行渲染操作,以为用户提供第二渲染类型对应的渲染效果;在此之前,若服务器根据第一渲染类型的标识、终端的描述信息和第一渲染特性的描述信息得到第一渲染特性所需的一个或多个参数的取值,使得终端根据第一渲染特性所需的一个或多个参数的取值执行渲染操作,以为用户提供第一渲染类型对应的渲染效果,则本申请还实现了不同渲染效果的切换。The server obtains the value of one or more parameters required by the second rendering type according to the identification of the second rendering type, so that the terminal performs a rendering operation according to the value of one or more parameters required by the second rendering type, so as to provide the user with The rendering effect corresponding to the second rendering type; before that, if the server obtains the selection of one or more parameters required by the first rendering characteristic according to the identification of the first rendering type, the description information of the terminal and the description information of the first rendering characteristic value, so that the terminal performs a rendering operation according to the value of one or more parameters required by the first rendering characteristic, so as to provide the user with the rendering effect corresponding to the first rendering type, and the present application also realizes the switching of different rendering effects.
第三方面,本申请实施例还提供了一种渲染装置,包括:收发单元,向第一服务器发送第一请求,第一请求中携带终端的描述信息以及第一渲染特性的描述信息;收发单元,用于接收来自第一服务器的一个或多个参数的取值;处理单元,用于根据一个或多个参数的取值,执行第一渲染特性对应的渲染操作。In the third aspect, the embodiment of the present application also provides a rendering device, including: a transceiver unit, which sends a first request to the first server, and the first request carries description information of the terminal and description information of the first rendering characteristic; the transceiver unit , configured to receive values of one or more parameters from the first server; a processing unit configured to execute a rendering operation corresponding to the first rendering characteristic according to values of the one or more parameters.
作为一种可实现的方式,一个或多个参数的取值是第一服务器根据终端的描述信息和第一渲染特性的描述信息得到的。As an implementable manner, the value of one or more parameters is obtained by the first server according to the description information of the terminal and the description information of the first rendering characteristic.
作为一种可实现的方式,第一渲染特性的描述信息包括第一渲染特性的标识和/或一个或多个参数的标识。As an implementable manner, the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters.
作为一种可实现的方式,终端的描述信息包括终端的型号和/或终端的硬件信息。As an implementable manner, the description information of the terminal includes a model of the terminal and/or hardware information of the terminal.
作为一种可实现的方式,处理单元,用于根据终端当前的运行状态,对一个或多个参数的取值进行调整;根据调整后的一个或多个参数的取值,执行第一渲染特性对应的渲染操作。As an achievable manner, the processing unit is configured to adjust the value of one or more parameters according to the current operating state of the terminal; and execute the first rendering characteristic according to the adjusted value of one or more parameters The corresponding rendering operation.
作为一种可实现的方式,终端当前的运行状态包括以下状态中的至少一种:终端中央处理器的利用率、终端图形处理器的利用率以及终端的剩余内存空间。As an implementable manner, the current running state of the terminal includes at least one of the following states: the utilization rate of the central processing unit of the terminal, the utilization rate of the graphic processor of the terminal, and the remaining memory space of the terminal.
收发单元还用于接收来自用户的第一指示信息,第一指示信息指示多个渲染类型中的第一渲染类型;第一请求中还携带第一渲染类型的标识。The transceiving unit is further configured to receive first indication information from the user, where the first indication information indicates a first rendering type among multiple rendering types; the first request also carries an identifier of the first rendering type.
作为一种可实现的方式,收发单元还用于接收来自用户的第二指示信息,第二指示信息指示多个渲染类型中的第二渲染类型;向第一服务器发送第二请求,第二请求中携带第二渲染类型的标识;接收来自第一服务器的第二渲染类型所需的一个或多个参数的取值;处理单元,还用于根据第二渲染类型所需的一个或多个参数的取值,执行渲染操作。As an implementable manner, the transceiver unit is further configured to receive second indication information from the user, where the second indication information indicates the second rendering type among the plurality of rendering types; send a second request to the first server, and the second request carries the identifier of the second rendering type; receives the value of one or more parameters required by the second rendering type from the first server; the processing unit is also used for one or more parameters required by the second rendering type value to perform rendering operations.
其中,以上各单元的具体实现、相关说明以及技术效果请参考本申请实施例第一方面的描述。For the specific implementation, related description and technical effects of the above units, please refer to the description of the first aspect of the embodiment of the present application.
第四方面,本申请实施例还提供了一种渲染装置,包括:收发单元,用于接收来自终端的第一请求,第一请求中携带终端的描述信息以及第一渲染特性的描述信息;处理单元,用于根据终端的描述信息和第一渲染特性的描述信息,得到一个或多个参数的取值;收发单元,用于向终端发送一个或多个参数的取值。In a fourth aspect, the embodiment of the present application further provides a rendering device, including: a transceiver unit, configured to receive a first request from a terminal, where the first request carries description information of the terminal and description information of the first rendering characteristic; processing The unit is configured to obtain the values of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic; the sending and receiving unit is configured to send the values of one or more parameters to the terminal.
作为一种可实现的方式,处理单元,用于根据终端的描述信息、第一渲染特性的描述信息,以及终端的描述信息、第一渲染特性的描述信息、参数的取值三者之间的对应关系,得到一个或多个参数的取值。As an implementable manner, the processing unit is configured to, according to the description information of the terminal, the description information of the first rendering characteristic, and the relationship between the description information of the terminal, the description information of the first rendering characteristic, and the value of the parameter Corresponding relationship, get the value of one or more parameters.
作为一种可实现的方式,处理单元,用于根据第一渲染特性的描述信息,确定与第一渲染特性对应的第二服务器;As an implementable manner, the processing unit is configured to determine the second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic;
收发单元,用于向第一渲染特性对应的第二服务器发送请求,以获取一个或多个参数的取值。The transceiver unit is configured to send a request to the second server corresponding to the first rendering characteristic to obtain values of one or more parameters.
作为一种可实现的方式,第一渲染特性的描述信息包括第一渲染特性的标识和/或一个或多个参数的标识。As an implementable manner, the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters.
作为一种可实现的方式,终端的描述信息包括终端的型号和/或终端的硬件信息。As an implementable manner, the description information of the terminal includes a model of the terminal and/or hardware information of the terminal.
作为一种可实现的方式,第一请求中还携带第一渲染类型的标识;处理单元,用于根据第一渲染类型的标识、终端的描述信息和第一渲染特性的描述信息,得到一个或多个参数的取值。As an implementable manner, the first request also carries the identifier of the first rendering type; the processing unit is configured to obtain one or more The value of multiple parameters.
作为一种可实现的方式,收发单元,用于接收来自终端的第二请求,第二请求中携带第二渲染类型的标识;处理单元,用于根据第二渲染类型的标识,得到一个或多个参数的取值;收发单元,用于向终端发送一个或多个参数的取值。As an implementable manner, the transceiver unit is configured to receive the second request from the terminal, and the second request carries the identifier of the second rendering type; the processing unit is configured to obtain one or more rendering types according to the identifier of the second rendering type The value of one parameter; the transceiver unit is used to send the value of one or more parameters to the terminal.
其中,以上各单元的具体实现、相关说明以及技术效果请参考本申请实施例第二方面的描述。For the specific implementation, related description and technical effects of the above units, please refer to the description of the second aspect of the embodiment of the present application.
第五方面,本申请提供了一种终端设备,包括存储器和处理器,其中,所述存储器用于存储计算机可读指令(或者称之为计算机程序),所述处理器用于读取所述计算机可读指令以实现前述第一方面中任意实现方式提供的方法。In a fifth aspect, the present application provides a terminal device, including a memory and a processor, wherein the memory is used to store computer-readable instructions (or called computer programs), and the processor is used to read the computer The instructions can be read to implement the method provided by any implementation manner in the aforementioned first aspect.
第六方面,本申请提供了一种服务器,包括存储器和处理器,其中,所述存储器用于存储计算机可读指令(或者称之为计算机程序),所述处理器用于读取所述计算机可读指令以实现前述第二方面中任意实现方式提供的方法。In a sixth aspect, the present application provides a server, including a memory and a processor, wherein the memory is used to store computer-readable instructions (or called computer programs), and the processor is used to read the computer-readable The instruction is read to implement the method provided by any implementation manner in the aforementioned second aspect.
第七方面,本申请提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得所述计算机执行如前述任一方面、第二方面以及各种可能的实现方式中所述的方法。In the seventh aspect, the present application provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the above-mentioned any aspect, the second aspect and various possible implementations. method.
第八方面,本申请提供了一种计算机可读存储介质,包括指令,当所述指令在计算机上运行时,使得计算机执行如前述任一方面、第二方面以及各种可能的实现方式中所述的方法。In an eighth aspect, the present application provides a computer-readable storage medium, including instructions. When the instructions are run on a computer, the computer executes any of the aforementioned aspects, the second aspect, and various possible implementations. described method.
第九方面,本申请提供了一种芯片,包括一个或多个处理器。所述处理器中的部分或全部用于读取并执行存储器中存储的计算机程序,以执行如前述任一方面、第二方面以及各种可能的实现方式中所述的方法。In a ninth aspect, the present application provides a chip, including one or more processors. Part or all of the processor is used to read and execute the computer program stored in the memory, so as to execute the method described in any one of the foregoing aspects, the second aspect and various possible implementation manners.
可选地,该芯片该包括存储器,该存储器与该处理器通过电路或电线与存储器连接。进一步可选地,该芯片还包括通信接口,处理器与该通信接口连接。通信接口用于接收需要处理的数据和/或信息,处理器从该通信接口获取该数据和/或信息,并对该数据和/或信息进行处理,并通过该通信接口输出处理结果。该通信接口可以是输入输出接口。Optionally, the chip includes a memory, and the memory and the processor are connected to the memory through a circuit or wires. Further optionally, the chip further includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive data and/or information to be processed, and the processor obtains the data and/or information from the communication interface, processes the data and/or information, and outputs the processing result through the communication interface. The communication interface may be an input-output interface.
在一些实现方式中,所述一个或多个处理器中还可以有部分处理器是通过专用硬件的方式来实现以上方法中的部分步骤,例如涉及神经网络模型的处理可以由专用神经网络处理器或图形处理器来实现。In some implementations, some of the one or more processors may implement some of the steps in the above method through dedicated hardware, for example, the processing related to the neural network model may be performed by a dedicated neural network processor or graphics processor to achieve.
本申请实施例提供的方法可以由一个芯片实现,也可以由多个芯片协同实现。The method provided in the embodiment of the present application may be implemented by one chip, or may be implemented by multiple chips in cooperation.
附图说明Description of drawings
图1为本申请实施例中渲染系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of the rendering system in the embodiment of the present application;
图2为本申请实施例中渲染场景的描述信息的示意图;FIG. 2 is a schematic diagram of description information of a rendered scene in an embodiment of the present application;
图3为本申请实施例中测试服务器控制手机进行测试的示意图;Fig. 3 is the schematic diagram that test server controls mobile phone to carry out test in the embodiment of the present application;
图4为本申请提供了一种渲染方法的一个实施例的示意图;FIG. 4 is a schematic diagram of an embodiment of a rendering method provided by the present application;
图5为本申请实施例中不同型号的终端对应的不同的参数的取值的示意图;FIG. 5 is a schematic diagram of different parameter values corresponding to different types of terminals in the embodiment of the present application;
图6为本申请实施例中的渲染效果示意图;FIG. 6 is a schematic diagram of the rendering effect in the embodiment of the present application;
图7为本申请提供了一种渲染方法的另一个实施例的示意图;FIG. 7 is a schematic diagram of another embodiment of a rendering method provided by the present application;
图8为本申请提供了一种渲染装置的一个实施例的示意图;FIG. 8 is a schematic diagram of an embodiment of a rendering device provided by the present application;
图9为本申请提供了一种渲染装置的另一个实施例的示意图;FIG. 9 is a schematic diagram of another embodiment of a rendering device provided by the present application;
图10为本申请提供的一种终端设备的结构示意图;FIG. 10 is a schematic structural diagram of a terminal device provided by the present application;
图11为本申请提供的一种服务器的结构示意图。FIG. 11 is a schematic structural diagram of a server provided by the present application.
具体实施方式Detailed ways
本申请实施例是可以应用于图1所示的渲染系统中,该渲染系统包括终端设备、第一服务器、第二服务器以及测试设备。The embodiment of the present application can be applied to the rendering system shown in FIG. 1 , where the rendering system includes a terminal device, a first server, a second server, and a test device.
该终端设备可以简称为终端,可以是智能手机、平板电脑、笔记本电脑、桌面电脑以及车载设备等。终端设备内部署有应用程序,该应用程序可以是三维(Three Dimensions,3D)应用程序,具体可以是游戏类的3D应用程序。The terminal device may be referred to as a terminal for short, and may be a smart phone, a tablet computer, a notebook computer, a desktop computer, and a vehicle-mounted device. An application program is deployed in the terminal device, and the application program may be a three-dimensional (Three Dimensions, 3D) application program, specifically a game-like 3D application program.
在终端内,当应用程序运行时,会采用多种渲染特性进行渲染。其中,渲染特性可以理解为采用某些渲染参数进行渲染,以产生某种视觉效果的方法;例如,该视觉效果可以是灯的泛光特效(bloom),也可以是运动模糊。In the terminal, when the application is running, it will be rendered using various rendering characteristics. Wherein, the rendering characteristic may be understood as a method of rendering with certain rendering parameters to produce a certain visual effect; for example, the visual effect may be a special effect (bloom) of a lamp, or may be motion blur.
第一服务器用于从第二服务器中查询渲染特性所需的参数的取值,并将该参数的取值提供给终端,第一服务器的数量通常为一个。The first server is used to query the value of the parameter required by the rendering feature from the second server, and provide the value of the parameter to the terminal, and the number of the first server is usually one.
第二服务器也可以称为测试服务器,用于负责渲染特性所需的参数的取值的测试过程,并用于存储测试得到的渲染特性所需的参数的取值。The second server may also be referred to as a test server, and is used for testing the values of the parameters required by the rendering characteristics, and for storing the values of the parameters required for the rendering characteristics obtained from the test.
第二服务器的数量也可以有多个,其中,图1示出了2个第二服务器;在测试过程中,每个第二服务器可以控制至少一台测试设备进行测试。There may also be multiple second servers, wherein FIG. 1 shows two second servers; during the test, each second server can control at least one test device for testing.
测试设备用于对渲染特性所需的参数的取值进行测试,以得到较适合的参数的取值。该测试设备可以是服务器,也可以终端设备;当测试设备为服务器时,测试设备可以运行虚拟机以实现对渲染特性所需的参数的取值进行测试,当测试设备为终端时,则可以实现在终端本地对渲染特性所需的参数的取值进行测试。The test device is used to test the values of the parameters required by the rendering feature, so as to obtain more suitable values of the parameters. The test device can be a server or a terminal device; when the test device is a server, the test device can run a virtual machine to test the value of the parameters required for rendering features; when the test device is a terminal, it can realize Test the values of the parameters required by the rendering feature locally on the terminal.
需要说明的是,当测试设备为终端时,为了得到适合各种终端的参数的取值,测试设备的数量通常为多个;例如,以手机为例,测试设备可以包括尽可能多种类的手机,其中图1示出了三台手机。It should be noted that when the test equipment is a terminal, in order to obtain the values of parameters suitable for various terminals, the number of test equipment is usually multiple; for example, taking a mobile phone as an example, the test equipment can include as many types of mobile phones as possible , wherein Figure 1 shows three mobile phones.
下面通过第二服务器和测试设备(手机)对参数的取值的测试过程进行说明。The process of testing the value of the parameter by the second server and the testing device (mobile phone) will be described below.
首先,开发者在开发应用程序时,会构建渲染场景的描述文件,该渲染场景的描述文件中包含渲染场景的描述信息。如图2所示,渲染场景的描述信息包括网格Mesh模型、 材质或贴图、光照以及该应用程序中所有渲染特性的详细的描述信息;图2示出了渲染特性1、渲染特性2和渲染特性3这三种渲染特性。First, when developing an application, the developer will construct a description file of the rendering scene, and the description file of the rendering scene includes description information of the rendering scene. As shown in Figure 2, the description information of the rendered scene includes the detailed description information of the mesh Mesh model, material or texture, lighting, and all rendering features in the application; Figure 2 shows rendering feature 1, rendering feature 2, and rendering Feature 3 These three rendering features.
具体地,在渲染场景的描述文件中,可以增加extras字段(用于表示附加的信息),在extras字段中添加渲染特性的详细的描述信息;渲染特性的详细的描述信息可以包括特性名称featurename、渲染特性的类型type、渲染特性所需使用的测试服务器的地址testserver以及渲染特性所需的参数的描述信息,渲染特性所需的参数的描述信息可以通过新增字段的方式添加,具体可以包括渲染特性所需的参数名称paraname、渲染特性所需的参数类型“datatype”、渲染特性所需的参数的取值等。Specifically, in the description file of the rendered scene, an extras field (used to indicate additional information) can be added, and detailed description information of the rendering feature can be added in the extras field; the detailed description information of the rendering feature can include the feature name featurename, The type type of the rendering feature, the address testserver of the test server required for the rendering feature, and the description information of the parameters required for the rendering feature. The description information of the parameters required for the rendering feature can be added by adding a new field, which can include rendering The parameter name paraname required by the feature, the parameter type "datatype" required by the rendering feature, the value of the parameter required by the rendering feature, etc.
例如,渲染特性的特性名称为“bloom_hdr”;渲染特性的类型为“postProcessing”,具体表示渲染特性的类型为后处理;渲染特性所需的参数的字段名称为“高斯模糊迭代次数”,渲染特性所需的参数类型为“int”。For example, the attribute name of the rendering attribute is "bloom_hdr"; the type of the rendering attribute is "postProcessing", which specifically indicates that the type of the rendering attribute is post-processing; the field name of the parameter required by the rendering attribute is "Number of Gaussian Blur Iterations", and the rendering attribute Required parameter type is 'int'.
在图2中,以渲染特性1为例,渲染特性1的描述信息可以包括渲染特性1的名称、渲染特性1所需的参数名称以及渲染特性1所需的参数取值。In FIG. 2 , taking the rendering feature 1 as an example, the description information of the rendering feature 1 may include the name of the rendering feature 1, the names of the parameters required by the rendering feature 1, and the values of the parameters required by the rendering feature 1.
然后,开发者会将上述渲染场景的描述文件发送至测试服务器(即图1中的第一服务器),测试服务器在接收到渲染场景的描述文件后运行服务器端渲染测试程序,然后将渲染场景的描述文件中渲染场景的描述信息发送至多台不同的手机上。Then, the developer will send the description file of the rendering scene to the test server (that is, the first server in Figure 1), and the test server will run the server-side rendering test program after receiving the description file of the rendering scene, and then send the rendering scene The description information of the rendered scene in the description file is sent to multiple different mobile phones.
每台手机上运行有手机端渲染测试程序,在接收到渲染场景的描述信息后会遍历每个参数,并通过修改渲染特性所需的参数的取值的方式不断测试渲染效果,以测试得到在当前手机上渲染效果较好的渲染特性所需的参数的取值;其中,遍历参数的方案有多种,本申请实施例对此不做具体限定,具体可以包括依次遍历或根据渲染最优遍历策略进行遍历;该遍历参数的方案可以由开发者在上传渲染场景的描述文件时选择。Each mobile phone runs a mobile-side rendering test program. After receiving the description information of the rendering scene, it will traverse each parameter, and continuously test the rendering effect by modifying the value of the parameters required for rendering characteristics, so as to obtain the results obtained in the test. The value of the parameters required for the rendering characteristics with better rendering effects on the current mobile phone; Among them, there are many schemes for traversing the parameters, which are not specifically limited in this embodiment of the application, which may include sequential traversal or optimal traversal according to rendering Strategy to traverse; the scheme of the traverse parameters can be selected by the developer when uploading the description file of the rendered scene.
例如,如图3所示,测试服务器在接收到渲染场景的描述信息后,运行渲染测试程序,并控制手机1、手机2和手机3三台手机进行测试;相应地,会得到手机1中渲染效果好的渲染特性所需的参数的取值、手机2中渲染效果好的渲染特性所需的参数的取值,以及手机3中渲染效果好的渲染特性所需的参数的取值。For example, as shown in Figure 3, after receiving the description information of the rendering scene, the test server runs the rendering test program, and controls the three mobile phones of mobile phone 1, mobile phone 2 and mobile phone 3 to test; The value of the parameter required for the rendering characteristic with good effect, the value of the parameter required for the rendering characteristic with good rendering effect in mobile phone 2, and the value of the parameter required for the rendering characteristic with good rendering effect in mobile phone 3.
需要说明的是,开发者可以为渲染特性设置不同的渲染类型,该渲染类型具体可以表现为体验风格;例如,该体验风格可以包括“流畅”、“精美”、“低耗电”等;对应不同的渲染类型,每台手机都会生成渲染效果最好的渲染特性所需的参数的取值,其中,对于同一渲染类型,不同手机对应的参数的取值可以不同。It should be noted that developers can set different rendering types for rendering characteristics, and the rendering type can be expressed as an experience style; for example, the experience style can include "smooth", "exquisite", "low power consumption" and so on; corresponding For different rendering types, each mobile phone will generate the values of the parameters required for the rendering characteristics with the best rendering effect. For the same rendering type, the values of the parameters corresponding to different mobile phones may be different.
例如,对于“流畅”这一渲染类型来说,图3中的手机1、手机2和手机3对应的渲染特性所需的参数的取值都不同。For example, for the rendering type of "smooth", the values of the parameters required for the rendering characteristics corresponding to mobile phone 1, mobile phone 2 and mobile phone 3 in FIG. 3 are all different.
另外,手机在测试过程中,可以在后台运行其他的应用程序,以模拟用户实际使用手机的场景;当某个参数的取值在手机上无法设置时,则可以将该参数标记为对该手机无效或不可用。In addition, during the testing process, the mobile phone can run other applications in the background to simulate the scene where the user actually uses the mobile phone; when the value of a certain parameter cannot be set on the mobile phone, the parameter can be marked as Invalid or unavailable.
在测试完成后,每台手机会将与各个渲染类型对应的渲染特性所需的参数的最佳取值,发送至测试服务器,以由测试服务器进行存储。After the test is completed, each mobile phone will send the optimal value of the parameters required for the rendering characteristics corresponding to each rendering type to the test server for storage by the test server.
在测试服务器中,可以存储手机的描述信息、应用程序的标识、渲染类型、渲染特性 所需的参数的最佳取值四者之间的对应关系;其中,终端的描述信息包括以下信息中的至少一种:终端的型号和终端的硬件信息,该硬件信息主要包括与渲染能力相关的硬件信息,例如,硬件的信息可以包括中央处理器CPU、显卡以及内存等信息。In the test server, the corresponding relationship between the description information of the mobile phone, the identification of the application program, the rendering type, and the optimal value of the parameters required for rendering characteristics can be stored; wherein, the description information of the terminal includes the following information At least one: the model of the terminal and the hardware information of the terminal. The hardware information mainly includes hardware information related to rendering capabilities. For example, the hardware information may include information such as a central processing unit CPU, a graphics card, and memory.
可以理解的是,由于终端的种类众多,且更新速度越来越快,所以不同终端的渲染能力可能相差较大;为了更好地发挥渲染能力强的终端的渲染能力,也为了渲染能力弱的终端能够较好地完成渲染,本申请实施例提供了一种渲染方法,该渲染方法是通过预先的测试获得大量终端各自合适的渲染特性的参数的取值;当需要渲染时,终端可以向服务器请求最适合自身的渲染特性的参数的取值,然后根据请求到的参数的取值执行渲染操作,从而获得较好的渲染效果。It is understandable that since there are many types of terminals and the update speed is getting faster and faster, the rendering capabilities of different terminals may vary greatly; in order to better utilize the rendering capabilities of terminals with strong rendering capabilities, and to The terminal can complete the rendering well. The embodiment of the present application provides a rendering method. The rendering method is to obtain the values of the parameters of the appropriate rendering characteristics of a large number of terminals through pre-testing; when rendering is required, the terminal can send the server Request the value of the parameter that is most suitable for its own rendering characteristics, and then perform the rendering operation according to the value of the requested parameter, so as to obtain a better rendering effect.
需要说明的是,由于在本申请实施例中,终端是从服务器获取渲染特性所需的参数的取值,所以终端在下载应用程序时,可以先下载不包含参数的取值的渲染特性的场景描述文件以及应用程序的其他相关数据;当终端安装或开始启动应用程序时,执行本申请实施例提供的方法,以从服务器获取渲染特性所需的参数的取值。It should be noted that, since in the embodiment of the present application, the terminal obtains the value of the parameter required for the rendering characteristic from the server, so when the terminal downloads the application program, it can first download the scene of the rendering characteristic that does not include the value of the parameter Description files and other relevant data of the application program; when the terminal installs or starts to start the application program, execute the method provided by the embodiment of the present application to obtain the values of the parameters required for rendering features from the server.
下面对本申请实施例提供的渲染方法进行具体介绍。The rendering method provided by the embodiment of the present application will be specifically introduced below.
如图4所示,本申请提供了一种渲染方法的一个实施例,该实施例包括:As shown in Figure 4, the present application provides an embodiment of a rendering method, which includes:
步骤101,终端向第一服务器发送第一请求,第一请求中携带终端的描述信息以及第一渲染特性的描述信息。Step 101, the terminal sends a first request to a first server, and the first request carries description information of the terminal and description information of a first rendering characteristic.
其中,第一服务器可以是云端服务器。Wherein, the first server may be a cloud server.
本申请实施例对终端的描述信息的种类不做具体限定,基于前述说明可知,终端的描述信息包括以下信息中的至少一种:终端的型号和终端的硬件信息。The embodiment of the present application does not specifically limit the types of terminal description information. Based on the foregoing description, it can be seen that the terminal description information includes at least one of the following information: terminal model and terminal hardware information.
其中,终端的硬件信息可以是中央处理器CPU的型号、图形处理器的型号、内存的大小等。Wherein, the hardware information of the terminal may be a model of a central processing unit CPU, a model of a graphics processor, a size of a memory, and the like.
除此之外,终端的描述信息还可以包括终端上一次渲染过程中采用的渲染帧率。In addition, the description information of the terminal may also include the rendering frame rate used in the last rendering process of the terminal.
本申请实施例对第一渲染特性的描述信息的种类不做具体限定,作为一种可实现的方式,第一渲染特性的描述信息可以包括第一渲染特性的标识和/或第一渲染特性所需的一个或多个参数的标识。The embodiment of the present application does not specifically limit the type of description information of the first rendering characteristic. As an implementable manner, the description information of the first rendering characteristic may include the identifier of the first rendering characteristic and/or the description information of the first rendering characteristic ID of one or more parameters required.
除此之外,第一渲染特性的描述信息还可以包括其他信息,具体可参阅前文的相关说明。In addition, the description information of the first rendering characteristic may also include other information, for details, please refer to related descriptions above.
作为一种可实现的方式,第一请求中还携带目标应用程序的标识,目标应用程序在运行过程中所需采用的渲染特性包括第一渲染特性。As an implementable manner, the first request also carries the identifier of the target application program, and the rendering characteristics required by the target application program during running include the first rendering characteristic.
在执行步骤101后,相应地,第一服务器接收来自终端的第一请求,第一请求中携带终端的描述信息以及第一渲染特性的描述信息。After step 101 is executed, correspondingly, the first server receives a first request from the terminal, where the first request carries description information of the terminal and description information of the first rendering characteristic.
步骤102,第一服务器根据终端的描述信息和第一渲染特性的描述信息,得到一个或多个参数的取值。In step 102, the first server obtains values of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic.
其中,由第一服务器得到的参数的数量可以为一个,也可以为多个;该参数是第一渲染特性所需的参数,具体可以包括以下参数中的一个或多个:高斯模糊迭代次数、采样次数、采样缩放范围、高亮度占比以及是否启用高动态范围(High Dynamic Range,HDR)。Wherein, the number of parameters obtained by the first server may be one or multiple; this parameter is a parameter required by the first rendering characteristic, and specifically may include one or more of the following parameters: the number of Gaussian blur iterations, Sampling times, sampling zoom range, high brightness ratio, and whether to enable high dynamic range (High Dynamic Range, HDR).
例如,如图5所示,当终端的型号为Mate10时,第一渲染特性所需的参数的取值的情况如下:高斯模糊迭代次数为4、采样次数为2、采样缩放范围为1、高亮度占比为10%以及不启动HDR;当终端的型号为Mate20时,第一渲染特性所需的参数的取值的情况如下:高斯模糊迭代次数为5、采样次数为3、采样缩放范围为1、高亮度占比为10%以及不启动HDR;当终端的型号为Mate30时,第一渲染特性所需的参数的取值的情况如下:高斯模糊迭代次数为6、采样次数为3、采样缩放范围为2、高亮度占比为20%以及不启动HDR;当终端的型号为Mate10时,第一渲染特性所需的参数的取值的情况如下:高斯模糊迭代次数为6、采样次数为3、采样缩放范围为3、高亮度占比为20%以及不启动HDR。For example, as shown in Figure 5, when the terminal model is Mate10, the values of the parameters required for the first rendering feature are as follows: the number of Gaussian blur iterations is 4, the number of sampling times is 2, the sampling zoom range is 1, and the high The brightness ratio is 10% and HDR is not enabled; when the terminal model is Mate20, the values of the parameters required for the first rendering feature are as follows: the number of Gaussian blur iterations is 5, the number of samples is 3, and the sampling zoom range is 1. The proportion of high brightness is 10% and HDR is not enabled; when the terminal model is Mate30, the values of the parameters required for the first rendering feature are as follows: the number of Gaussian blur iterations is 6, the number of samples is 3, and the number of samples is 3. The zoom range is 2, the high brightness ratio is 20%, and HDR is not enabled; when the terminal model is Mate10, the values of the parameters required for the first rendering feature are as follows: the number of Gaussian blur iterations is 6, and the number of samples is 3. The sampling zoom range is 3, the high brightness ratio is 20%, and HDR is not enabled.
需要说明的是,第一服务器得到参数的取值的情况可以分为两种,第一种情况是参数的取值存储在第一服务器中,第二种情况是参数的取值存储在其他服务器中(例如前文所述的第二服务器,即测试服务器),下面对此分别进行介绍。It should be noted that there are two cases where the first server obtains the value of the parameter. The first case is that the value of the parameter is stored in the first server, and the second case is that the value of the parameter is stored in other servers. (for example, the second server mentioned above, that is, the test server), which will be introduced respectively below.
对于第一种情况,由于一种应用程序在运行时可能需要多种渲染特性,因此步骤102可以包括:For the first case, since an application may require multiple rendering features during runtime, step 102 may include:
第一服务器根据终端的描述信息、第一渲染特性的描述信息,以及终端的描述信息、第一渲染特性的描述信息、参数的取值三者之间的对应关系,得到一个或多个参数的取值。According to the description information of the terminal, the description information of the first rendering characteristic, and the corresponding relationship among the description information of the terminal, the description information of the first rendering characteristic, and the value of the parameter, the first server obtains the information of one or more parameters. value.
其中,该对应关系可以通过多种方式表现,例如,该对应关系可以通过下面的表格表示。Wherein, the corresponding relationship can be expressed in various ways, for example, the corresponding relationship can be represented by the following table.
终端的描述信息Descriptive information of the terminal 第一渲染特性的描述信息Description of the first rendering feature 参数的取值The value of the parameter
对于第二种情况,由于一种应用程序在运行时可能需要多种渲染特性,而不同渲染特性对应的参数的取值可以存储在不同的第二服务器(即测试服务器中),由不同的第二服务器控制相应的终端进行测试得到,具体测试过程可参照前文的相关说明进行理解。For the second case, since an application may require multiple rendering characteristics during runtime, and the values of parameters corresponding to different rendering characteristics can be stored in different second servers (ie, in the test server), the different first The second server controls the corresponding terminal to perform the test, and the specific test process can be understood by referring to the relevant description above.
因此,步骤102可以包括:Therefore, step 102 may include:
第一服务器根据第一渲染特性的描述信息,确定与第一渲染特性对应的第二服务器;The first server determines a second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic;
第一服务器向第一渲染特性对应的第二服务器发送请求,以获取一个或多个参数的取值。The first server sends a request to the second server corresponding to the first rendering characteristic to obtain values of one or more parameters.
其中,第一服务器中可以通过表格等方式存储渲染特性与第二服务器间的对应关系,以便确定第一渲染特性对应的服务器。Wherein, the first server may store the corresponding relationship between the rendering characteristic and the second server in a form such as a table, so as to determine the server corresponding to the first rendering characteristic.
在该实施例中,第一服务器根据第一渲染特性的描述信息,确定与第一渲染特性对应的第二服务器,然后第一服务器向第一渲染特性对应的第二服务器发送请求,第二服务器在接收到请求后,会根据终端的描述信息进行查询,然后将查询到的一个或多个参数的取值返回至第一服务器。In this embodiment, the first server determines the second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic, and then the first server sends a request to the second server corresponding to the first rendering characteristic, and the second server After receiving the request, it will query according to the description information of the terminal, and then return the values of one or more parameters found in the query to the first server.
例如,第一渲染特性需要高斯模糊迭代次数、采样次数、采样缩放范围、高亮度占比以及是否启用高动态范围(High Dynamic Range,HDR)这5个参数,这5个参数存储在第二服务器A中,第一渲染特性需要高斯模糊迭代次数、采样次数、采样缩放范围这3个参数,这3个参数存储在第二服务器B中;则第一服务器可以确定第一渲染特性对应的第二服务器,然后向第一渲染特性对应的第二服务器发送请求,以得到上述5个参数的取值;同样地,第一服务器可以确定第二渲染特性对应的第二服务器,然后向第二渲染特性对应 的第二服务器发送请求,以得到上述3个参数的取值。For example, the first rendering feature requires five parameters, the number of Gaussian blur iterations, the number of samples, the sampling zoom range, the ratio of high brightness, and whether to enable high dynamic range (High Dynamic Range, HDR). These five parameters are stored in the second server In A, the first rendering feature requires three parameters: the number of Gaussian blur iterations, the number of sampling times, and the sampling zoom range, and these three parameters are stored in the second server B; then the first server can determine the second server, and then send a request to the second server corresponding to the first rendering characteristic to obtain the values of the above five parameters; similarly, the first server can determine the second server corresponding to the second rendering characteristic, and then send the request to the second rendering characteristic The corresponding second server sends a request to obtain the values of the above three parameters.
基于步骤101的相关说明可知,终端的描述信息还可以包括终端上一次渲染过程中采用的渲染帧率,相应地,步骤102包括:第一服务器还可以根据终端上一次渲染过程中采用的渲染帧率,得到一个或多个参数的取值。Based on the relevant description of step 101, it can be seen that the description information of the terminal may also include the rendering frame rate used in the last rendering process of the terminal. Correspondingly, step 102 includes: the first server may also rate to get the value of one or more parameters.
此外,基于步骤101的相关说明可知,请求中还可以携带目标应用程序的标识。In addition, based on the relevant description of step 101, it can be known that the request may also carry the identifier of the target application.
相应地,第一服务器则可以根据应用程序的标识、终端的描述信息和第一渲染特性的描述信息得到第一渲染特性所需的一个或多个参数的取值,即第一渲染特性所需的一个或多个参数的取值是第一服务器,根据应用程序的标识、终端的描述信息和第一渲染特性的描述信息得到的;其中,具体过程可参阅前文描述进行理解。Correspondingly, the first server can obtain the values of one or more parameters required by the first rendering characteristic according to the application identifier, the description information of the terminal, and the description information of the first rendering characteristic, that is, the values required by the first rendering characteristic The value of one or more parameters of is obtained by the first server according to the identification of the application program, the description information of the terminal, and the description information of the first rendering characteristic; the specific process can be understood by referring to the foregoing description.
步骤103,第一服务器向终端发送一个或多个参数的取值。Step 103, the first server sends values of one or more parameters to the terminal.
相应地,终端接收来自第一服务器的一个或多个参数的取值,即该参数的取值是第一服务器,根据终端的描述信息和第一渲染特性的描述信息得到的。Correspondingly, the terminal receives values of one or more parameters from the first server, that is, the values of the parameters are obtained by the first server according to the description information of the terminal and the description information of the first rendering characteristic.
在接收到参数的取值后,终端可以将参数的取值存储到渲染场景的描述文件中,也可以存储到其他文件中。After receiving the value of the parameter, the terminal may store the value of the parameter in the description file of the rendered scene, or in other files.
步骤104,终端根据一个或多个参数的取值,执行第一渲染特性对应的渲染操作。Step 104, the terminal executes a rendering operation corresponding to the first rendering characteristic according to values of one or more parameters.
其中,该渲染操作可以理解为根据第一渲染特性所指示方法渲染出图像的操作。Wherein, the rendering operation may be understood as an operation of rendering an image according to the method indicated by the first rendering characteristic.
需要说明的是,实现步骤104的方法有多种,本申请实施例对此不做具体限定。It should be noted that there are many methods for implementing step 104, which are not specifically limited in this embodiment of the present application.
作为一种可实现的方式,步骤104包括:As an implementable manner, step 104 includes:
终端根据终端当前的运行状态,对第一渲染特性所需的一个或多个参数的取值进行调整;The terminal adjusts the value of one or more parameters required by the first rendering feature according to the current operating state of the terminal;
终端根据调整后的第一渲染特性所需的一个或多个参数的取值,执行渲染操作。The terminal performs a rendering operation according to values of one or more parameters required by the adjusted first rendering characteristic.
终端当前的运行状态可以通过多种方式表示,作为一种可实现的方式,终端当前的运行状态包括以下状态中的至少一种:终端中中央处理器CPU的状态、终端中图形处理器的状态以及终端中内存的状态。The current operating state of the terminal can be expressed in various ways. As an achievable way, the current operating state of the terminal includes at least one of the following states: the state of the central processing unit CPU in the terminal, the state of the graphics processor in the terminal and the state of the memory in the terminal.
其中,CPU的状态和图形处理器的状态一般采用使用率(或利用率)表示,内存的状态一般采用剩余内存空间表示。Wherein, the state of the CPU and the state of the graphics processor are generally represented by a usage rate (or utilization rate), and the state of the memory is generally represented by a remaining memory space.
除此之外,终端当前的运行状态还可以包括存储读写通道占用率和网卡剩余带宽等。In addition, the current operating status of the terminal may also include the occupancy rate of the storage read-write channel and the remaining bandwidth of the network card.
需要说明的是,调整参数的取值的方法有多种,具体可以根据终端当前的运行状态进行调整。It should be noted that there are many ways to adjust the value of the parameter, and the adjustment can be made according to the current running state of the terminal.
例如,若第一渲染特性需要的参数包括高斯模糊迭代次数和采样次数,则当CPU的使用率较高时,可以适当降低高斯模糊迭代次数和/或采样次数;同样地,当图形处理器的使用率较高时,可以适当降低高斯模糊迭代次数和/或采样次数,当剩余内存空间较小时,可以适当降低高斯模糊迭代次数和/或采样次数。For example, if the parameters required by the first rendering feature include the number of iterations of Gaussian blur and the number of samples, then when the CPU usage is high, the number of iterations of Gaussian blur and/or the number of samples can be appropriately reduced; When the usage rate is high, the number of Gaussian blur iterations and/or sampling times can be appropriately reduced, and when the remaining memory space is small, the number of Gaussian blur iterations and/or sampling times can be appropriately reduced.
在本申请实施例中,终端向第一服务器发送第一请求,使得第一服务器根据第一请求中携带的终端的描述信息以及第一渲染特性的描述信息得到第一渲染特性所需的参数的取值;由于第一服务器确定第一渲染特性所需的参数的取值时考虑了终端的描述信息,所以相比于将所有的终端设备同一划分为简单的几个等级,本申请实施例能够选择出更加适合 当前终端的参数的取值,从而使得终端根据参数的取值执行渲染操作,能够产生较好的渲染效果。In this embodiment of the present application, the terminal sends the first request to the first server, so that the first server obtains the parameters required by the first rendering characteristic according to the description information of the terminal carried in the first request and the description information of the first rendering characteristic. value; since the first server considers the description information of the terminal when determining the value of the parameter required for the first rendering characteristic, compared to dividing all terminal devices into several simple levels, the embodiment of the present application can The value of the parameter that is more suitable for the current terminal is selected, so that the terminal performs a rendering operation according to the value of the parameter, which can produce a better rendering effect.
具体地,本申请实施例能够发挥高配置终端的渲染能力,使得高配置终端能够得到较好的渲染效果;尤其是当需要渲染的画面场景较复杂时,例如当需要渲染的画面场景为复杂的3D场景时,本申请实施例更加能够发挥高配置终端在渲染能力上的优势。Specifically, the embodiments of the present application can give full play to the rendering capabilities of high-configuration terminals, so that high-configuration terminals can obtain better rendering effects; especially when the scene to be rendered is complex, for example, when the scene to be rendered is complex In the case of 3D scenes, the embodiments of the present application can better utilize the advantages of high-configuration terminals in terms of rendering capabilities.
并且,本申请实施例能够防止低配置终端采用不适合参数的取值进行渲染,造成渲染效果差,甚至应用程序运行不流畅的情况,使得具有复杂的画面场景的应用程序也能够在低配置终端上流畅地运行。Moreover, the embodiments of the present application can prevent low-configuration terminals from using inappropriate parameter values for rendering, resulting in poor rendering effects and even unsmooth running of applications, so that applications with complex screen scenes can also be displayed on low-configuration terminals. run smoothly.
为了说明不适合参数的取值会造成渲染效果差,本申请实施例分别采用四套不同的参数的取值进行测试,渲染效果如图6所示。In order to illustrate that unsuitable parameter values will result in poor rendering effects, the embodiment of the present application adopts four sets of different parameter values for testing, and the rendering effect is shown in FIG. 6 .
从如图6中可以看出,高斯模糊迭代次数为6、采样次数为1时图像的帧率为60,且渲染效果较好;而将采样次数增加为6时,图像的帧率反而下降至37,且渲染效果较差;理论上,对于高配置终端来说,增加采样次数能够提升渲染效果,但该示例中的测试结果恰恰相反,因此,适合的参数的取值才能够使的终端获得较好的渲染效果。As can be seen from Figure 6, when the number of Gaussian blur iterations is 6 and the number of sampling times is 1, the frame rate of the image is 60, and the rendering effect is better; and when the number of sampling times is increased to 6, the frame rate of the image drops to 37, and the rendering effect is poor; in theory, for high-configuration terminals, increasing the number of sampling times can improve the rendering effect, but the test results in this example are just the opposite. Therefore, only suitable parameter values can enable the terminal to obtain Better rendering effect.
同样地,高斯模糊迭代次数为6、采样次数为6、采样缩放范围为4、高亮度占比为35%时的图像帧率为31,且渲染效果较好;而在上述参数的取值相同的基础上启用HDR,反而导致图像的帧率下降至22,且渲染效果较差;因此,适合的参数的取值才能够使的终端获得较好的渲染效果。Similarly, when the number of Gaussian blur iterations is 6, the number of sampling times is 6, the sampling zoom range is 4, and the high brightness ratio is 35%, the image frame rate is 31, and the rendering effect is better; while the values of the above parameters are the same On the basis of enabling HDR, the frame rate of the image will drop to 22, and the rendering effect will be poor; therefore, the appropriate parameter value can enable the terminal to obtain better rendering effect.
基于上述说明可知,本申请实施例为不同的终端选择合适的参数的取值,能够提升终端的渲染效果。Based on the above description, it can be seen that in the embodiments of the present application, selecting appropriate parameter values for different terminals can improve the rendering effect of the terminal.
需要说明的是,本申请实施例不仅可以为不同的终端选择合适的参数的取值,也可以为同一终端设置不同的渲染类型,从而使得用户在同一终端上也可以体验不同的渲染类型带来的渲染效果;其中,该渲染类型可以理解为前文中的体验风格。It should be noted that, in the embodiment of the present application, not only can the appropriate parameter values be selected for different terminals, but also different rendering types can be set for the same terminal, so that users can also experience the effects of different rendering types on the same terminal. The rendering effect; where, this rendering type can be understood as the experience style mentioned above.
下面结合图7对用户体验不同渲染类型的渲染效果的过程进行说明。The process of the user experiencing rendering effects of different rendering types will be described below with reference to FIG. 7 .
如图7所示,本申请提供了一种渲染方法的另一个实施例,在该实施例中,渲染类型包括第一渲染类型和第二渲染类型,第一渲染类型和第二渲染类型是指不同的渲染类型,不同的渲染类型可以理解为不同的体验风格;基于此,该实施例包括:As shown in FIG. 7 , the present application provides another embodiment of a rendering method. In this embodiment, the rendering type includes a first rendering type and a second rendering type, and the first rendering type and the second rendering type refer to Different rendering types, different rendering types can be understood as different experience styles; based on this, this embodiment includes:
步骤201,终端接收来自用户的第一指示信息。Step 201, the terminal receives first indication information from a user.
所述第一指示信息指示多个渲染类型中的第一渲染类型,本申请实施例对第一渲染类型不做具体限定,例如可以是“流畅”、“精美”、“低耗电”等。The first indication information indicates the first rendering type among multiple rendering types. The embodiment of the present application does not specifically limit the first rendering type, for example, it may be "smooth", "beautiful", "low power consumption" and so on.
步骤202,终端向第一服务器发送第一请求。Step 202, the terminal sends a first request to the first server.
第一请求中携带终端的描述信息以及第一渲染特性的描述信息,此外第一请求中还携带第一渲染类型的标识。The first request carries the description information of the terminal and the description information of the first rendering characteristic, and in addition, the first request also carries an identifier of the first rendering type.
步骤203,第一服务器根据第一渲染类型的标识、终端的描述信息和第一渲染特性的描述信息,得到第一渲染类型所需的一个或多个参数的取值。In step 203, the first server obtains values of one or more parameters required by the first rendering type according to the identifier of the first rendering type, the description information of the terminal, and the description information of the first rendering characteristic.
换句话说,第一渲染类型所需的一个或多个参数的取值,是第一服务器根据第一渲染类型的标识、终端的描述信息和第一渲染特性的描述信息得到的。In other words, the value of one or more parameters required by the first rendering type is obtained by the first server according to the identifier of the first rendering type, description information of the terminal, and description information of the first rendering characteristic.
步骤203与步骤102类似,不同的是,在执行步骤203的过程中,还考虑了用户选择的第一渲染类型,其他内容可参照步骤102的相关说明进行理解。Step 203 is similar to step 102, except that, in the process of executing step 203, the first rendering type selected by the user is also taken into consideration, other content can be understood by referring to the related description of step 102.
步骤204,第一服务器向终端发送一个或多个参数的取值。In step 204, the first server sends values of one or more parameters to the terminal.
步骤204与步骤103类似,具体可参照步骤103的相关说明对步骤204进行理解。Step 204 is similar to step 103, and step 204 can be understood by referring to the relevant description of step 103 for details.
步骤205,终端根据一个或多个参数的取值,执行第一渲染特性对应的渲染操作。Step 205, the terminal executes a rendering operation corresponding to the first rendering characteristic according to values of one or more parameters.
步骤205与步骤104类似,具体可参照步骤104的相关说明对步骤205进行理解。Step 205 is similar to step 104, and step 205 can be understood by referring to the relevant description of step 104 for details.
步骤206,终端接收来自用户的第二指示信息,第二指示信息指示多个渲染类型中的第二渲染类型。Step 206, the terminal receives second indication information from the user, where the second indication information indicates a second rendering type among the plurality of rendering types.
本申请实施例对第二渲染类型不做具体限定,例如可以是“流畅”、“精美”、“低耗电”等。The embodiment of the present application does not specifically limit the second rendering type, for example, it may be "smooth", "beautiful", "low power consumption" and so on.
需要说明的是,步骤206可以在执行了步骤201至步骤203的情况下执行,也可以在其他情况下执行。It should be noted that step 206 may be performed when steps 201 to 203 are performed, or may be performed under other conditions.
例如,用户开始未选择渲染类型,在步骤204中,第一服务器发送的是默认渲染类型的参数的取值;此后,用户选择了第二渲染类型,则执行步骤206,由此可见,在这种情况下,未执行步骤201至步骤203,但执行了步骤206。For example, the user does not select a rendering type at first, and in step 204, the first server sends the value of the parameter of the default rendering type; after that, the user selects the second rendering type, and then executes step 206, it can be seen that, in this In this case, steps 201 to 203 are not executed, but step 206 is executed.
步骤207,终端向第一服务器发送第二请求,第二请求中携带第二渲染类型的标识。Step 207, the terminal sends a second request to the first server, and the second request carries an identifier of the second rendering type.
需要说明的是,在终端和第一服务器交互(例如执行了步骤201至步骤205)后,第一服务器中已经存在了终端的描述信息,所以第二请求中可以不携带终端的描述信息。It should be noted that after the terminal interacts with the first server (for example, steps 201 to 205 are executed), the first server already has the terminal's description information, so the second request may not carry the terminal's description information.
由于第一服务器可以与多个终端交互,所以为了辨别是哪个终端,第二请求中也可以携带终端的描述信息。Since the first server can interact with multiple terminals, in order to identify which terminal it is, the second request may also carry terminal description information.
另外,若用户选择的仅仅是第二渲染类型,而渲染特性的种类未改变,即终端仍执行第一渲染特性对应的渲染操作,那么第二请求中可以不携带渲染特性的描述信息。In addition, if the user selects only the second rendering type, but the type of the rendering characteristic remains unchanged, that is, the terminal still executes the rendering operation corresponding to the first rendering characteristic, then the second request may not carry the description information of the rendering characteristic.
若用户为后续渲染过程中用到的第二渲染特性(不同于第一渲染特性)选择渲染类型,那么第二请求中还可以携带第二渲染特性的描述信息。If the user selects a rendering type for the second rendering characteristic (different from the first rendering characteristic) used in the subsequent rendering process, the second request may also carry description information of the second rendering characteristic.
相应地,第一服务器接收来自终端的第二请求,第二请求中携带第二渲染类型的标识;作为一种可实现的方式,第二请求携带终端的描述信息和/或第二渲染特性的描述信息。Correspondingly, the first server receives the second request from the terminal, and the second request carries the identifier of the second rendering type; as an implementable manner, the second request carries the description information of the terminal and/or the second rendering characteristic Description.
步骤208,第一服务器根据第二渲染类型的标识,得到第二渲染类型所需的一个或多个参数的取值。In step 208, the first server obtains values of one or more parameters required by the second rendering type according to the identifier of the second rendering type.
作为一种可实现的方式,步骤208包括:第一服务器根据第二渲染类型的标识,以及终端的描述信息和第一渲染特性的描述信息中的至少一者,得到第二渲染类型所需的一个或多个参数的取值。As an implementable manner, step 208 includes: the first server obtains the information required by the second rendering type according to the identifier of the second rendering type and at least one of the description information of the terminal and the description information of the first rendering characteristic. The value of one or more parameters.
步骤209,第一服务器向终端发送第二渲染类型所需的一个或多个参数的取值。In step 209, the first server sends values of one or more parameters required by the second rendering type to the terminal.
相应地,终端接收来自第一服务器的一个或多个参数的取值,一个或多个参数的取值是第一服务器,根据第二渲染类型的标识得到的,Correspondingly, the terminal receives values of one or more parameters from the first server, where the values of the one or more parameters are obtained by the first server according to the identifier of the second rendering type,
步骤210,终端根据第二渲染类型所需的一个或多个参数的取值,执行渲染操作。Step 210, the terminal performs a rendering operation according to values of one or more parameters required by the second rendering type.
其中,该渲染操作可以是第一渲染特性对应的渲染操作,也可以是第二渲染特性对应的渲染操作。Wherein, the rendering operation may be a rendering operation corresponding to the first rendering characteristic, or may be a rendering operation corresponding to the second rendering characteristic.
步骤206至步骤210,与步骤201至步骤205类似,具体可参照步骤201至步骤205的相关说明对步骤206至步骤210进行理解。Steps 206 to 210 are similar to steps 201 to 205. For details, reference may be made to the relevant descriptions of steps 201 to 205 to understand steps 206 to 210.
在该实施例中,终端先接收第一指示信息,然后根据第一指示信息指示的第一渲染类型获取第一渲染类型所需的参数的取值,以为用户提供第一渲染类型对应的渲染效果;然后,终端接收第二指示信息,然后根据第二指示信息指示的第二渲染类型获取第二渲染类型所需的参数的取值,以为用户提供第二渲染类型对应的渲染效果,从而实现不同渲染效果的切换。In this embodiment, the terminal first receives the first indication information, and then acquires the value of the parameters required by the first rendering type according to the first rendering type indicated by the first indication information, so as to provide the user with the rendering effect corresponding to the first rendering type ; Then, the terminal receives the second indication information, and then obtains the value of the parameter required by the second rendering type according to the second rendering type indicated by the second indication information, so as to provide the user with a rendering effect corresponding to the second rendering type, so as to realize different Switching of rendering effects.
需要说明的是,在执行步骤210时,若第一渲染类型所需的参数中的一个参数与第二渲染类型所需的参数中的一个参数相同,为了防止渲染效果变化太大,可以先为相同的参数生成过渡状态的取值,然后根据过渡状态的参数的取值执行渲染操作,从而实现两种不同的渲染类型之间的平滑过渡;其中,生成过渡状态的参数的取值的方法有多种,本申请实施例对此不做具体限定,例如可以采用差值的方法,并根据第一渲染类型所需的参数的取值和第二渲染类型所需的参数的取值计算得到过渡状态的参数的取值。It should be noted that, when step 210 is executed, if one of the parameters required by the first rendering type is the same as one of the parameters required by the second rendering type, in order to prevent the rendering effect from changing too much, you can first set The same parameter generates the value of the transition state, and then performs the rendering operation according to the value of the parameter of the transition state, so as to achieve a smooth transition between two different rendering types; among them, the method of generating the value of the parameter of the transition state is as follows Various, the embodiment of the present application does not specifically limit this, for example, the difference method can be used, and the transition can be calculated according to the values of the parameters required by the first rendering type and the values of the parameters required by the second rendering type The value of the parameter of the state.
例如,第一渲染类型所需的参数中和第二渲染类型所需的参数中都包含高斯模糊迭代次数,且第一渲染类型所需的高斯模糊迭代次数为4次,第二渲染类型所需的高斯模糊迭代次数为6次,则可以先按照高斯模糊迭代次数为5次执行渲染操作,再按照高斯模糊迭代次数为6次执行渲染操作,从而实现第一渲染类型到第二渲染类型的平滑切换,从而实现不同渲染效果的平滑切换。For example, the parameters required by the first rendering type and the parameters required by the second rendering type both include the number of Gaussian blur iterations, and the number of Gaussian blur iterations required by the first rendering type is 4 times, and the number of Gaussian blur iterations required by the second rendering type If the number of Gaussian blur iterations is 6, you can first perform the rendering operation according to the Gaussian blur iteration number of 5 times, and then perform the rendering operation according to the Gaussian blur iteration number of 6 times, so as to achieve smoothing from the first rendering type to the second rendering type Switch to achieve smooth switching of different rendering effects.
另外,需要说明的是,服务器可以先将多种渲染类型各自所需的参数的取值发送至终端,然后用户选择多种渲染类型中的第一渲染类型,终端便根据第一渲染类型所需的参数的取值执行渲染操作;此后,若用户又选择多种渲染类型中的第二渲染类型,终端便根据第二渲染类型所需的参数的取值执行渲染操作;该方法减少了终端和第一服务器间的交互,从而可以减少不同渲染类型的切换时间。In addition, it should be noted that the server can first send the values of the parameters required by each of the multiple rendering types to the terminal, and then the user selects the first rendering type among the multiple rendering types, and the terminal then After that, if the user selects the second rendering type among the multiple rendering types, the terminal will perform the rendering operation according to the value of the parameters required by the second rendering type; this method reduces the number of terminals and The interaction between the first server can reduce the switching time of different rendering types.
如图8所示,本申请实施例还提供了一种渲染装置的一个实施例,包括:收发单元301,向第一服务器发送第一请求,第一请求中携带终端的描述信息以及第一渲染特性的描述信息;收发单元301,用于接收来自第一服务器的一个或多个参数的取值;处理单元302,用于根据一个或多个参数的取值,执行第一渲染特性对应的渲染操作。As shown in Figure 8, the embodiment of the present application also provides an embodiment of a rendering device, including: a transceiver unit 301, which sends a first request to the first server, and the first request carries the description information of the terminal and the first rendering Characteristic description information; the transceiver unit 301 is configured to receive the value of one or more parameters from the first server; the processing unit 302 is configured to perform rendering corresponding to the first rendering characteristic according to the value of one or more parameters operate.
作为一种可实现的方式,一个或多个参数的取值是第一服务器根据终端的描述信息和第一渲染特性的描述信息得到的。As an implementable manner, the value of one or more parameters is obtained by the first server according to the description information of the terminal and the description information of the first rendering characteristic.
作为一种可实现的方式,第一渲染特性的描述信息包括第一渲染特性的标识和/或一个或多个参数的标识。As an implementable manner, the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters.
作为一种可实现的方式,终端的描述信息包括终端的型号和/或终端的硬件信息。As an implementable manner, the description information of the terminal includes a model of the terminal and/or hardware information of the terminal.
作为一种可实现的方式,处理单元302,用于根据终端当前的运行状态,对一个或多个参数的取值进行调整;根据调整后的一个或多个参数的取值,执行第一渲染特性对应的渲染操作。As an achievable manner, the processing unit 302 is configured to adjust the value of one or more parameters according to the current operating state of the terminal; perform the first rendering according to the adjusted value of one or more parameters The rendering operation corresponding to the feature.
作为一种可实现的方式,终端当前的运行状态包括以下状态中的至少一种:终端中央处理器的利用率、终端图形处理器的利用率以及终端的剩余内存空间。As an implementable manner, the current running state of the terminal includes at least one of the following states: the utilization rate of the central processing unit of the terminal, the utilization rate of the graphic processor of the terminal, and the remaining memory space of the terminal.
收发单元301还用于接收来自用户的第一指示信息,第一指示信息指示多个渲染类型中的第一渲染类型;第一请求中还携带第一渲染类型的标识。The transceiving unit 301 is further configured to receive first indication information from the user, where the first indication information indicates a first rendering type among multiple rendering types; the first request also carries an identifier of the first rendering type.
作为一种可实现的方式,收发单元301还用于接收来自用户的第二指示信息,第二指示信息指示多个渲染类型中的第二渲染类型;向第一服务器发送第二请求,第二请求中携带第二渲染类型的标识;接收来自第一服务器的第二渲染类型所需的一个或多个参数的取值;处理单元302,还用于根据第二渲染类型所需的一个或多个参数的取值,执行渲染操作。As an implementable manner, the transceiver unit 301 is further configured to receive second indication information from the user, where the second indication information indicates a second rendering type among multiple rendering types; send a second request to the first server, and the second The request carries the identification of the second rendering type; receives the value of one or more parameters required by the second rendering type from the first server; the processing unit 302 is also configured to The value of the parameter, perform the rendering operation.
其中,以上各单元的具体实现、相关说明以及技术效果请参考本申请实施例的方法的描述。For the specific implementation, related description and technical effects of the above units, please refer to the description of the method in the embodiment of the present application.
如图9所示,本申请实施例还提供了一种渲染装置的一个实施例,包括:收发单元401,用于接收来自终端的第一请求,第一请求中携带终端的描述信息以及第一渲染特性的描述信息;处理单元402,用于根据终端的描述信息和第一渲染特性的描述信息,得到一个或多个参数的取值;收发单元401,用于向终端发送一个或多个参数的取值。As shown in FIG. 9 , the embodiment of the present application also provides an embodiment of a rendering device, including: a transceiver unit 401, configured to receive a first request from a terminal, the first request carries the description information of the terminal and the first The description information of the rendering characteristic; the processing unit 402 is configured to obtain the value of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic; the transceiver unit 401 is configured to send one or more parameters to the terminal value of .
作为一种可实现的方式,处理单元402,用于根据终端的描述信息、第一渲染特性的描述信息,以及终端的描述信息、第一渲染特性的描述信息、参数的取值三者之间的对应关系,得到一个或多个参数的取值。As a practicable manner, the processing unit 402 is configured to, according to the description information of the terminal, the description information of the first rendering characteristic, and the relationship among the description information of the terminal, the description information of the first rendering characteristic, and the value of the parameter Corresponding relationship, get the value of one or more parameters.
作为一种可实现的方式,处理单元402,用于根据第一渲染特性的描述信息,确定与第一渲染特性对应的第二服务器;As an implementable manner, the processing unit 402 is configured to determine a second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic;
收发单元401,用于向第一渲染特性对应的第二服务器发送请求,以获取一个或多个参数的取值。The transceiving unit 401 is configured to send a request to a second server corresponding to the first rendering characteristic, so as to obtain values of one or more parameters.
作为一种可实现的方式,第一渲染特性的描述信息包括第一渲染特性的标识和/或一个或多个参数的标识。As an implementable manner, the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or identifiers of one or more parameters.
作为一种可实现的方式,终端的描述信息包括终端的型号和/或终端的硬件信息。As an implementable manner, the description information of the terminal includes a model of the terminal and/or hardware information of the terminal.
作为一种可实现的方式,第一请求中还携带第一渲染类型的标识;处理单元402,用于根据第一渲染类型的标识、终端的描述信息和第一渲染特性的描述信息,得到一个或多个参数的取值。As an implementable manner, the first request also carries the identifier of the first rendering type; the processing unit 402 is configured to obtain a or the value of multiple parameters.
作为一种可实现的方式,收发单元401,用于接收来自终端的第二请求,第二请求中携带第二渲染类型的标识;处理单元402,用于根据第二渲染类型的标识,得到一个或多个参数的取值;收发单元401,用于向终端发送一个或多个参数的取值。As an implementable manner, the transceiver unit 401 is configured to receive a second request from the terminal, and the second request carries the identifier of the second rendering type; the processing unit 402 is configured to obtain a or values of multiple parameters; the transceiver unit 401 is configured to send values of one or more parameters to the terminal.
其中,以上各单元的具体实现、相关说明以及技术效果请参考本申请实施例的方法的描述。For the specific implementation, related description and technical effects of the above units, please refer to the description of the method in the embodiment of the present application.
请参阅图10所示,本申请实施例还提供了一种终端设备1200。该终端设备1200用于执行上述方法实施例中终端设备所执行的操作。本申请实施例中,终端设备以PC为例进行说明。终端设备1200包括处理器1201、存储器1202、输入单元1203、显示单元1204、通信单元1206等部件。存储器1202可用于存储软件程序以及模块,处理器1201通过运行存储在存储器1202的软件程序以及模块,从而执行装置的各种功能应用以及数据处理。存储器1202可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘 存储器件、闪存器件、或其他易失性固态存储器件。处理器1201可以用于计算参数的取值、显示时刻以及判断是否显示视频帧等。可选地,处理器1201包括但不限于各类型的处理器,如中央处理器(central processing unit,CPU)、图像信号处理器等。Referring to FIG. 10 , the embodiment of the present application further provides a terminal device 1200 . The terminal device 1200 is configured to perform operations performed by the terminal device in the foregoing method embodiments. In this embodiment of the present application, a PC is used as an example of a terminal device for description. The terminal device 1200 includes a processor 1201, a memory 1202, an input unit 1203, a display unit 1204, a communication unit 1206 and other components. The memory 1202 can be used to store software programs and modules, and the processor 1201 executes various functional applications and data processing of the device by running the software programs and modules stored in the memory 1202 . The memory 1202 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. The processor 1201 can be used to calculate the value of the parameter, the display time, and judge whether to display the video frame or not. Optionally, the processor 1201 includes, but is not limited to, various types of processors, such as a central processing unit (central processing unit, CPU), an image signal processor, and the like.
输入单元1203可用于接收输入的数字或字符信息,以及产生与装置的用户设置以及功能控制有关的键信号输入。具体地,输入单元1203可包括触控面板1231。触控面板1231,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1231上或在触控面板1231附近的操作)。除了触控面板1231,输入单元1130还可以包括其他输入设备1232。具体地,其他输入设备1232可以包括但不限于物理键盘、鼠标、操作杆等中的一种或多种。The input unit 1203 can be used to receive inputted number or character information, and generate key signal input related to user settings and function control of the device. Specifically, the input unit 1203 may include a touch panel 1231 . The touch panel 1231, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1231 or near the touch panel 1231). operate). In addition to the touch panel 1231 , the input unit 1130 may also include other input devices 1232 . Specifically, other input devices 1232 may include but not limited to one or more of a physical keyboard, mouse, joystick, and the like.
显示单元1204可用于显示视频帧。显示单元1204可包括显示面板1241,可选的,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1241。在某些实施例中,可以将触控面板1231与显示面板1241集成而实现装置的输入和输出功能。The display unit 1204 can be used to display video frames. The display unit 1204 may include a display panel 1241. Optionally, the display panel 1241 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. In some embodiments, the touch panel 1231 can be integrated with the display panel 1241 to realize the input and output functions of the device.
通信单元1206,用于建立通信信道,与其他终端设备通信,具体可以用于发送或接收携带视频帧号码、视频数据等的消息,以及发送或接收指示不显示某一视频帧的指示信息。例如,该通信单元1206可以包括无线局域网模块、蓝牙模块、基带模块等通信模块,或者,还可以包括PLC通信模块、wifi通信模块、UWB通信模块、超声波通信模块、RFID通信和ZigBee通信等。可选地,通信单元1206中的各种通信模块一般以集成电路芯片的形式出现,并可进行选择性组合,而不必包括所有通信模块及对应的天线组。The communication unit 1206 is configured to establish a communication channel and communicate with other terminal devices, and may be specifically configured to send or receive messages carrying video frame numbers, video data, etc., and send or receive indication information indicating not to display a certain video frame. For example, the communication unit 1206 may include communication modules such as a wireless local area network module, a Bluetooth module, and a baseband module, or may also include a PLC communication module, a wifi communication module, a UWB communication module, an ultrasonic communication module, RFID communication, and ZigBee communication. Optionally, various communication modules in the communication unit 1206 generally appear in the form of integrated circuit chips, and can be selectively combined without including all communication modules and corresponding antenna groups.
如图11所示,本申请实施例还提供了一种服务器2000,用于执行上述方法实施例中服务器所执行的操作;如图所示,服务器2000包括处理器701、存储单元702、存储介质703、总线704、通信接口705。其中,处理器701、存储单元702以及存储介质703通过总线704进行通信,也可以通过无线传输等其他手段实现通信。As shown in Figure 11, the embodiment of the present application also provides a server 2000, which is used to perform the operations performed by the server in the above method embodiment; as shown in the figure, the server 2000 includes a processor 701, a storage unit 702, a storage medium 703 , a bus 704 , and a communication interface 705 . Wherein, the processor 701, the storage unit 702, and the storage medium 703 communicate through the bus 704, and the communication may also be realized through other means such as wireless transmission.
该存储介质703用于存储指令,该处理器701用于执行该存储介质703存储的指令。该存储介质703存储程序代码,且处理器701可以调用存储介质703中存储的程序代码执行相应的操作。The storage medium 703 is used for storing instructions, and the processor 701 is used for executing the instructions stored in the storage medium 703 . The storage medium 703 stores program codes, and the processor 701 can call the program codes stored in the storage medium 703 to perform corresponding operations.
该总线704除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线704。The bus 704 may include not only a data bus, but also a power bus, a control bus, and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus 704 in the figure.
存储单元702可以包括内核和程序。The storage unit 702 may include kernels and programs.
其中,处理器701用于执行图9中渲染装置所执行的方法。Wherein, the processor 701 is configured to execute the method executed by the rendering device in FIG. 9 .
本申请实施例提供了一种计算机可读介质,计算机可读存储介质用于存储计算机程序,当计算机程序在计算机上运行时,使得计算机执行上述方法实施例中显示设备所执行的方法。An embodiment of the present application provides a computer-readable medium, the computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is made to perform the method performed by the display device in the above method embodiments.
本申请实施例提供了一种芯片,芯片包括处理器和通信接口,通信接口例如是输入/输出接口、管脚或电路等。处理器用于读取指令以执行上述方法实施例中显示设备所执行的方法。An embodiment of the present application provides a chip, and the chip includes a processor and a communication interface, where the communication interface is, for example, an input/output interface, a pin, or a circuit. The processor is configured to read instructions to execute the methods executed by the display device in the above method embodiments.
本申请实施例提供了一种计算机程序产品,该计算机程序产品被计算机执行时实现上述方法实施例中显示设备所执行的方法。An embodiment of the present application provides a computer program product, and when the computer program product is executed by a computer, the method performed by the display device in the foregoing method embodiment is implemented.
其中,可选地,上述任一处提到的处理器,是一个通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC)。Wherein, optionally, the processor mentioned in any of the above is a general-purpose central processing unit (CPU), a microprocessor, or an application-specific integrated circuit (application-specific integrated circuit, ASIC).
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions described in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application.

Claims (29)

  1. 一种渲染方法,其特征在于,包括:A rendering method, characterized by comprising:
    终端向第一服务器发送第一请求,所述第一请求中携带所述终端的描述信息以及第一渲染特性的描述信息;The terminal sends a first request to the first server, where the first request carries description information of the terminal and description information of the first rendering characteristic;
    所述终端接收来自所述第一服务器的一个或多个参数的取值;The terminal receives values of one or more parameters from the first server;
    所述终端根据所述一个或多个参数的取值,执行所述第一渲染特性对应的渲染操作。The terminal executes a rendering operation corresponding to the first rendering characteristic according to values of the one or more parameters.
  2. 根据权利要求1所述的方法,其特征在于,所述一个或多个参数的取值是所述第一服务器根据所述终端的描述信息和所述第一渲染特性的描述信息得到的。The method according to claim 1, wherein the value of the one or more parameters is obtained by the first server according to the description information of the terminal and the description information of the first rendering characteristic.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一渲染特性的描述信息包括所述第一渲染特性的标识和/或所述一个或多个参数的标识。The method according to claim 1 or 2, wherein the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or an identifier of the one or more parameters.
  4. 根据权利要求1至3中任意一项所述的方法,其特征在于,所述终端的描述信息包括所述终端的型号和/或所述终端的硬件信息。The method according to any one of claims 1 to 3, wherein the description information of the terminal includes a model of the terminal and/or hardware information of the terminal.
  5. 根据权利要求1至4中任意一项所述的方法,其特征在于,所述终端根据所述一个或多个参数的取值,执行所述第一渲染特性对应的渲染操作包括:The method according to any one of claims 1 to 4, wherein the terminal performing the rendering operation corresponding to the first rendering characteristic according to the value of the one or more parameters includes:
    所述终端根据所述终端当前的运行状态,对所述一个或多个参数的取值进行调整;The terminal adjusts the value of the one or more parameters according to the current operating state of the terminal;
    所述终端根据调整后的所述一个或多个参数的取值,执行所述第一渲染特性对应的渲染操作。The terminal executes a rendering operation corresponding to the first rendering characteristic according to the adjusted values of the one or more parameters.
  6. 根据权利要求5所述的方法,其特征在于,所述终端当前的运行状态包括以下状态中的至少一种:所述终端中央处理器的利用率、所述终端图形处理器的利用率以及所述终端的剩余内存空间。The method according to claim 5, wherein the current operating state of the terminal includes at least one of the following states: the utilization rate of the central processing unit of the terminal, the utilization rate of the graphics processor of the terminal, and the The remaining memory space of the above-mentioned terminal.
  7. 根据权利要求1至6中任意一项所述的方法,其特征在于,在所述终端向第一服务器发送第一请求之前,所述方法还包括:The method according to any one of claims 1 to 6, wherein before the terminal sends the first request to the first server, the method further comprises:
    所述终端接收来自用户的第一指示信息,所述第一指示信息指示多个渲染类型中的第一渲染类型;The terminal receives first indication information from a user, where the first indication information indicates a first rendering type among multiple rendering types;
    所述第一请求中还携带所述第一渲染类型的标识。The first request also carries the identifier of the first rendering type.
  8. 根据权利要求1至7中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    所述终端接收来自用户的第二指示信息,所述第二指示信息指示多个渲染类型中的第二渲染类型;The terminal receives second indication information from a user, where the second indication information indicates a second rendering type among multiple rendering types;
    终端向第一服务器发送第二请求,所述第二请求中携带第二渲染类型的标识;The terminal sends a second request to the first server, where the second request carries an identifier of the second rendering type;
    所述终端接收来自所述第一服务器的所述第二渲染类型所需的一个或多个参数的取值;The terminal receives values of one or more parameters required by the second rendering type from the first server;
    所述终端根据所述第二渲染类型所需的一个或多个参数的取值,执行渲染操作。The terminal performs a rendering operation according to values of one or more parameters required by the second rendering type.
  9. 根据权利要求1至8中任意一项所述的方法,其特征在于,所述第一请求中还携带目标应用程序的标识,所述目标应用程序在运行过程中所需采用的渲染特性包括所述第一渲染特性。The method according to any one of claims 1 to 8, wherein the first request also carries the identifier of the target application, and the rendering characteristics required by the target application during running include the Describe the first rendering feature.
  10. 一种提供渲染参数的方法,其特征在于,包括:A method for providing rendering parameters, characterized by comprising:
    第一服务器接收来自终端的第一请求,所述第一请求中携带所述终端的描述信息以及 第一渲染特性的描述信息;The first server receives a first request from a terminal, where the first request carries description information of the terminal and description information of a first rendering characteristic;
    所述第一服务器根据所述终端的描述信息和所述第一渲染特性的描述信息,得到一个或多个参数的取值;The first server obtains values of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic;
    所述第一服务器向所述终端发送所述一个或多个参数的取值。The first server sends values of the one or more parameters to the terminal.
  11. 根据权利要求10所述的方法,其特征在于,所述第一服务器根据所述终端的描述信息和所述第一渲染特性的描述信息,得到一个或多个参数的取值包括:The method according to claim 10, wherein the first server obtains the value of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic including:
    所述第一服务器根据所述终端的描述信息、所述第一渲染特性的描述信息,以及所述终端的描述信息、所述第一渲染特性的描述信息、参数的取值三者之间的对应关系,得到一个或多个参数的取值。The first server, according to the description information of the terminal, the description information of the first rendering characteristic, and the relationship among the description information of the terminal, the description information of the first rendering characteristic, and the value of the parameter Corresponding relationship, get the value of one or more parameters.
  12. 根据权利要求10所述的方法,其特征在于,所述第一服务器根据所述终端的描述信息和所述第一渲染特性的描述信息,得到一个或多个参数的取值包括:The method according to claim 10, wherein the first server obtains the value of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic including:
    所述第一服务器根据所述第一渲染特性的描述信息,确定与所述第一渲染特性对应的第二服务器;The first server determines a second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic;
    所述第一服务器向所述第一渲染特性对应的所述第二服务器发送请求,以获取一个或多个参数的取值。The first server sends a request to the second server corresponding to the first rendering characteristic to acquire values of one or more parameters.
  13. 根据权利要求10至12中任意一项所述的方法,其特征在于,所述第一渲染特性的描述信息包括所述第一渲染特性的标识和/或所述一个或多个参数的标识。The method according to any one of claims 10 to 12, wherein the description information of the first rendering characteristic includes an identifier of the first rendering characteristic and/or an identifier of the one or more parameters.
  14. 根据权利要求10至13中任意一项所述的方法,其特征在于,所述终端的描述信息包括所述终端的型号和/或所述终端的硬件信息。The method according to any one of claims 10 to 13, wherein the description information of the terminal includes a model of the terminal and/or hardware information of the terminal.
  15. 根据权利要求10至14中任意一项所述的方法,其特征在于,所述第一请求中还携带第一渲染类型的标识;The method according to any one of claims 10 to 14, wherein the first request also carries an identifier of the first rendering type;
    所述第一服务器根据所述终端的描述信息和所述第一渲染特性的描述信息,得到一个或多个参数的取值包括:The value of one or more parameters obtained by the first server according to the description information of the terminal and the description information of the first rendering characteristic includes:
    所述第一服务器根据所述第一渲染类型的标识、所述终端的描述信息和所述第一渲染特性的描述信息,得到所述第一渲染类型所需的一个或多个参数的取值。The first server obtains the value of one or more parameters required by the first rendering type according to the identifier of the first rendering type, the description information of the terminal, and the description information of the first rendering characteristic .
  16. 根据权利要求10至15中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 10 to 15, further comprising:
    所述第一服务器接收来自终端的第二请求,所述第二请求中携带所述第二渲染类型的标识;The first server receives a second request from a terminal, where the second request carries an identifier of the second rendering type;
    所述第一服务器根据所述第二渲染类型的标识,得到所述第二渲染类型所需的一个或多个参数的取值;The first server obtains values of one or more parameters required by the second rendering type according to the identifier of the second rendering type;
    所述第一服务器向所述终端发送所述第二渲染类型所需的一个或多个参数的取值。The first server sends values of one or more parameters required by the second rendering type to the terminal.
  17. 一种渲染装置,其特征在于,包括:A rendering device, characterized in that it comprises:
    收发单元,向第一服务器发送第一请求,所述第一请求中携带所述终端的描述信息以及第一渲染特性的描述信息;a transceiver unit, configured to send a first request to a first server, where the first request carries description information of the terminal and description information of a first rendering characteristic;
    所述收发单元,用于接收来自所述第一服务器的一个或多个参数的取值;The transceiving unit is configured to receive values of one or more parameters from the first server;
    处理单元,用于根据所述一个或多个参数的取值,执行所述第一渲染特性对应的渲染操作。A processing unit, configured to execute a rendering operation corresponding to the first rendering characteristic according to values of the one or more parameters.
  18. 根据权利要求17所述的装置,其特征在于,所述处理单元,用于根据所述终端当前的运行状态,对所述一个或多个参数的取值进行调整;The device according to claim 17, wherein the processing unit is configured to adjust the value of the one or more parameters according to the current operating state of the terminal;
    根据调整后的所述一个或多个参数的取值,执行所述第一渲染特性对应的渲染操作。Perform a rendering operation corresponding to the first rendering characteristic according to the adjusted values of the one or more parameters.
  19. 根据权利要求17或18所述的装置,其特征在于,所述收发单元还用于接收来自用户的第一指示信息,所述第一指示信息指示多个渲染类型中的第一渲染类型;The device according to claim 17 or 18, wherein the transceiver unit is further configured to receive first indication information from a user, the first indication information indicating a first rendering type among multiple rendering types;
    所述第一请求中还携带所述第一渲染类型的标识。The first request also carries the identifier of the first rendering type.
  20. 根据权利要求17至19中任意一项所述的装置,其特征在于,所述收发单元还用于接收来自用户的第二指示信息,所述第二指示信息指示多个渲染类型中的第二渲染类型;The device according to any one of claims 17 to 19, wherein the transceiving unit is further configured to receive second indication information from the user, the second indication information indicating the second of the multiple rendering types rendering type;
    向第一服务器发送第二请求,所述第二请求中携带第二渲染类型的标识;sending a second request to the first server, where the second request carries an identifier of the second rendering type;
    接收来自所述第一服务器的所述第二渲染类型所需的一个或多个参数的取值;receiving values of one or more parameters required by the second rendering type from the first server;
    所述处理单元,还用于根据所述第二渲染类型所需的一个或多个参数的取值,执行渲染操作。The processing unit is further configured to perform a rendering operation according to values of one or more parameters required by the second rendering type.
  21. 一种渲染装置,其特征在于,包括:A rendering device, characterized in that it comprises:
    收发单元,用于接收来自终端的第一请求,所述第一请求中携带所述终端的描述信息以及第一渲染特性的描述信息;a transceiver unit, configured to receive a first request from a terminal, where the first request carries description information of the terminal and description information of a first rendering characteristic;
    处理单元,用于根据所述终端的描述信息和所述第一渲染特性的描述信息,得到一个或多个参数的取值;a processing unit, configured to obtain values of one or more parameters according to the description information of the terminal and the description information of the first rendering characteristic;
    所述收发单元,用于向所述终端发送所述一个或多个参数的取值。The transceiving unit is configured to send values of the one or more parameters to the terminal.
  22. 根据权利要求21所述的装置,其特征在于,所述处理单元,用于根据所述终端的描述信息、所述第一渲染特性的描述信息,以及所述终端的描述信息、所述第一渲染特性的描述信息、参数的取值三者之间的对应关系,得到一个或多个参数的取值。The device according to claim 21, wherein the processing unit is configured to, according to the description information of the terminal, the description information of the first rendering characteristic, and the description information of the terminal, the first The corresponding relationship between the description information of the rendering feature and the value of the parameter is used to obtain the value of one or more parameters.
  23. 根据权利要求21或22所述的装置,其特征在于,所述处理单元,用于根据所述第一渲染特性的描述信息,确定与所述第一渲染特性对应的第二服务器;The device according to claim 21 or 22, wherein the processing unit is configured to determine a second server corresponding to the first rendering characteristic according to the description information of the first rendering characteristic;
    所述收发单元,用于向所述第一渲染特性对应的所述第二服务器发送请求,以获取一个或多个参数的取值。The transceiving unit is configured to send a request to the second server corresponding to the first rendering characteristic to obtain values of one or more parameters.
  24. 根据权利要求21至23中任意一项所述的装置,其特征在于,所述第一请求中还携带第一渲染类型的标识;The device according to any one of claims 21 to 23, wherein the first request also carries an identifier of the first rendering type;
    所述处理单元,用于根据所述第一渲染类型的标识、所述终端的描述信息和所述第一渲染特性的描述信息,得到一个或多个参数的取值。The processing unit is configured to obtain values of one or more parameters according to the identifier of the first rendering type, description information of the terminal, and description information of the first rendering characteristic.
  25. 根据权利要求21至24中任意一项所述的装置,其特征在于,所述收发单元,用于接收来自终端的第二请求,所述第二请求中携带所述第二渲染类型的标识;The device according to any one of claims 21 to 24, wherein the transceiver unit is configured to receive a second request from a terminal, and the second request carries an identifier of the second rendering type;
    所述处理单元,用于根据所述第二渲染类型的标识,得到一个或多个参数的取值;The processing unit is configured to obtain values of one or more parameters according to the identifier of the second rendering type;
    所述收发单元,用于向所述终端发送所述一个或多个参数的取值。The transceiving unit is configured to send values of the one or more parameters to the terminal.
  26. 一种终端设备,其特征在于,包括:存储器和处理器,其中,所述存储器用于存储计算机可读指令;所述处理器用于读取所述计算机可读指令并实现如权利要求1-9任意一项所述的方法。A terminal device, characterized by comprising: a memory and a processor, wherein the memory is used to store computer-readable instructions; the processor is used to read the computer-readable instructions and implement claims 1-9 any one of the methods described.
  27. 一种服务器,其特征在于,包括:存储器和处理器,其中,所述存储器用于存储计算机可读指令;所述处理器用于读取所述计算机可读指令并实现如权利要求10-16任意一项所述的方法。A server, characterized by comprising: a memory and a processor, wherein the memory is used to store computer-readable instructions; the processor is used to read the computer-readable instructions and implement any of claims 10-16. one of the methods described.
  28. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机可读指令,且所述计算机可读指令在被处理器执行时实现如权利要求1-16任意一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the computer-readable instructions according to any one of claims 1-16 are implemented. described method.
  29. 一种计算机程序产品,其特征在于,所述计算机程序产品中包含计算机可读指令,当该计算机可读指令被处理器执行时实现如权利要求1-16任意一项所述的方法。A computer program product, characterized in that the computer program product contains computer readable instructions, and when the computer readable instructions are executed by a processor, the method according to any one of claims 1-16 is implemented.
PCT/CN2022/124742 2021-10-21 2022-10-12 Rendering method and related apparatus WO2023066095A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111228777.X 2021-10-21
CN202111228777.XA CN116009998A (en) 2021-10-21 2021-10-21 Rendering method and related device

Publications (1)

Publication Number Publication Date
WO2023066095A1 true WO2023066095A1 (en) 2023-04-27

Family

ID=86021654

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124742 WO2023066095A1 (en) 2021-10-21 2022-10-12 Rendering method and related apparatus

Country Status (2)

Country Link
CN (1) CN116009998A (en)
WO (1) WO2023066095A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014180934A1 (en) * 2013-05-07 2014-11-13 Nagravision S.A. A media player for receiving media content from a remote server
CN104519105A (en) * 2013-10-08 2015-04-15 贝壳网际(北京)安全技术有限公司 Method and device for acquiring applications matched with terminals
CN105260444A (en) * 2015-10-09 2016-01-20 深圳市华讯方舟科技有限公司 Adaptive data display method, terminal device and server
CN106341533A (en) * 2016-08-30 2017-01-18 腾讯科技(深圳)有限公司 Method and device for loading network resource in application
CN108733738A (en) * 2017-04-25 2018-11-02 腾讯科技(深圳)有限公司 A kind of page loading method, system, server and terminal
CN111310088A (en) * 2020-02-12 2020-06-19 北京字节跳动网络技术有限公司 Page rendering method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014180934A1 (en) * 2013-05-07 2014-11-13 Nagravision S.A. A media player for receiving media content from a remote server
CN104519105A (en) * 2013-10-08 2015-04-15 贝壳网际(北京)安全技术有限公司 Method and device for acquiring applications matched with terminals
CN105260444A (en) * 2015-10-09 2016-01-20 深圳市华讯方舟科技有限公司 Adaptive data display method, terminal device and server
CN106341533A (en) * 2016-08-30 2017-01-18 腾讯科技(深圳)有限公司 Method and device for loading network resource in application
CN108733738A (en) * 2017-04-25 2018-11-02 腾讯科技(深圳)有限公司 A kind of page loading method, system, server and terminal
CN111310088A (en) * 2020-02-12 2020-06-19 北京字节跳动网络技术有限公司 Page rendering method and device

Also Published As

Publication number Publication date
CN116009998A (en) 2023-04-25

Similar Documents

Publication Publication Date Title
US20220283621A1 (en) Electronic Device Control Method and Apparatus, and Electronic Device
CN110505675B (en) Network connection method and device, storage medium and communication terminal
US10284705B2 (en) Method and apparatus for controlling smart device, and computer storage medium
CN109725901A (en) Development approach, device, equipment and the computer storage medium of front-end code
US9396564B2 (en) Atlas generation based on client video configuration
CN109542376B (en) Screen display adjustment method, device and medium
CN103530243B (en) For determining the system of the setting for equipment, method
CN108109191A (en) Rendering intent and system
CN115170390B (en) File stylization method, device, equipment and storage medium
WO2023246478A1 (en) Vehicle application scenario processing method and apparatus, device, and storage medium
CN114066714A (en) Batch rendering method, device, equipment and storage medium
CN110825467A (en) Rendering method, rendering apparatus, hardware apparatus, and computer-readable storage medium
CN109902282A (en) A kind of character typesetting method, device and storage medium
CN115080016A (en) Extended function implementation method, device, equipment and medium based on UE editor
CN109821240B (en) Method and device for realizing resource LOD (load on demand) classification based on Unity
CN110047120A (en) A kind of animated show method and device
CN113569171A (en) Webpage theme changing method and device, storage medium and computer equipment
CN108549575A (en) Exit processing method, device, storage medium and the electronic equipment of split screen
WO2023066095A1 (en) Rendering method and related apparatus
CN110868471B (en) Equipment construction method, device and storage medium
CN108416830B (en) Animation display control method, device, equipment and storage medium
CN116821080A (en) Online picture compression method and device, electronic equipment and storage medium
CN113656717B (en) Webpage control rendering method, device, equipment and storage medium
CN108369726A (en) According to the method and mancarried electronic aid of scene change graphics process resolution ratio
CN115501588A (en) Image rendering method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22882705

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE