CN114625364A - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114625364A
CN114625364A CN202210122846.7A CN202210122846A CN114625364A CN 114625364 A CN114625364 A CN 114625364A CN 202210122846 A CN202210122846 A CN 202210122846A CN 114625364 A CN114625364 A CN 114625364A
Authority
CN
China
Prior art keywords
rendered
frame number
rendering
components
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210122846.7A
Other languages
Chinese (zh)
Inventor
吴嘉鑫
李盼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202210122846.7A priority Critical patent/CN114625364A/en
Publication of CN114625364A publication Critical patent/CN114625364A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Generation (AREA)

Abstract

The disclosure relates to a data processing method, a data processing device, data processing equipment and a storage medium, relates to the technical field of computers, and can improve the rendering efficiency of components. The data processing method comprises the following steps: acquiring a plurality of frames to be rendered, which correspond to the plurality of components to be rendered one by one; the frame number to be rendered is used for representing the frame number of the component to be rendered; acquiring the current rendering frame number; the current rendering frame number is used for representing the frame number for calling the rendering service to render the component to be rendered; and rendering the plurality of components to be rendered according to the plurality of frames to be rendered and the current rendering frame number to obtain a plurality of rendered components.

Description

Data processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method, apparatus, device, and storage medium.
Background
During the development of an application program, components in a certain page of the application program need to be rendered.
Currently, in the development framework of application programs, a rendering service is usually called to render all components on the page simultaneously. When the page includes a plurality of relatively complex components, rendering all the components on the page at the same time may result in an excessively long rendering time, which reduces the efficiency of component rendering.
Disclosure of Invention
The present disclosure provides a data processing method, apparatus, device, and storage medium, which can improve the efficiency of component rendering.
The technical scheme of the embodiment of the disclosure is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a data processing method that may be applied to an electronic device. The method can comprise the following steps:
acquiring a plurality of frames to be rendered, which correspond to the plurality of components to be rendered one by one; the frame number to be rendered is used for representing the frame number of the component to be rendered;
acquiring the current rendering frame number; the current rendering frame number is used for representing the frame number for calling the rendering service to render the component to be rendered;
and rendering the plurality of components to be rendered according to the plurality of frames to be rendered and the current rendering frame number to obtain a plurality of rendered components.
Optionally, rendering the plurality of components to be rendered according to the plurality of frames to be rendered and the current frame to be rendered to obtain a plurality of rendered components, including:
acquiring a first frame number to be rendered, which is the same as the current frame number to be rendered, from a plurality of frame numbers to be rendered, and rendering a first component to be rendered, which corresponds to the first frame number to be rendered;
updating the current rendering frame number according to a preset rule to obtain an updated rendering frame number;
and obtaining a second frame number to be rendered which is the same as the updated frame number to be rendered from the plurality of frame numbers to be rendered, and rendering a second component to be rendered corresponding to the second frame number to be rendered until the rendering of each component to be rendered in the plurality of components to be rendered is completed, so as to obtain a plurality of rendered components.
Optionally, updating the current rendering frame number according to a preset rule to obtain an updated rendering frame number, including:
adding N to the current rendering frame number to obtain an updated rendering frame number; n is a positive integer.
Optionally, the data processing method further includes:
acquiring a maximum frame number to be rendered in a plurality of frame numbers to be rendered;
and when the current rendering frame number is greater than the maximum frame number to be rendered, outputting a plurality of components obtained at the current rendering frame number.
Optionally, obtaining a plurality of frames to be rendered, which correspond to the plurality of components to be rendered one by one, includes:
in response to a frame number configuration operation performed on the plurality of components to be rendered, a plurality of frames to be rendered are determined.
According to a second aspect of the embodiments of the present disclosure, there is provided a data processing apparatus, which may be applied to an electronic device. The apparatus may include: an acquisition unit and a processing unit;
the system comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring a plurality of frames to be rendered, which are in one-to-one correspondence with a plurality of components to be rendered; the frame number to be rendered is used for representing the frame number of the component to be rendered;
the acquisition unit is also used for acquiring the current rendering frame number; the current rendering frame number is used for representing the frame number for calling the rendering service to render the component to be rendered;
and the processing unit is used for rendering the components to be rendered according to the frames to be rendered and the current rendering frame number so as to obtain the components after rendering.
Optionally, the processing unit is specifically configured to:
acquiring a first frame number to be rendered, which is the same as the current frame number to be rendered, from a plurality of frame numbers to be rendered, and rendering a first component to be rendered, which corresponds to the first frame number to be rendered;
updating the current rendering frame number according to a preset rule to obtain an updated rendering frame number;
and obtaining a second frame number to be rendered which is the same as the updated frame number to be rendered from the plurality of frame numbers to be rendered, and rendering a second component to be rendered corresponding to the second frame number to be rendered until the rendering of each component to be rendered in the plurality of components to be rendered is completed, so as to obtain a plurality of rendered components.
Optionally, the processing unit is specifically configured to:
adding N to the current rendering frame number to obtain an updated rendering frame number; n is a positive integer.
Optionally, the obtaining unit is further configured to obtain a maximum frame number to be rendered among the plurality of frame numbers to be rendered;
and the processing unit is also used for outputting a plurality of components obtained at the current rendering frame number when the current rendering frame number is greater than the maximum frame number to be rendered.
Optionally, the obtaining unit is specifically configured to:
in response to a frame number configuration operation performed on the plurality of components to be rendered, a plurality of frames to be rendered are determined.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, which may include: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the above-described optional data processing methods of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon instructions, which, when executed by a processor of an electronic device, enable the electronic device to perform any one of the above-mentioned optional data processing methods of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, which includes computer instructions that, when run on an electronic device, cause the electronic device to perform the data processing method according to any one of the optional implementations of the first aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
based on any one of the above aspects, in the disclosure, after a plurality of frames to be rendered and current rendering frames corresponding to a plurality of components to be rendered one to one are acquired, because the frames to be rendered are used for representing the frames for rendering the components to be rendered, and the current rendering frames are used for representing the frames for calling rendering services to render the components to be rendered, the plurality of components to be rendered can be rendered according to the plurality of frames to be rendered and the current rendering frames, so as to obtain the plurality of components after rendering. Therefore, the number of frames to be rendered is set for each component to be rendered, and the components to be rendered are sequentially rendered according to the current rendering number of frames, so that the phenomenon that the rendering time for rendering all the components to be rendered at one time is too long is avoided, and the component rendering efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a schematic flow chart illustrating a data processing method provided by an embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating a further data processing method provided by an embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating a further data processing method provided by an embodiment of the present disclosure;
FIG. 4 is a flow chart illustrating a further data processing method provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a structure of another data processing apparatus provided in an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal provided in an embodiment of the present disclosure;
fig. 7 shows a schematic structural diagram of a server provided by an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in other sequences than those illustrated or described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, and/or components.
The data to which the present disclosure relates may be data that is authorized by a user or sufficiently authorized by parties.
As described in the background, in the development framework of application programs, it is common to invoke a rendering service to render all components on the page simultaneously. When the page includes a plurality of relatively complex components, rendering all the components on the page at the same time may result in an excessively long rendering time, which reduces the efficiency of component rendering.
Based on this, an embodiment of the present disclosure provides a data processing method, where after a plurality of frames to be rendered and current rendering frames, which correspond to a plurality of components to be rendered one by one, are obtained, the frames to be rendered are used to represent frames for rendering the components to be rendered, and the current rendering frames are used to represent frames for calling a rendering service to render the components to be rendered, so that the components to be rendered can be rendered according to the plurality of frames to be rendered and the current rendering frames to obtain the rendered components. Therefore, the number of frames to be rendered is set for each component to be rendered, and the components to be rendered are sequentially rendered according to the current rendering number of frames, so that the phenomenon that the rendering time for rendering all the components to be rendered at one time is too long is avoided, and the component rendering efficiency is improved.
The following is an exemplary description of the data processing method provided by the embodiments of the present disclosure:
the data processing method provided by the disclosure can be applied to electronic equipment.
In some embodiments, the electronic device may be a server, a terminal, or another electronic device for performing component rendering, which is not limited in this disclosure.
The server may be a single server, or may be a server cluster formed by a plurality of servers. In some embodiments, the server cluster may also be a distributed cluster. The present disclosure is also not limited to a specific implementation of the server.
The terminal may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR), a Virtual Reality (VR) device, and the like, which can install and use a content community application (e.g., a express hand), and the specific form of the electronic device is not particularly limited by the present disclosure. The system can be used for man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment and the like.
The data processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings.
As shown in fig. 1, when the data processing method is applied to an electronic device, the data processing method may include:
s101, the electronic equipment obtains a plurality of frames to be rendered, which are in one-to-one correspondence with the plurality of components to be rendered.
The frame number to be rendered is used for representing the frame number of the component to be rendered.
Specifically, in the development process of the application program, the electronic device needs to render a plurality of components to be rendered in a certain page of the application program. In this case, in order to improve rendering efficiency, the developer may set, for a plurality of components to be rendered, the component to be rendered in the several frames according to the importance level or priority of each component to be rendered. Correspondingly, the electronic device can acquire a plurality of frames to be rendered corresponding to the plurality of components to be rendered one by one.
Illustratively, a certain page of a certain application includes 3 components to be rendered, which are: the system comprises a component A to be rendered, a component B to be rendered and a component C to be rendered. Wherein, the priority of the 3 components to be rendered is from high to low: the system comprises a component A to be rendered, a component B to be rendered and a component C to be rendered. Namely, the component A to be rendered is rendered firstly, the component B to be rendered is rendered secondly, and the component C to be rendered is rendered finally. In this case, the electronic device may obtain the to-be-rendered frame numbers of the to-be-rendered component a, the to-be-rendered component B, and the to-be-rendered component C in turn as follows: a first frame, a second frame, and a third frame.
Optionally, in the development process of the application program, the electronic device may render the components in the application program through a Read Native (RN) application program development framework. In practical applications, the electronic device may also render components in the application program through other application program development frameworks of the same type, which is not limited in this disclosure.
S102, the electronic equipment acquires the current rendering frame number.
Specifically, when the electronic device renders the component to be rendered through the application development framework, the component to be rendered is rendered frame by frame. In this case, the electronic device may acquire the current rendering frame number.
And the current rendering frame number is used for representing the frame number for calling the rendering service to render the component to be rendered.
For example, when an electronic device develops an application through an application development framework, 5-frame rendering needs to be performed on a certain page of the application. In this case, the electronic device may obtain the current time, and the electronic device performs rendering of the page up to the several frames. For example, at the current time, the electronic device performs rendering of the first frame on the page, and then the electronic device acquires that the current rendering frame number is 1.
It should be noted that, the electronic device may perform S101 first, and then perform S102; or executing S102 first and then executing S101; s101 and S102 may also be performed simultaneously. The present disclosure does not limit the order of S101 and S102.
S103, rendering the components to be rendered by the electronic equipment according to the frames to be rendered and the current rendering frame number to obtain the components after rendering.
Specifically, after a plurality of frames to be rendered corresponding to the plurality of components to be rendered one by one and the current frame to be rendered are acquired, the plurality of components to be rendered can be rendered in sequence according to the plurality of frames to be rendered and the current frame to be rendered corresponding to the plurality of components to be rendered one by one, so that a plurality of components after being rendered are obtained. Therefore, each component to be rendered is rendered in the frame of several frames through identification, and the components to be rendered are sequentially rendered, so that the technical problem that time consumption is too much due to too many components to be rendered at one time is solved. Meanwhile, the order of the component frames to be rendered can be controlled to ensure that few components to be rendered are contained as far as possible in the process of rendering each frame, and the rendering time is shortened. Correspondingly, the components to be rendered with other frames are rendered after the rendering of the first frame is completed, so that the rendering time of the first screen can be shortened. The efficiency of component rendering is improved.
In an embodiment, with reference to fig. 1 and as shown in fig. 2, in the S103, the method for rendering, by an electronic device, a plurality of components to be rendered according to a plurality of frames to be rendered and a current frame number to be rendered, so as to obtain a plurality of rendered components specifically includes:
s201, the electronic equipment obtains a first frame number to be rendered, which is the same as the current frame number to be rendered, from the plurality of frame numbers to be rendered, and renders a first component to be rendered, which corresponds to the first frame number to be rendered.
Specifically, since the plurality of components to be rendered mark the number of frames in which each component to be rendered is rendered (i.e., the number of frames to be rendered) in advance, the electronic device may obtain, from the plurality of frames to be rendered, a plurality of frames to be rendered that correspond one-to-one to the plurality of components to be rendered, and after obtaining the current number of frames to be rendered, obtain, from the plurality of frames to be rendered, a first number of frames to be rendered that is the same as the number of frames to be rendered, and render, to the first component to be rendered that corresponds to the first number of frames to be rendered.
Illustratively, the number of frames to be rendered of the component a to be rendered, the component B to be rendered, and the component C to be rendered, which are obtained by the electronic device, is: a first frame, a second frame, and a third frame. At the current moment, the electronic device performs rendering on the page until the first frame is rendered, that is, the electronic device obtains the number of the current rendering frames to be 1. In this case, the electronic device may render the component a to be rendered separately.
S202, the electronic equipment updates the current rendering frame number according to a preset rule to obtain the updated rendering frame number.
Specifically, after the first component to be rendered corresponding to the first frame number to be rendered is rendered, it is described that the rendering of the component to be rendered, which needs to be rendered, is completed at the current rendering frame number. In this case, the electronic device may update the current rendering frame number according to a preset rule to obtain an updated rendering frame number, so as to continue rendering the component to be rendered corresponding to the updated rendering frame number.
In an implementation manner, the method for updating, by an electronic device, a current rendering frame number according to a preset rule to obtain an updated rendering frame number specifically includes:
and the electronic equipment adds N to the current rendering frame number to obtain an updated rendering frame number.
Wherein N is a positive integer.
In practical applications, N is usually set to 1. Namely, the preset rule is to update the current rendering frame number to the next rendering frame number. A specific implementation mode for updating the rendering frame number of the electronic equipment is provided, so that each component to be rendered can have a corresponding rendering frame number to be rendered.
Optionally, the preset rule may also be that the current rendering frame number is updated to two rendering frame numbers after the current rendering frame number, that is, the current rendering frame number is added by 2 to obtain an updated rendering frame number. The preset rule may also be other preset rules, which is not limited in this disclosure.
In practical applications, in order to ensure that each component to be rendered is rendered, the preset rule usually updates the current rendering frame number to the next rendering frame number, that is, adds 1 to the current rendering frame number to obtain an updated rendering frame number.
With reference to the above example, after the electronic device renders the component a to be rendered in the first frame, the electronic device may update the current rendering frame number executed on the page to the second frame rendering, that is, the electronic device adds 1 to the first frame of the current rendering frame number to obtain an updated rendering frame number: and a second frame.
S203, the electronic equipment obtains a second frame number to be rendered, which is the same as the updated frame number to be rendered, from the plurality of frame numbers to be rendered, and renders a second component to be rendered, which corresponds to the second frame number to be rendered, until rendering of each component to be rendered in the plurality of components to be rendered is completed, so as to obtain a plurality of rendered components.
Specifically, after rendering a first component to be rendered corresponding to the first frame number to be rendered and updating the current rendering frame number according to a preset rule to obtain an updated rendering frame number, the electronic device may obtain, from the plurality of frame numbers to be rendered, a second frame number to be rendered that is the same as the updated rendering frame number, and render a second component to be rendered corresponding to the second frame number to be rendered. Correspondingly, after the second component to be rendered corresponding to the second frame number to be rendered is rendered, the steps can be repeated until the rendering of each component to be rendered in the multiple components to be rendered is completed, so that the multiple rendered components are obtained.
With reference to the above example, after the first frame is rendered to the component a to be rendered, the electronic device may update the current rendering frame number executed on the page to be rendered to the second frame rendering, that is, the electronic device adds 1 to the first frame of the current rendering frame number to obtain an updated rendering frame number: and a second frame. Then, the electronic device renders the component B to be rendered in the second frame, and updates the current rendering frame number (second frame) executed on the page after rendering to a third frame rendering, that is, the electronic device adds 1 to the first frame of the current rendering frame number (second frame) to obtain an updated rendering frame number: and a third frame. And finally, rendering the component C to be rendered in the third frame by the electronic equipment, so that all the 3 components to be rendered in the page are rendered.
The technical scheme provided by the embodiment at least has the following beneficial effects: it can be known from S201 to S203 that a specific implementation manner in which the electronic device sequentially renders a plurality of components to be rendered according to the current rendering frame number is provided, and different components to be rendered are respectively rendered at different rendering frame numbers, so that a technical problem of excessive time consumption caused by rendering too many components to be rendered at one time is avoided, and the component rendering efficiency is improved.
In one embodiment, as shown in fig. 3, the data processing method further includes:
s301, the electronic equipment obtains the maximum frame number to be rendered in the multiple frame numbers to be rendered.
Specifically, before the electronic device renders the plurality of components to be rendered, the electronic device may also traverse the number of frames to be rendered of all the components to be rendered, thereby obtaining the maximum number of frames to be rendered among the plurality of frames to be rendered, and determining whether to stop rendering according to the obtained maximum number of frames to be rendered subsequently.
S302, when the current rendering frame number is larger than the maximum frame number to be rendered, the electronic equipment outputs a plurality of components obtained at the current rendering frame number.
Specifically, after obtaining the maximum frame number to be rendered among the plurality of frame numbers to be rendered, the electronic device may determine whether the current frame number to be rendered is greater than the maximum frame number to be rendered.
And when the current rendering frame number is not greater than the maximum frame number to be rendered, the electronic equipment continues to render the component to be rendered corresponding to the current rendering frame number. Correspondingly, when the current rendering frame number is greater than the maximum frame number to be rendered, the electronic equipment stops rendering and outputs a plurality of components obtained at the current rendering frame number.
The technical scheme provided by the embodiment at least has the following beneficial effects: as can be seen from S301-S302, when the current rendering frame number is greater than the maximum frame number to be rendered, it indicates that the component to be rendered has completed rendering. In this case, the electronic device may directly output a plurality of components obtained at the current rendering frame number.
In an embodiment, with reference to fig. 1 and as shown in fig. 4, in S101, the method for acquiring, by an electronic device, a plurality of frames to be rendered that correspond to a plurality of components to be rendered one by one specifically includes:
s401, the electronic equipment responds to frame number configuration operation executed on a plurality of components to be rendered, and a plurality of frame numbers to be rendered are determined.
Specifically, the operation and maintenance personnel can perform frame number configuration operation on a plurality of components to be rendered according to needs, thereby configuring the rendering sequence of each component to be rendered. Accordingly, the electronic device determines a plurality of frames to be rendered in response to a frame number configuration operation performed on the plurality of components to be rendered.
The technical scheme provided by the embodiment at least has the following beneficial effects: from S301 to S302, an operation and maintenance worker may configure a frame number to be rendered for each component to be rendered through frame number configuration operation, so that the subsequent electronic device renders a plurality of components to be rendered in sequence according to the frame number to be rendered of each component to be rendered, thereby avoiding an excessively long rendering time for rendering all the components to be rendered at one time, and improving the component rendering efficiency.
It is understood that, in practical implementation, the terminal/server according to the embodiments of the present disclosure may include one or more hardware structures and/or software modules for implementing the corresponding data processing method, and these hardware structures and/or software modules may constitute an electronic device. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for implementing the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Based on such understanding, the embodiment of the present disclosure also provides a data processing apparatus, which can be applied to an electronic device. Fig. 5 shows a schematic structural diagram of a data processing apparatus provided in an embodiment of the present disclosure. As shown in fig. 5, the data processing apparatus may include: an acquisition unit 501 and a processing unit 502;
an obtaining unit 501, configured to obtain multiple frames to be rendered, where the multiple frames to be rendered correspond to multiple components to be rendered one by one; the frame number to be rendered is used for representing the frame number of the component to be rendered;
the obtaining unit 501 is further configured to obtain a current rendering frame number; the current rendering frame number is used for representing the frame number for calling the rendering service to render the component to be rendered;
the processing unit 502 is configured to render the multiple components to be rendered according to the multiple frames to be rendered and the current frame to be rendered to obtain multiple rendered components.
Optionally, the processing unit 502 is specifically configured to:
acquiring a first frame number to be rendered, which is the same as the current frame number to be rendered, from a plurality of frame numbers to be rendered, and rendering a first component to be rendered, which corresponds to the first frame number to be rendered;
updating the current rendering frame number according to a preset rule to obtain an updated rendering frame number;
and obtaining a second frame number to be rendered which is the same as the updated frame number to be rendered from the plurality of frame numbers to be rendered, and rendering a second component to be rendered corresponding to the second frame number to be rendered until the rendering of each component to be rendered in the plurality of components to be rendered is completed, so as to obtain a plurality of rendered components.
Optionally, the processing unit 502 is specifically configured to:
adding N to the current rendering frame number to obtain an updated rendering frame number; n is a positive integer.
Optionally, the obtaining unit 501 is further configured to obtain a maximum frame number to be rendered among the multiple frame numbers to be rendered;
the processing unit 502 is further configured to output a plurality of components obtained at the current rendering frame number when the current rendering frame number is greater than the maximum frame number to be rendered.
Optionally, the obtaining unit 501 is specifically configured to:
in response to a frame number configuration operation performed on the plurality of components to be rendered, a plurality of frames to be rendered are determined.
As described above, the embodiment of the present disclosure may perform division of functional modules on an electronic device according to the above method example. The integrated module can be realized in a hardware form, and can also be realized in a software functional module form. In addition, it should be further noted that the division of the modules in the embodiments of the present disclosure is schematic, and is only a logic function division, and there may be another division manner in actual implementation. For example, the functional blocks may be divided for the respective functions, or two or more functions may be integrated into one processing block.
With regard to the data processing apparatus in the foregoing embodiment, the specific manner in which each module performs the operation and the beneficial effects have been described in detail in the foregoing method embodiment, and are not described again here.
The embodiment of the disclosure also provides a terminal, which can be a user terminal such as a mobile phone, a computer and the like. Fig. 6 shows a schematic structural diagram of a terminal provided in an embodiment of the present disclosure. The terminal, which may be a data processing device, may include at least one processor 61, a communication bus 62, a memory 63, and at least one communication interface 64.
Processor 61 may be a Central Processing Unit (CPU), a micro-processing unit, an ASIC, or one or more integrated circuits for controlling the execution of programs in accordance with the disclosed aspects. As an example, in connection with fig. 5, the processing unit 502 in the electronic device implements the same functions as the processor 61 in fig. 6.
The communication bus 62 may include a path to transfer information between the aforementioned components.
The communication interface 64 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as a server, an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), etc. As an example of this, it is possible to use,
the memory 63 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
The memory 63 is used for storing application program codes for executing the disclosed solution, and is controlled by the processor 61. The processor 61 is configured to execute application program code stored in the memory 63 to implement the functions in the disclosed method.
In particular implementations, processor 61 may include one or more CPUs such as CPU0 and CPU1 in fig. 6, for example, as an example.
In a particular implementation, the terminal may include multiple processors, such as processor 61 and processor 65 in fig. 6, as an example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In one implementation, the terminal may further include an input device 66 and an output device 67, as one example. The input device 66 communicates with the output device 67 and may accept user input in a variety of ways. For example, the input device 66 may be a mouse, a keyboard, a touch screen device or a sensing device, and the like. The output device 67 is in communication with the processor 61 and may display information in a variety of ways. For example, the output device 67 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, or the like.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is not limiting of the terminal, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be used.
The embodiment of the disclosure also provides a server. Fig. 7 shows a schematic structural diagram of a server provided in an embodiment of the present disclosure. The server may be a data processing device. The server, which may vary widely in configuration or performance, may include one or more processors 71 and one or more memories 72. At least one instruction is stored in the memory 72, and the at least one instruction is loaded and executed by the processor 71 to implement the data processing method provided by the above-mentioned method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The present disclosure also provides a computer-readable storage medium including instructions stored thereon, which, when executed by a processor of a computer device, enable a computer to perform the data processing method provided by the above-described illustrated embodiment. For example, the computer readable storage medium may be a memory 63 comprising instructions executable by the processor 61 of the terminal to perform the above-described method. Also for example, the computer readable storage medium may be a memory 72 comprising instructions executable by the processor 71 of the server to perform the above-described method. Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, which may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present disclosure also provides a computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the data processing method illustrated in any of the above-mentioned fig. 1-4.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A data processing method, comprising:
acquiring a plurality of frames to be rendered, which correspond to the plurality of components to be rendered one by one; the frame number to be rendered is used for representing the frame number of the component to be rendered;
acquiring the current rendering frame number; the current rendering frame number is used for representing the frame number for calling rendering service to render the component to be rendered;
and rendering the plurality of components to be rendered according to the plurality of frames to be rendered and the current rendering frame number to obtain a plurality of rendered components.
2. The data processing method of claim 1, wherein the rendering the plurality of components to be rendered according to the plurality of frames to be rendered and the current rendering frame number to obtain a plurality of rendered components comprises:
acquiring a first frame number to be rendered, which is the same as the current frame number to be rendered, from the plurality of frame numbers to be rendered, and rendering a first component to be rendered, which corresponds to the first frame number to be rendered;
updating the current rendering frame number according to a preset rule to obtain an updated rendering frame number;
and obtaining a second frame number to be rendered, which is the same as the updated frame number to be rendered, from the plurality of frame numbers to be rendered, and rendering a second component to be rendered, which corresponds to the second frame number to be rendered, until the rendering of each component to be rendered in the plurality of components to be rendered is completed, so as to obtain a plurality of rendered components.
3. The data processing method according to claim 2, wherein the updating the current rendering frame number according to a preset rule to obtain an updated rendering frame number comprises:
adding N to the current rendering frame number to obtain the updated rendering frame number; n is a positive integer.
4. The data processing method of claim 2, further comprising:
acquiring a maximum frame number to be rendered in the plurality of frame numbers to be rendered;
and when the current rendering frame number is greater than the maximum frame number to be rendered, outputting a plurality of components obtained at the current rendering frame number.
5. The data processing method according to any one of claims 1 to 4, wherein the obtaining a plurality of frames to be rendered, which correspond to the plurality of components to be rendered one by one, comprises:
determining the plurality of frames to be rendered in response to a frame number configuration operation performed on the plurality of components to be rendered.
6. A data processing apparatus, comprising: an acquisition unit and a processing unit;
the acquiring unit is used for acquiring a plurality of frames to be rendered, which are in one-to-one correspondence with the plurality of components to be rendered; the frame number to be rendered is used for representing the frame number of the component to be rendered;
the acquiring unit is also used for acquiring the current rendering frame number; the current rendering frame number is used for representing the frame number for calling rendering service to render the component to be rendered;
and the processing unit is used for rendering the components to be rendered according to the frames to be rendered and the current rendering frame number so as to obtain a plurality of rendered components.
7. The data processing apparatus according to claim 6, wherein the processing unit is specifically configured to:
acquiring a first frame number to be rendered, which is the same as the current frame number to be rendered, from the plurality of frame numbers to be rendered, and rendering a first component to be rendered, which corresponds to the first frame number to be rendered;
updating the current rendering frame number according to a preset rule to obtain an updated rendering frame number;
and acquiring a second frame number to be rendered, which is the same as the updated frame number to be rendered, from the plurality of frame numbers to be rendered, and rendering a second component to be rendered, which corresponds to the second frame number to be rendered, until the rendering of each component to be rendered in the plurality of components to be rendered is completed, so as to obtain the plurality of rendered components.
8. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data processing method of any one of claims 1-5.
9. A computer-readable storage medium having instructions stored thereon, wherein the instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method of any one of claims 1-5.
10. A computer program product comprising instructions that, when run on an electronic device, cause the electronic device to perform the data processing method of any one of claims 1-5.
CN202210122846.7A 2022-02-09 2022-02-09 Data processing method, device, equipment and storage medium Pending CN114625364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210122846.7A CN114625364A (en) 2022-02-09 2022-02-09 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210122846.7A CN114625364A (en) 2022-02-09 2022-02-09 Data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114625364A true CN114625364A (en) 2022-06-14

