Search

CN-115373770-B - Parameter configuration method, device and storage medium

CN115373770BCN 115373770 BCN115373770 BCN 115373770BCN-115373770-B

Abstract

The embodiment of the invention provides a parameter configuration method, a parameter configuration device and a storage medium. The parameter configuration method comprises the steps of obtaining configuration parameters of an interface to a memory space of application software corresponding to the interface, sending the configuration parameters in the memory space to a rendering engine of the application software by a business logic layer of the application software, and configuring the parameters of the interface by the rendering engine by using the configuration parameters. In the scheme of the embodiment of the invention, the configuration parameters of the interface are obtained from the memory space of the application software corresponding to the interface, and can be directly sent to the rendering engine from the memory space, so that the rendering engine can quickly obtain the configuration parameters of the interface, and the real-time configuration efficiency of the interface is improved.

Inventors

  • HUANG ZHIHUI

Assignees

  • 阿里巴巴新加坡控股有限公司

Dates

Publication Date
20260505
Application Date
20210520

Claims (9)

  1. 1. A method of parameter configuration, comprising: The interface layer of the application software reads configuration parameters of the interface through a peripheral interface, and the interface layer acquires the configuration parameters to the memory space of the application software corresponding to the interface; The business logic layer of the application software sends the configuration parameters in the memory space to a rendering engine of the application software; and the rendering engine utilizes the configuration parameters to configure the parameters of the interface so that the rendering engine calls the graphic processor through the shader to draw the user interface.
  2. 2. The method of claim 1, wherein the interface layer of the application software reads configuration parameters of the interface through a peripheral interface, comprising: An interface layer of the application software accesses a file comprising configuration parameters of the interface in the external debugging equipment through communication connection between the peripheral interface and the external debugging equipment; And the interface layer reads the file to obtain the configuration parameters.
  3. 3. The method of claim 2, wherein the method further comprises: And establishing communication connection between the peripheral interface and the external debugging equipment.
  4. 4. The method of claim 1, wherein the configuration parameters are implemented based on extensible markup language XML or based on a data format JASON.
  5. 5. The method of claim 1, wherein the rendering engine configures parameters of the interface with the configuration parameters, comprising: analyzing the configuration parameters through the rendering engine to obtain an analysis result; sending the analysis result to a shader; And the shader uses the analysis result to schedule a graphic processor so as to draw the interface.
  6. 6. The method of claim 1, wherein the interface layer obtaining the configuration parameter to a memory space of application software corresponding to the interface comprises: The interface layer acquires the configuration parameters from the memory space of the application software corresponding to the interface while deleting the previous configuration parameters in the memory space of the application software corresponding to the interface so as to update the configuration parameters.
  7. 7. The method of claim 1, wherein the configuration parameters of the interface comprise at least one of an interface color parameter, a size parameter of a control, a position arrangement parameter of a control.
  8. 8. A parameter configuration apparatus comprising: the interface layer of the application software reads configuration parameters of the interface through a peripheral interface; the interface layer acquires the configuration parameters from the memory space of the application software corresponding to the interface; the sending module is used for sending the configuration parameters in the memory space to a rendering engine of the application software by a business logic layer of the application software; And the configuration module is used for configuring the parameters of the interface by the rendering engine by utilizing the configuration parameters so that the rendering engine calls the graphic processor through the shader to draw the user interface.
  9. 9. A storage medium having stored thereon a computer program which, when executed by a processor, implements the parameter configuration method according to any one of claims 1-7.

Description

Parameter configuration method, device and storage medium Technical Field The embodiment of the invention relates to the technical field of computers, in particular to a parameter configuration method, a parameter configuration device and a storage medium. Background The user experience designer or product designer, when debugging the graphic effects of a product interface such as a device, typically by saving the modified parameters in an engine configuration file so that the rendering engine directly reads the engine configuration file, engine development can be accomplished without directly altering the configuration of the human-machine interaction interface. But each time an engine profile is read, the rendering engine needs to start the device to see the presentation effect of the product interface, resulting in a still inefficient debugging. Therefore, there is a need to further improve the configuration efficiency of the user interface. Disclosure of Invention In view of the above, embodiments of the present invention provide a method, an apparatus and a storage medium for configuring parameters, so as to solve or alleviate the above-mentioned problems. According to a first aspect of the embodiment of the invention, a parameter configuration method is provided, which comprises the steps of obtaining configuration parameters of an interface to a memory space of application software corresponding to the interface, sending the configuration parameters in the memory space to a rendering engine of the application software by a business logic layer of the application software, and configuring the parameters of the interface by the rendering engine by using the configuration parameters. According to a second aspect of the embodiment of the invention, a parameter configuration device is provided, which comprises an acquisition module for acquiring configuration parameters of an interface to a memory space of application software corresponding to the interface, a transmission module for transmitting the configuration parameters in the memory space to a rendering engine of the application software by a service logic layer of the application software, and a configuration module for configuring the parameters of the interface by the rendering engine by using the configuration parameters. According to a third aspect of embodiments of the present invention, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the parameter configuration method according to the first aspect. In the scheme of the embodiment of the invention, the configuration parameters of the interface are obtained from the memory space of the application software corresponding to the interface, and can be directly sent to the rendering engine from the memory space, so that the rendering engine can quickly obtain the configuration parameters of the interface, and the real-time configuration efficiency of the interface is improved. Drawings In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present invention, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art. FIG. 1 is a schematic illustration of a typical example of a vehicle debug; FIG. 2 is a schematic flow chart diagram of a parameter configuration method of one embodiment of the invention; FIG. 3A is a schematic diagram of a parameter configuration according to another embodiment of the present invention; FIG. 3B is a schematic diagram of an interface for parameter configuration according to another embodiment of the present invention; FIG. 4 is a schematic flow chart of a parameter configuration method according to another embodiment of the present invention; FIG. 5 is a schematic block diagram of an electronic device of another embodiment of the present invention; FIG. 6 is a schematic block diagram of a parameter configuration apparatus of another embodiment of the invention, and Fig. 7 is a hardware structure of an electronic device according to another embodiment of the present invention. Detailed Description In order to better understand the technical solutions in the embodiments of the present invention, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which are derived by a person skilled in the art based on the embodiments of the presen