A rendering method, apparatus, readable storage medium and electronic device
Patent Information
- Application Number
- CN202310311048.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2043-03-22
AI Technical Summary
[0004]但是,以待渲染数据为仿真数据为例,终端接收到的待渲染数据,通常为包含服务器开始仿真的时刻到当前时刻这一时段中仿真产生的所有数据,其对应的数据量较大,渲染所需的计算资源也较多,渲染效率较低
[0040]After receiving the data to be rendered, based on the data to be rendered and the already rendered data in the terminal, the system determines the target rendering data that has not yet been rendered from the data to be rendered, and then renders only the target rendering data. This reduces the requirements for computing resources and improves rendering efficiency.
Smart Images

Figure CN116310033B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of data processing, and more particularly to a rendering method, apparatus, readable storage medium, and electronic device. Background Technology
[0002] With the development of computer technology and the need for deeper integration of business, real-time rendering of received data and display of the rendering results to users has become one of the more common terminal application scenarios.
[0003] Currently, when rendering data, the terminal typically needs to receive the data to be rendered from the server at preset time intervals and render the data in real time so that the rendering results can be displayed to the user in real time.
[0004] However, taking the simulation data to be rendered as an example, the data to be rendered received by the terminal usually includes all the data generated during the simulation from the moment the server started the simulation to the current moment. The corresponding data volume is large, the computing resources required for rendering are also large, and the rendering efficiency is low.
[0005] Based on this, this specification provides a rendering method. Summary of the Invention
[0006] This specification provides a rendering method, apparatus, readable storage medium, and electronic device to partially solve the aforementioned problems existing in the prior art.
[0007] The following technical solution is adopted in this specification:
[0008] This specification provides a rendering method applied to a terminal, comprising:
[0009] Determine the data to be rendered and the first time period corresponding to the data to be rendered, wherein the first time period is the period between the start time of the terminal executing the rendering task and the time of receiving the data to be rendered;
[0010] Determine the rendered data and the second time period corresponding to the rendered data, wherein the second time period is the period between the start time of the terminal executing the rendering task and the time of receiving the rendered data;
[0011] The target rendering data is determined based on the first time period and the second time period;
[0012] The target rendering data is rendered.
[0013] Optionally, the method further includes:
[0014] The rendering result of the rendered data is compressed, and the target area for displaying the rendering result of the target rendered data is determined based on the compression result;
[0015] The rendering result of the target rendering data is displayed in the target area.
[0016] Optionally, the rendering result of the rendered data is compressed, and a target area for displaying the rendering result of the target rendered data is determined based on the compression result, specifically including:
[0017] The compression size corresponding to the rendered data is determined based on the ratio of the second time period to the first time period;
[0018] Based on the compression size, the specified area used to display the rendering results of the rendered data is compressed;
[0019] Based on the display area for displaying the rendering result of the data to be rendered and the compressed specified area, a target area for displaying the rendering result of the target rendering data is determined.
[0020] Optionally, the designated region includes a first coordinate system, which is used to characterize the magnitude of time.
[0021] Based on the compression size, a specified area used to display the rendering results of the rendered data is compressed, specifically including:
[0022] In the opposite direction of the extension direction of the first coordinate system, the specified area used to display the rendered data is compressed according to the compression size.
[0023] Optionally, the data to be rendered has a reference attribute, which is the value corresponding to each data in the data to be rendered. The terminal is used to display the rendering result of the data to be rendered in the display area according to the reference attribute of the data to be rendered and the first time period of the data to be rendered.
[0024] Optionally, the display area includes a first coordinate system and a second coordinate system, wherein the first coordinate system is used to represent the magnitude of time, and the second coordinate system is used to represent the numerical magnitude of the reference attribute;
[0025] The method further includes:
[0026] Based on the ratio of the second time period to the first time period, determine the first compression size of the rendered data along the first coordinate system;
[0027] The second compression size of the rendered data along the second coordinate system is determined based on the ratio of the maximum value of the reference attribute of the rendered data to the maximum value of the reference attribute of the data to be rendered.
[0028] Based on the first compression size and the second compression size, a specified area for displaying the rendering result of the rendered data is compressed, and a target area for displaying the rendering result of the target rendering data is determined based on the display area and the compression result.
[0029] The rendering result of the target rendering data is displayed in the target area.
[0030] Optionally, it specifically includes:
[0031] Data to be rendered is retrieved at preset time intervals.
[0032] This specification provides a rendering apparatus, which is applied to a terminal and includes:
[0033] The receiving module is used to determine the data to be rendered and the first time period corresponding to the data to be rendered, wherein the first time period is the time period between the start time of the terminal executing the rendering task and the time of receiving the data to be rendered;
[0034] The first determining module is used to determine the rendered data and the second time period corresponding to the rendered data, wherein the second time period is the time period between the start time of the terminal executing the rendering task and the time of receiving the rendered data;
[0035] The second determining module is used to determine the target rendering data based on the first time period and the second time period;
[0036] The rendering module is used to render the target rendering data.
[0037] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described rendering method.
[0038] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the rendering method described above.
[0039] The above-mentioned technical solutions adopted in this specification can achieve the following beneficial effects:
[0040] After receiving the data to be rendered, based on the data to be rendered and the already rendered data in the terminal, the system determines the target rendering data that has not yet been rendered from the data to be rendered, and then renders only the target rendering data. This reduces the requirements for computing resources and improves rendering efficiency. Attached Figure Description
[0041] The accompanying drawings, which are included to provide a further understanding of this specification and form part of this specification, illustrate exemplary embodiments and are used to explain this specification, but do not constitute an undue limitation thereof. In the drawings:
[0042] Figure 1 This is a flowchart illustrating the rendering method provided in this manual;
[0043] Figure 2 This is a flowchart illustrating the process of determining the target area provided in this specification;
[0044] Figure 3 This is a flowchart illustrating the process of determining the target area provided in this specification;
[0045] Figure 4 This is a schematic diagram of the rendering apparatus provided in this specification;
[0046] Figure 5 The corresponding information provided in this specification Figure 1 A schematic diagram of an electronic device. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.
[0048] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.
[0049] In general, in the field of data processing, rendering typically refers to the process by which a terminal, after receiving data to be rendered, visualizes and displays the data in real time using chart types such as line graphs and scatter plots. The data to be rendered received by the terminal is usually data that increases over time. This data can be the simulation results from modeling and simulation software, or it can be traffic data received by the terminal.
[0050] A common rendering method involves the terminal receiving data to be rendered at preset time intervals, rendering the received data, and displaying the rendering result. Each time interval typically corresponds to a specific data segment. The data to be rendered received by the terminal is the full range of data, including the data generated in the previous time interval. For example, if the preset time interval is 1 second, and the terminal receives the data to be rendered for the segment from 0s to 1s in the 1st second, then the terminal can receive the data to be rendered for the segment from 0s to 2s in the 2nd second.
[0051] Clearly, if the time difference between the execution of the rendering task by the terminal and the current moment is large, the amount of data to be rendered received by the terminal will be large, requiring more computational resources for rendering. Furthermore, the data to be rendered contains a significant amount of data that the terminal has already rendered, causing the terminal to consume unnecessary computational resources when rendering this data, thus reducing rendering efficiency.
[0052] Figure 1 This is a flowchart illustrating the rendering method provided in this manual, which specifically includes the following steps:
[0053] S100: Receive the data to be rendered and the first time period corresponding to the data to be rendered, wherein the first time period is the time period between the start time of the terminal executing the rendering task and the time of receiving the data to be rendered.
[0054] This specification provides a rendering method, the execution of which can be performed by an electronic device such as a terminal for rendering and displaying data.
[0055] Unlike current methods where the terminal directly renders the data to be rendered after receiving it, which requires more computing resources and includes data that the terminal has already rendered, resulting in a waste of computing resources and low rendering efficiency.
[0056] This specification provides a novel rendering method. Upon receiving data to be rendered, based on the data to be rendered and the already rendered data in the terminal, it determines the target rendering data within the data to be rendered that has not yet been rendered, and then renders only the target rendering data. This reduces the requirements for computing resources and improves rendering efficiency.
[0057] Based on the brief description of this rendering method above, it is clear that this method requires determining the target rendering data based on the data to be rendered and the already rendered data. Therefore, the terminal can determine the data to be rendered.
[0058] Specifically, as mentioned above, the server used to generate the data to be rendered can send the generated data to the terminal.
[0059] Therefore, the terminal can receive the data to be rendered. Each data point in the data to be rendered carries a timestamp.
[0060] Therefore, upon receiving the data to be rendered, the server can determine the first time period corresponding to the data to be rendered based on the timestamp corresponding to each data item contained in the data. This first time period is the time between the start time of the terminal executing the rendering task and the time of receiving the data to be rendered. In other words, the data to be rendered contains data corresponding to each time point between the start time of the terminal executing the rendering task and the time of receiving the data to be rendered.
[0061] S102: Determine the rendered data and the second time period corresponding to the rendered data, wherein the second time period is the time period between the start time of the terminal executing the rendering task and the time of receiving the rendered data.
[0062] In one or more embodiments provided in this specification, as previously described, the data to be rendered typically includes already rendered data. Therefore, to avoid the terminal repeatedly rendering already rendered data, resulting in a significant waste of computing resources, the terminal can determine the target rendering data based on the already rendered data and the data to be rendered. Based on this, the terminal can determine the already rendered data.
[0063] Specifically, the terminal can determine the rendered data from its own stored data. This rendered data refers to the data received in the previous timeframe before receiving the data to be rendered at the current time, since the terminal began executing the rendering task corresponding to the data to be rendered. For example, if the first time period corresponding to the data to be rendered at the current time is 0s-2s, and the preset time interval is 1s, then the data to be rendered corresponding to the time period 0s-1s received by the terminal in the 1st second is the rendered data corresponding to the data to be rendered in the 0s-2s timeframe.
[0064] Similarly, each piece of data in the rendered data may carry a timestamp. The server can then determine the second time period corresponding to the rendered data based on the timestamps corresponding to each piece of data. This second time period is the time between the start time of the terminal's rendering task and the time when the rendered data is received. In other words, the rendered data contains data corresponding to each time point between the start time of the terminal's rendering task and the time when the rendered data is received.
[0065] S104: Determine the target rendering data based on the first time period and the second time period.
[0066] In one or more embodiments provided in this specification, after determining the data to be rendered and the rendered data, the terminal can determine the target rendering data based on the data to be rendered and the rendered data for rendering. The target rendering data is the data in the data to be rendered that has not yet been rendered.
[0067] Specifically, the terminal can determine the data added during the time period between receiving the rendered data and receiving the data to be rendered, based on the first time period corresponding to the data to be rendered and the second time period corresponding to the rendered data. In other words, data included in the first time period but outside the second time period is data that the terminal has not yet rendered.
[0068] Therefore, the terminal can use the data that it has not yet rendered as the target rendering data.
[0069] S106: Render the target rendering data.
[0070] In one or more embodiments provided in this specification, after the target rendering data is determined, the terminal can render the target rendering data.
[0071] Specifically, the terminal can be equipped with a rendering component, which is used to visualize and display the target rendering data in real time using chart types such as line charts and scatter plots. The terminal can then input the target rendering data into the rendering component, which will render the data and output the corresponding rendering result.
[0072] Therefore, the terminal can display the rendering result corresponding to the obtained target rendering data.
[0073] Furthermore, the terminal can be configured with a target area for displaying the rendering results corresponding to the target rendering data. Therefore, the terminal can display the rendering results corresponding to the target rendering data within this target area.
[0074] It should be noted that since rendering and displaying data using rendering methods is a relatively mature technology, this manual will not elaborate on the specific rendering method used by the terminal or how the target rendering data is rendered.
[0075] based on Figure 1 The rendering method shown, upon receiving the data to be rendered, determines the target rendering data that has not yet been rendered within the data to be rendered, based on the data to be rendered and the already rendered data in the terminal, and then renders only the target rendering data. This reduces the requirements for computing resources and improves rendering efficiency.
[0076] Additionally, terminals typically have designated areas for displaying rendering results. However, if a terminal has separate display areas for each time period, over time, if the terminal performs the same rendering task for an extended period, there might be insufficient space to display the rendering results for newly added target rendering data. Therefore, to avoid this situation, the terminal can be configured to display a dedicated area for the rendering results of the data to be rendered.
[0077] Specifically, the data to be rendered received by the terminal includes target rendering data and already rendered data. When the terminal renders the data and displays the rendering result of the already rendered data, the display area used to display the data to be rendered is usually filled. Therefore, the terminal needs to compress the rendering result of the already rendered data to free up the target area for displaying the target rendering data.
[0078] Therefore, after determining the target rendering data, the terminal can compress the rendering result of the already rendered data. Specifically, the terminal can directly compress the rendering result of the already rendered data to half the size of the display area.
[0079] After compressing the rendering result of the rendered data, the terminal can determine the target area for displaying the rendering result of the target rendered data based on the compression result.
[0080] Finally, the terminal can display the rendering result of the target rendering data in the target area. For example... Figure 2 As shown.
[0081] Figure 2 This is a flowchart illustrating the process of determining the target area as provided in this manual. Assume the first time period corresponding to the data to be rendered is 0s-2s, and the second time period corresponding to the rendered data is 0s-1s. Therefore, the terminal can directly compress the designated area used to display the rendering result of the rendered data. Based on the display area and the compressed designated area, the terminal can determine the target area. In the diagram, the upper image represents the original designated area, and the lower image includes the target area and the compressed designated area. The target area is specifically the shaded area in the lower image.
[0082] Furthermore, since the amount of target rendering data determined by the terminal is not fixed, if the rendering result of the already rendered data is directly compressed to half of the display area, the rendering result of the target rendering data and the rendering result of the already rendered data may have different proportions. For example, in one half of the display area, the rendering result corresponding to the already rendered data from 0s to 2s is displayed, and in the other half of the display area, the rendering result corresponding to the target rendering data from 3s to 8s is displayed.
[0083] Therefore, when compressing the rendering results of the rendered data based on the first time period and the second time period, the server can compress the rendering results of the rendered data based on the ratio of the first time period and the second time period.
[0084] Specifically, the terminal can determine the ratio of the second time period to the first time period.
[0085] Then, the terminal can determine the compression size corresponding to the rendered data based on the ratio.
[0086] Finally, the terminal can compress the specified area used to display the rendering results of the rendered data according to the compression size.
[0087] In other words, before receiving the data to be rendered, the designated area is the entire display area.
[0088] After receiving the data to be rendered and determining the first time period and the second time period, the ratio of the designated area to the display area is the ratio of the second time period to the first time period.
[0089] Therefore, after determining the designated area, the terminal can determine the target area for displaying the rendering results of the target rendering data based on the display area and the designated area. For example... Figure 3 As shown.
[0090] Figure 3 This is a flowchart illustrating the process of determining the target area provided in this manual. Assume the first time period corresponding to the data to be rendered is 0s-3s, and the second time period corresponding to the rendered data is 0s-2s. Therefore, the terminal can compress the designated area used to display the rendering result of the rendered data based on the ratio of the second time period to the first time period. Then, based on the display area and the compressed designated area, the terminal can determine the target area. In the diagram, the upper image represents the original designated area, and the lower image includes the target area and the compressed designated area. The target area is specifically the shaded area in the lower image.
[0091] Furthermore, the display area set in this terminal for showing the rendering results is typically a two-dimensional area. This means that at least a first coordinate system can be set in this display area to represent the magnitude of time. Therefore, when the server compresses a specified area based on a first time period and a second time period, it can compress the display area along the direction of the first coordinate system.
[0092] Specifically, the server can determine the orientation of the first coordinate system and compress the specified area in the opposite direction of the extension direction of the first coordinate system, according to the determined compression size.
[0093] Furthermore, the data to be rendered received by the terminal can be a simulation result. This simulation result can be a specific function graph. In addition to the characteristic that the simulation results for different time periods are not entirely the same, the specific numerical values corresponding to the simulation results can also be used to characterize the trend of the simulation results or the graph formed by the simulation results. Therefore, the data to be rendered can also have reference attributes, which are the specific numerical values corresponding to each data point in the data to be rendered. These reference attributes corresponding to each data point in the data to be rendered can be used to perform other business operations.
[0094] Therefore, the server can display the data to be rendered within the display area based on the first time period and reference attributes of the data to be rendered.
[0095] Furthermore, if the value of the reference attribute of the data to be rendered is too high, the data may not be able to be displayed within the display area. To avoid this, a second coordinate system can be set within the specified area to represent the magnitude of the reference attribute value.
[0096] Therefore, after determining the target rendering data, the server can determine the first compression size corresponding to the rendered data in the direction of the first coordinate system based on the ratio of the second time period to the first time period.
[0097] Meanwhile, in the direction of the second coordinate system, the server can determine the second compression size corresponding to the rendered data based on the ratio of the maximum value of the reference attribute of the rendered data to the maximum value of the reference attribute of the data to be rendered.
[0098] Therefore, the server can compress the specified area according to the first compression size and the second compression size.
[0099] Furthermore, to avoid the terminal needing to render a large amount of target rendering data at once, which would require excessive computing resources and cause the terminal to crash, the terminal can obtain the data to be rendered from the server used to generate the data to be rendered at preset time intervals, and determine the first time period corresponding to the data to be rendered based on the timestamps corresponding to each data in the data to be rendered.
[0100] Following the same line of thought, this specification also provides a rendering device, such as... Figure 4 As shown.
[0101] Figure 4 The rendering apparatus provided in this specification is applied to a terminal, wherein:
[0102] The receiving module 200 is used to determine the data to be rendered and the first time period corresponding to the data to be rendered, wherein the first time period is the time period between the start time of the terminal executing the rendering task and the time of receiving the data to be rendered.
[0103] The first determining module 202 is used to determine the rendered data and the second time period corresponding to the rendered data, wherein the second time period is the period between the start time of the terminal executing the rendering task and the time of receiving the rendered data.
[0104] The second determining module 204 is used to determine the target rendering data based on the first time period and the second time period.
[0105] The rendering module 208 is used to render the target rendering data.
[0106] Optionally, the second determining module 204 is used to compress the rendering result of the rendered data, determine a target area for displaying the rendering result of the target rendered data based on the compression result, and display the rendering result of the target rendered data in the target area.
[0107] Optionally, the second determining module 204 is configured to determine the compression size corresponding to the rendered data based on the ratio of the second time period to the first time period, compress a specified area for displaying the rendering result of the rendered data based on the compression size, and determine a target area for displaying the rendering result of the target rendering data based on the display area for displaying the rendering result of the data to be rendered and the compressed specified area.
[0108] Optionally, the designated area includes a first coordinate system, which is used to characterize the time magnitude, and a second determining module 204 is used to compress the designated area for displaying the rendered data in the opposite direction of the extension direction of the first coordinate system, according to the compression size.
[0109] Optionally, the data to be rendered has a reference attribute, which is the value corresponding to each data in the data to be rendered. The terminal is used to display the rendering result of the data to be rendered in the display area according to the reference attribute of the data to be rendered and the first time period of the data to be rendered.
[0110] Optionally, the display area includes a first coordinate system and a second coordinate system, wherein the first coordinate system is used to characterize the magnitude of time, and the second coordinate system is used to characterize the numerical magnitude of the reference attribute; the second determining module 204 is used to determine a first compression size of the rendered data along the first coordinate system based on the ratio of the second time period to the first time period, determine a second compression size of the rendered data along the second coordinate system based on the ratio of the maximum value of the reference attribute of the rendered data to the maximum value of the reference attribute of the data to be rendered, compress a specified area for displaying the rendering result of the rendered data based on the first compression size and the second compression size, determine a target area for displaying the rendering result of the target rendered data based on the display area and the compression result, and display the rendering result of the target rendered data in the target area.
[0111] Optionally, the receiving module is used to acquire the data to be rendered at preset time intervals.
[0112] This specification also provides a computer-readable storage medium storing a computer program that can be used to execute the above-described... Figure 1 The provided rendering method.
[0113] This instruction manual also provides Figure 5 The diagram shows a schematic structural representation of the electronic device. Figure 5 At the hardware level, the electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for the business operations. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it to achieve the above-mentioned functions. Figure 1 The rendering method described herein. Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. In other words, the execution subject of the following processing flow is not limited to individual logic units, but can also be hardware or logic devices.
[0114] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.
[0115] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0116] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0117] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware.
[0118] Those skilled in the art will understand that embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0119] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable lesion detection device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable lesion detection device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0120] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable lesion detection device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0121] These computer program instructions can also be loaded onto a computer or other programmable lesion detection device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0122] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0123] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0124] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0125] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0126] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0127] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0128] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0129] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this specification.
Claims
1. A rendering method, characterized by, The rendering method is applied to a terminal, and the method includes: The data to be rendered and the corresponding first time period are determined. The first time period is the period between the start time of the terminal executing the rendering task and the time of receiving the data to be rendered. The data to be rendered is the simulation result of the simulation software or traffic data. Determine the rendered data and the second time period corresponding to the rendered data, wherein the second time period is the period between the start time of the terminal executing the rendering task and the time of receiving the rendered data; Based on the first time period and the second time period, the data in the data to be rendered that has not yet been rendered is determined as the target rendering data; wherein, the data included in the first time period but outside the second time period is the data that has not yet been rendered; The target rendering data is rendered; the rendering result of the rendered data is compressed, and a target area for displaying the rendering result of the target rendering data is determined based on the compression result; the rendering result of the target rendering data is displayed in the target area; wherein, compressing the rendering result of the rendered data specifically includes: determining the compression size corresponding to the rendered data based on the ratio of the second time period to the first time period; compressing a specified area for displaying the rendering result of the rendered data based on the compression size; the rendering is used to visualize and display the target rendering data in the target area in real time using an icon type; the icon type includes one of a line chart and a scatter plot.
2. The method as described in claim 1, characterized in that, The designated area includes a first coordinate system, which is used to represent the magnitude of time. Based on the compression size, a specified area used to display the rendering results of the rendered data is compressed, specifically including: In the opposite direction of the extension direction of the first coordinate system, the specified area used to display the rendered data is compressed according to the compression size.
3. The method as described in claim 1, characterized in that, The data to be rendered has a reference attribute, which is the value corresponding to each data in the data to be rendered. The terminal is used to display the rendering result of the data to be rendered in the display area according to the reference attribute of the data to be rendered and the first time period of the data to be rendered.
4. The method as described in claim 3, characterized in that, The display area includes a first coordinate system and a second coordinate system. The first coordinate system is used to represent the magnitude of time, and the second coordinate system is used to represent the numerical magnitude of the reference attribute. The method further includes: Based on the ratio of the second time period to the first time period, determine the first compression size of the rendered data along the first coordinate system; The second compression size of the rendered data along the second coordinate system is determined based on the ratio of the maximum value of the reference attribute of the rendered data to the maximum value of the reference attribute of the data to be rendered. Based on the first compression size and the second compression size, a specified area for displaying the rendering result of the rendered data is compressed, and a target area for displaying the rendering result of the target rendering data is determined based on the display area and the compression result. The rendering result of the target rendering data is displayed in the target area.
5. The method as described in claim 1, characterized in that, Determine the data to be rendered, specifically including: Data to be rendered is retrieved at preset time intervals.
6. A rendering apparatus, characterized in that, The device is used in a terminal, and the device includes: The receiving module is used to determine the data to be rendered and the first time period corresponding to the data to be rendered, wherein the first time period is the time period between the start time of the terminal executing the rendering task and the time of receiving the data to be rendered; the data to be rendered is the simulation result of the simulation software or traffic data. The first determining module is used to determine the rendered data and the second time period corresponding to the rendered data, wherein the second time period is the time period between the start time of the terminal executing the rendering task and the time of receiving the rendered data; The second determining module is used to determine, based on the first time period and the second time period, the data in the data to be rendered that has not yet been rendered as the target rendering data; wherein, the data included in the first time period but outside the second time period is the data that has not yet been rendered; A rendering module is used to render the target rendering data; compress the rendering result of the rendered data, and determine a target area for displaying the rendering result of the target rendering data based on the compression result; and display the rendering result of the target rendering data in the target area. Specifically, compressing the rendering result of the rendered data includes: determining the compression size corresponding to the rendered data based on the ratio of the second time period to the first time period; compressing a specified area for displaying the rendering result of the rendered data based on the compression size; and the rendering module is used to visualize and display the target rendering data in the target area in real time using an icon type. The icon type includes either a line chart or a scatter plot.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 5.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Data rendering method and device, electronic equipment and storage medium
CN115328477A