Family

ID=81898580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210122846.7A Pending CN114625364A (en) 2022-02-09 2022-02-09 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114625364A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013108139A2 (en) * 2012-01-20 2013-07-25 Vistaprint Limited Designing website user controls
CN110045958A (en) * 2019-04-17 2019-07-23 腾讯科技(深圳)有限公司 Data texturing generation method, device, storage medium and equipment
CN110990104A (en) * 2019-12-06 2020-04-10 珠海金山网络游戏科技有限公司 Unity 3D-based texture rendering method and device
CN113342340A (en) * 2021-05-31 2021-09-03 北京达佳互联信息技术有限公司 Component rendering method and device
CN113792240A (en) * 2021-09-23 2021-12-14 上海淇玥信息技术有限公司 Page loading method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013108139A2 (en) * 2012-01-20 2013-07-25 Vistaprint Limited Designing website user controls
CN110045958A (en) * 2019-04-17 2019-07-23 腾讯科技(深圳)有限公司 Data texturing generation method, device, storage medium and equipment
CN110990104A (en) * 2019-12-06 2020-04-10 珠海金山网络游戏科技有限公司 Unity 3D-based texture rendering method and device
CN113342340A (en) * 2021-05-31 2021-09-03 北京达佳互联信息技术有限公司 Component rendering method and device
CN113792240A (en) * 2021-09-23 2021-12-14 上海淇玥信息技术有限公司 Page loading method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US20220357990A1 (en) Method for allocating data processing tasks, electronic device, and storage medium
CN114936173B (en) Read-write method, device, equipment and storage medium of eMMC device
WO2021057811A1 (en) Network node processing method, device, storage medium, and electronic apparatus
KR20210040322A (en) Scheduling method and apparatus, device and storage medium
CN108614697B (en) Background Dex compiling control method and device
CN114816393B (en) Information generation method, device, equipment and storage medium
CN111158907A (en) Data processing method and device, electronic equipment and storage medium
CN114625364A (en) Data processing method, device, equipment and storage medium
CN116302271A (en) Page display method and device and electronic equipment
JP7489478B2 (en) TASK ALLOCATION METHOD AND APPARATUS, ELECTRONIC DEVICE, AND COMPUTER-READABLE MEDIUM
CN110599112A (en) Method and device for developing and maintaining network page
US9928090B2 (en) Method for processing dynamic language and electronic device using the same
CN114816416A (en) Information processing method, device, equipment and storage medium
CN114153597A (en) Resource scheduling method, device, equipment and storage medium
CN115309568A (en) Method, device, equipment and medium for realizing multi-process file sharing
CN115455029A (en) Battery replacement data acquisition method and device, electronic equipment and storage medium
CN116662347A (en) Dynamic form generation method, device, equipment and storage medium
CN114170034A (en) Account management method, device, equipment and storage medium
CN114860831A (en) Data list adaptation method and device, electronic equipment and storage medium
CN116501284A (en) Voice control method, device, equipment, storage medium and program product
CN115878296A (en) Resource management method and device, electronic equipment and readable storage medium
CN115761094A (en) Image rendering method, device and equipment and storage medium
CN114187376A (en) Icon rendering method and device for high-precision map and electronic equipment
CN115858449A (en) Module layout method, module layout device, electronic equipment and computer-readable storage medium
CN115576977A (en) Data paging query method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination