A data processing method and device for fast display of dynamic targets
By optimizing the dynamic target data engine and display logic, and using the GPU acceleration and asynchronous update framework, the problem of unsmooth dynamic target display is solved and efficient dynamic target drawing is achieved.
Patent Information
- Application Number
- CN202411906624.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2044-12-23
AI Technical Summary
The existing dynamic target display technology is difficult to achieve smooth display effects when there are a large number of dynamic targets.
By optimizing the dynamic target data engine and display logic, including data conversion, optimization processing and asynchronous update framework, GPU acceleration technology and two- and three-dimensional integrated scene management are adopted to improve the efficiency of dynamic target drawing.
It realizes smooth display when there are a large number of dynamic targets, improving drawing efficiency and display performance.
Smart Images

Figure CN119762699B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of target display, and in particular to a data processing method and device for fast display of dynamic targets. Background Art
[0002] Dynamic target display technology is a key technology specifically used to display the position of dynamic targets (such as aircraft, ships, personnel, etc.) on maps. The origin of dynamic target display technology can be traced back to the early 20th century, when people began to try to mark the position of moving targets on maps in order to better understand and grasp the movement patterns of targets. However, due to technical limitations, early dynamic target display mainly relied on manual marking and updating, which was inefficient and inaccurate. With the rapid development of computer technology, dynamic target display technology has entered the digital age. In the 1970s, the emergence of GIS technology provided strong support for dynamic target display technology. Entering the 21st century, with the continuous emergence of emerging technologies, dynamic target display technology has also ushered in new development opportunities. These new technologies provide more abundant means and methods for the collection, processing, analysis and visualization of dynamic target data. The common technical disadvantages of current dynamic target display technology are that when the number of dynamic targets is relatively large, traditional dynamic target display technology is difficult to achieve a smooth display effect. Therefore, a data processing method and device for fast display of dynamic targets are provided, which improves the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, thereby solving the problem of unsmooth dynamic target display when there are a large number of dynamic targets. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a data processing method and device for fast display of dynamic targets, which is beneficial to improve the dynamic target drawing efficiency by optimizing the dynamic target data engine and dynamic target display logic, thereby solving the problem of unsmooth dynamic target display when the number of dynamic targets is large.
[0004] In order to solve the above technical problems, a first aspect of an embodiment of the present invention discloses a data processing method for fast display of dynamic targets, the method comprising:
[0005] Acquire dynamic target information to be displayed on the first device; the dynamic target information to be displayed includes M sequentially distributed coordinate time information to be displayed; the coordinate time information to be displayed includes the dynamic target time and the three-dimensional coordinate information corresponding to the dynamic target time;
[0006] Perform conversion processing on the to-be-displayed dynamic target information to obtain first dynamic target display information; the first dynamic target display information includes N pieces of first dynamic target coordinate-time information; the first dynamic target coordinate-time information includes the dynamic target time and two-dimensional coordinate information corresponding to the dynamic target time; N is a positive integer greater than M;
[0007] Perform optimization processing on the first dynamic target display information to obtain second dynamic target display information; the second dynamic target display information includes the N pieces of dynamic target fast display information.
[0008] A second aspect of an embodiment of the present invention discloses a data processing device for fast display of dynamic targets. The device includes:
[0009] An acquisition module, configured to acquire to-be-displayed dynamic target information on a first device; the to-be-displayed dynamic target information includes M pieces of to-be-displayed coordinate-time information distributed in sequence; the to-be-displayed coordinate-time information includes the dynamic target time and three-dimensional coordinate information corresponding to the dynamic target time;
[0010] A first processing module, configured to perform conversion processing on the to-be-displayed dynamic target information to obtain first dynamic target display information; the first dynamic target display information includes N pieces of first dynamic target coordinate-time information; the first dynamic target coordinate-time information includes the dynamic target time and two-dimensional coordinate information corresponding to the dynamic target time; N is a positive integer greater than M;
[0011] A second processing module, configured to perform optimization processing on the first dynamic target display information to obtain second dynamic target display information; the second dynamic target display information includes the N pieces of dynamic target fast display information.
[0012] A third aspect of the present invention discloses another data processing device for fast display of dynamic targets. The device includes:
[0013] A memory storing executable program code;
[0014] A processor coupled to the memory;
[0015] The processor calls the executable program code stored in the memory and executes some or all of the steps in the data processing method for fast display of dynamic targets disclosed in the first aspect of an embodiment of the present invention.
[0016] A fourth aspect of the present invention discloses a computer-readable storage medium. The computer-readable storage medium stores computer instructions, which are used to execute some or all of the steps in the data processing method for fast display of dynamic targets disclosed in the first aspect of an embodiment of the present invention when called. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0018] Figure 1 It is a schematic diagram of the scenario of the data processing system for fast display of dynamic targets provided by the embodiments of the present invention;
[0019] Figure 2 It is a schematic flowchart of a data processing method for fast display of dynamic targets disclosed in the embodiments of the present invention;
[0020] Figure 3 It is a schematic structural diagram of a data processing device for fast display of dynamic targets disclosed in the embodiments of the present invention;
[0021] Figure 4 It is a schematic structural diagram of another data processing device for fast display of dynamic targets disclosed in the embodiments of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0022] In order to enable those skilled in the art to better understand the solution of the present invention, the following clearly and completely describes the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0023] The terms "first", "second", etc. in the specification and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or equipment.
[0024] References to "embodiments" in this specification mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive of other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0025] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or description". Any embodiment described as "exemplary" in this application is not necessarily to be construed as more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. In the following description, details are set forth for the purpose of explanation. It should be understood that those of ordinary skill in the art can recognize that this application can be implemented without these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of this application with unnecessary details. Therefore, this application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed in this application.
[0026] It should be noted that since the method of the embodiments of this application is executed in a computer device, the processing objects of each computer device exist in the form of data or information. For example, time, which is actually time information. It can be understood that in subsequent embodiments, if dimensions, quantities, positions, etc. are mentioned, they are all corresponding data existences for the computer device to process, and specific details are not elaborated here.
[0027] The embodiments of this application provide a data processing method, apparatus, computer device, and computer-readable storage medium for fast display of dynamic targets, which will be described in detail below.
[0028] Please refer to Figure 1 , Figure 1 , which is a schematic diagram of the scenario of the data processing system for fast display of dynamic targets provided by the embodiments of this application. The data processing system for fast display of dynamic targets may include a computer device 100, and a data processing apparatus for fast display of dynamic targets is integrated in the computer device 100, such as Figure 1 the computer device in
[0029] In the embodiments of this application, the computer device 100 is mainly used to obtain dynamic target information to be displayed at a first device; the dynamic target information to be displayed includes M pieces of sequentially distributed coordinate-time information to be displayed; the coordinate-time information to be displayed includes dynamic target time and three-dimensional coordinate information corresponding to the dynamic target time;
[0030] Perform conversion processing on the dynamic target information to be displayed to obtain first dynamic target display information; the first dynamic target display information includes N pieces of first dynamic target coordinate time information; the first dynamic target coordinate time information includes the dynamic target time and the two-dimensional coordinate information corresponding to the dynamic target time; N is a positive integer greater than M.
[0031] Perform optimization processing on the first dynamic target display information to obtain second dynamic target display information; the second dynamic target display information includes N pieces of dynamic target fast display information.
[0032] It can improve the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, thereby solving the problem of unsmooth dynamic target display when there are a large number of dynamic targets.
[0033] In the embodiment of the present application, the computer device 100 can be an independent server, or a server network or server cluster composed of servers. For example, the computer device 100 described in the embodiment of the present application includes, but is not limited to, a computer, a network host, a single network server, a set of multiple network servers, or a cloud server composed of multiple servers. Among them, the cloud server is composed of a large number of computers or network servers based on cloud computing.
[0034] It can be understood that the computer device 100 used in the embodiment of the present application can be a device that includes both receiving and transmitting hardware, that is, a device that has the receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such devices can include: cellular or other communication devices, which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. Specifically, the computer device 100 can be a desktop terminal or a mobile terminal, and the computer device 100 can specifically also be one of a mobile phone, a tablet computer, a notebook computer, etc.
[0035] Those skilled in the art can understand that Figure 1 The application environment shown in Figure 1 is only one application scenario of the solution of the present application, and does not constitute a limitation on the application scenario of the solution of the present application. Other application environments can also include more or fewer computer devices than those shown in Figure 1 Only 1 computer device is shown in
[0036] It can be understood that the data processing system for fast display of dynamic targets can also include one or more other services, which are not specifically limited here. Figure 1 In addition, as shown in
[0037] It should be noted that Figure 1 The schematic diagram of the scenario of the data processing system for fast display of dynamic targets shown is only an example. The data processing system and scenario for fast display of dynamic targets described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. As can be known to those of ordinary skill in the art, with the evolution of the data processing system for fast display of dynamic targets and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0038] The present invention discloses a data processing method and device for fast display of dynamic targets, which are beneficial to improving the drawing efficiency of dynamic targets by optimizing the dynamic target data engine and dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large. The following will be described in detail respectively.
[0039] Embodiment 1
[0040] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of a data processing method for fast display of dynamic targets disclosed in an embodiment of the present invention. Among them, Figure 2 The described data processing method for fast display of dynamic targets is applied to a management system, such as a local server or a cloud server for management, etc., and the embodiments of the present invention do not make any limitations. As Figure 2 shown, the data processing method for fast display of dynamic targets may include the following operations:
[0041] 101. Obtain the dynamic target information to be displayed on the first device.
[0042] In the embodiments of the present invention, the dynamic target information to be displayed includes M pieces of sequentially distributed coordinate-time information to be displayed; the coordinate-time information to be displayed includes the dynamic target time and the three-dimensional coordinate information corresponding to the dynamic target time.
[0043] 102. Perform conversion processing on the dynamic target information to be displayed to obtain the first dynamic target display information.
[0044] In the embodiments of the present invention, the first dynamic target display information includes N pieces of first dynamic target coordinate-time information; the first dynamic target coordinate-time information includes the dynamic target time and the two-dimensional coordinate information corresponding to the dynamic target time; N is a positive integer greater than M.
[0045] 103. Perform optimization processing on the first dynamic target display information to obtain the second dynamic target display information.
[0046] In the embodiments of the present invention, the second dynamic target display information includes N pieces of dynamic target quick display information.
[0047] It should be noted that the above-mentioned coordinate time information to be displayed characterizes the dynamic targets to be displayed on the map in chronological order, and the embodiments of the present invention do not make any limitations.
[0048] It should be noted that the above M is a positive integer not less than 2, and the embodiments of the present invention do not make any limitations.
[0049] It should be noted that after optimizing the first dynamic target display information to obtain the second dynamic target display information, the dynamic target quick display information can be drawn on the screen. If the scene is a two-dimensional scene at this time, the dynamic target two-dimensional drawing technology based on GPU acceleration is used to draw the dynamic target quick display information on the screen, greatly improving the dynamic target drawing speed on the two-dimensional map. At the same time, the two-dimensional and three-dimensional integrated scene management technology is adopted to ensure that there is only one scene in the display layer, reducing memory occupancy. The embodiments of the present invention do not make any limitations.
[0050] It should be noted that the first dynamic target display information of this application is dynamically managed using a dedicated memory management technology for dynamic targets to improve the frequent update and fast query speed of dynamic target trajectory data. Further, the first dynamic target coordinate time information is associated with the grid coordinate information of ten levels in the following manner, that is, the origin of the two-dimensional grid on the earth's surface is at the intersection of the equatorial plane and the prime meridian plane, and the two-dimensional grid on the earth's surface is divided into ten levels. The division method is as follows: a) First-level grid division: The first-level grid is divided according to the 1:1 million map sheet, and the unit size is 6°×4°; b) Second-level grid division: The first-level 6°×4° grid is equally divided according to longitude and latitude into 12×8 second-level grids, corresponding to a 30'×30' grid, approximately equal to a 55.66 km×55.66 km grid at the earth's equator; c) Third-level grid division: The second-level grid is equally divided according to longitude and latitude into 2×3 third-level grids, corresponding to a 15'×10' grid of the 1:50,000 map sheet, approximately equal to a 27.83 km×18.55 km grid at the earth's equator; d) Fourth-level grid division: The third-level grid is equally divided according to longitude and latitude into 15×10 fourth-level grids, approximately equal to a 1.85 km×1.85 km grid at the earth's equator; e) Fifth-level grid division: The fourth-level grid is equally divided according to longitude and latitude into 15×15 fifth-level grids, approximately equal to a 123.69 m×123.69 m grid at the earth's equator; f) Sixth-level grid division: The fifth-level grid is equally divided according to longitude and latitude into 2×2 sixth-level grids, approximately equal to a 61.84 m×61.84 m grid at the earth's equator; g) Seventh-level grid division: The sixth-level grid is equally divided according to longitude and latitude into 8×8 seventh-level grids, approximately equal to a 7.73 m×7.73 m grid at the earth's equator; h) Eighth-level grid division: The seventh-level grid is equally divided according to longitude and latitude into 8×8 eighth-level grids, approximately equal to a 0.97 m×0.97 m grid at the earth's equator; i) Ninth-level grid division: The eighth-level grid is equally divided according to longitude and latitude into 8×8 ninth-level grids, approximately equal to a 12.0 cm×12.0 cm grid at the earth's equator; j) Tenth-level grid division: The ninth-level grid is equally divided according to longitude and latitude into 8×8 tenth-level grids, approximately equal to a 1.5 cm×1.5 cm grid at the earth's equator, which is not limited in the embodiments of the present invention.
[0051] It should be noted that the data processing method for fast display of dynamic targets in this application solves the problem that coordinate conversion between different spatial references takes up a relatively long CPU time, improves the frequent update and fast query speed of dynamic target trajectory data, adopts a symbolic thinking method to support the efficient drawing of dynamic targets, uses a symbol pre-rendering technology to greatly improve the drawing efficiency; adopts an asynchronous update framework to ensure the smoothness of foreground roaming and reduce the CPU occupancy rate, adopts a two-dimensional drawing technology for dynamic targets based on GPU acceleration to greatly improve the drawing speed of dynamic targets on a two-dimensional map, and adopts a two- and three-dimensional integrated scene management technology to reduce memory occupancy.
[0052] It can be seen that implementing the data processing method for fast display of dynamic targets described in the embodiments of the present invention is beneficial to improving the drawing efficiency of dynamic targets by optimizing the dynamic target data engine and the dynamic target display logic, and thus solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is relatively large.
[0053] In an alternative embodiment, the above-mentioned conversion process of dynamic target information to obtain the first dynamic target display information includes:
[0054] Sending the dynamic target information to be displayed from a first device to a second device to obtain the dynamic target information to be processed; the processors of the second device and the first device are inconsistent;
[0055] Performing a conversion process on the dynamic target information to be processed to obtain the first dynamic target display information.
[0056] It should be noted that the first device is a device unit driven by a CPU, which is not limited in the embodiments of the present invention. Further, the above-mentioned second device is a device unit driven by a GPU, which is not limited in the embodiments of the present invention. Further, the above-mentioned performing a conversion process on the dynamic target information to be processed to obtain the first dynamic target display information is to preprocess the dynamic target data using a dynamic target data engine and pre-render the dynamic target, which is not limited in the embodiments of the present invention.
[0057] It can be seen that implementing the data processing method for fast display of dynamic targets described in the embodiments of the present invention is beneficial to improving the drawing efficiency of dynamic targets by optimizing the dynamic target data engine and the dynamic target display logic, and thus solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is relatively large.
[0058] In another alternative embodiment, the conversion process of the dynamic target information to be processed to obtain the first dynamic target display information includes:
[0059] Performing a conversion process on the dynamic target information to be processed to obtain the dynamic target coordinate information;
[0060] Render the dynamic target coordinate information to obtain the first dynamic target display information.
[0061] It should be noted that the above conversion process for the dynamic target information to be processed moves the CPU-intensive calculations to the background thread by using the pre-built display coordinate technology, which is not limited in the embodiments of the present invention.
[0062] It should be noted that the above rendering process for the dynamic target coordinate information uses the symbol pre-rendering technology to pre-render the symbols before drawing the dynamic target and save them as meshes that can be directly rendered, which is not limited in the embodiments of the present invention.
[0063] It can be seen that implementing the data processing method for fast display of dynamic targets described in the embodiments of the present invention is beneficial to improving the drawing efficiency of dynamic targets by optimizing the dynamic target data engine and the dynamic target display logic, and thus solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0064] In another optional embodiment, the dynamic target information to be processed is converted to obtain dynamic target coordinate information, including:
[0065] Perform coordinate conversion processing on the dynamic target information to be processed to obtain initial conversion coordinate information; the initial conversion coordinate information includes M sequentially arranged initial conversion coordinate time information; the initial conversion coordinate time information includes the dynamic target time and the initial two-dimensional coordinate information corresponding to the dynamic target time;
[0066] For any two adjacent initial conversion coordinate time information in the initial conversion coordinate information, the initial conversion coordinate time information with a higher ranking and the initial conversion coordinate time information with a lower ranking among the two adjacent initial conversion coordinate time information are sequentially determined as the first sorted conversion coordinate time information and the second sorted conversion coordinate time information;
[0067] Use the conversion difference model to perform calculation processing on the first sorted conversion coordinate time information and the second sorted conversion coordinate time information to obtain an interpolated conversion coordinate time information;
[0068] Among them, the conversion difference model is:
[0069]
[0070] Wherein, T0 is the dynamic target time corresponding to the interpolation conversion coordinate time information; T1 is the dynamic target time corresponding to the first sorted conversion coordinate time information; T2 is the dynamic target time corresponding to the second sorted conversion coordinate time information; (X0, Y0) are the abscissa value and the ordinate value in the interpolation two-dimensional coordinate information corresponding to the interpolation conversion coordinate time information; (X1, Y1) are the abscissa value and the ordinate value in the initial two-dimensional coordinate information corresponding to the first sorted conversion coordinate time information; (X2, Y2) are the abscissa value and the ordinate value in the initial two-dimensional coordinate information corresponding to the second sorted conversion coordinate time information;
[0071] Sort and fuse each initial conversion coordinate time information and each interpolation conversion coordinate time information in the initial conversion coordinate information in the order of the dynamic target time to obtain the dynamic target coordinate information.
[0072] It should be noted that the above coordinate conversion processing of the dynamic target information to be processed converts the coordinate information representing longitude, latitude and altitude into the horizontal and vertical coordinates of a plane, which is not limited in the embodiments of the present invention. Further, the above conversion method may be a projection transformation method, or may be implemented by a method of mutually converting longitude and latitude and xy coordinates (screen coordinates) based on Python, which is not limited in the embodiments of the present invention. Further, moving the coordinate conversion to the background (second device) thread reduces the CPU occupation duration. In the actual application process, the dynamic target data formats provided by the data source are not unified and cannot be directly used for dynamic target display. Therefore, these data need to be converted into an internal data format. Performing coordinate conversion will occupy a relatively long CPU duration (first device), which is one of the important factors affecting the display performance. For this reason, this application transfers the coordinate conversion to the background (second device).
[0073] It should be noted that using the conversion difference model to calculate and process the first sorted conversion coordinate time information and the second sorted conversion coordinate time information to obtain an interpolation conversion coordinate time information is to calculate the intermediate time and coordinates through interpolation according to the two previous and subsequent times and coordinates after the coordinate conversion, so as to make the display effect of the dynamic target smoother, which is not limited in the embodiments of the present invention.
[0074] It can be seen that implementing the data processing method for fast display of dynamic targets described in the embodiments of the present invention is beneficial to improving the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0075] In another optional embodiment, rendering processing is performed on the dynamic target coordinate information to obtain the first dynamic target display information, including:
[0076] Perform graphic information drawing and processing on the dynamic target coordinate information to obtain the dynamic target graphic information;
[0077] Perform coloring processing on the dynamic target graphic information to obtain the dynamic target coloring information;
[0078] Perform rendering processing on the dynamic target coloring information to obtain the first dynamic target display information.
[0079] It should be noted that the above-mentioned graphic information drawing and processing of the dynamic target coordinate information represent the transformation of the dynamic target graphic organization method and drawing mode by using a symbolic thinking method. For the same type of target, it is drawn with the same symbol combination and supports multi-level symbol display. Only in the case of large-scale display, fine symbols are displayed. First, the concept of the dynamic target style set is proposed: The style set is a set of settings for two-dimensional symbols, three-dimensional models, signs, trajectory styles, and action range settings of dynamic targets. Design a set of style sets for each type of combat entity in advance. For each set of style sets, only create one two-dimensional symbol geometry, three-dimensional model geometry, sign geometry, trajectory geometry, and range geometry. Then, for each type of geometry, register the corresponding information of all dynamic targets using this style set. Each dynamic target is only used as a drawing instance of this geometry. According to the instantiation drawing technology, the embodiments of the present invention are not limited.
[0080] It should be noted that the above-mentioned coloring processing of the dynamic target graphic information represents the coloring processing of the dynamic target representing the geometry by using vertex shaders, geometry shaders, fragment shaders, etc. The embodiments of the present invention are not limited.
[0081] It should be noted that the above-mentioned rendering processing of the dynamic target coloring information represents using OpenGL to pre-render the symbols and save them as meshes that can be directly rendered, so as to combine the vertex data of the symbols corresponding to the dynamic targets with the texture information into meshes that can be drawn on the screen and save them for calling during drawing.
[0082] It can be seen that implementing the data processing method for fast display of dynamic targets described in the embodiments of the present invention is beneficial to improving the dynamic target drawing efficiency by optimizing the dynamic target data engine and dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0083] In an optional embodiment, the above-mentioned optimization processing of the first dynamic target display information to obtain the second dynamic target display information includes:
[0084] Send the first dynamic target display information from the second device to the first device to obtain the dynamic target display information to be optimized; the dynamic target display information to be optimized includes N pieces of dynamic target coordinate time information;
[0085] Optimize the to-be-optimized dynamic target display information to obtain the second dynamic target display information.
[0086] It should be noted that the hardware resources required for the above-mentioned optimization processing of the to-be-optimized dynamic target display information are significantly reduced compared to the conversion processing. And to ensure the processing timeliness, it is processed by the first device configured with a CPU, which ensures the processing efficiency while ensuring the processing timeliness. The embodiments of the present invention do not make limitations. That is, an asynchronous update framework is adopted. After waiting for all data synchronization conversions to be completed, the display update logic is executed to ensure the smoothness of foreground roaming. The embodiments of the present invention do not make limitations.
[0087] It can be seen that implementing the data processing method for fast display of dynamic targets described in the embodiments of the present invention is beneficial to improving the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0088] In another optional embodiment, optimizing the to-be-optimized dynamic target display information to obtain the second dynamic target display information includes:
[0089] Obtain the origin coordinate information;
[0090] For any to-be-optimized dynamic target coordinate time information in the to-be-optimized dynamic target display information, calculate the distance between the two-dimensional coordinate information corresponding to the to-be-optimized dynamic target coordinate time information and the origin coordinate information to obtain the dynamic target distance value corresponding to the to-be-optimized dynamic target coordinate time information;
[0091] Based on the distance priority correspondence and the dynamic target distance value corresponding to the to-be-optimized dynamic target coordinate time information, obtain the display priority corresponding to the to-be-optimized dynamic target coordinate time information;
[0092] Associate the display frequency corresponding to the display priority with the to-be-optimized dynamic target coordinate time information to obtain the dynamic target fast display information corresponding to the to-be-optimized dynamic target coordinate time information.
[0093] It should be noted that the above origin coordinate information represents the origin coordinates corresponding to the center origin of the simulation map. Further, the above origin coordinates can be (0, 0), or other values. The embodiments of the present invention do not make limitations.
[0094] It should be noted that the above distance priority correspondence represents the relationship between the dynamic target distance value and the priority, which is not limited in the embodiments of the present invention. Further, the smaller the above dynamic target distance value, the higher the priority. Further, the above distance priority correspondence may be that the priority of the two-dimensional coordinate points corresponding to the dynamic target distance value within the radius of R1 is the first priority; the priority of the two-dimensional coordinate points corresponding to the dynamic target distance value within the radius of R2 is the second priority; the priority of the two-dimensional coordinate points corresponding to the dynamic target distance value within the radius of R3 is the third priority, which is not limited in the embodiments of the present invention. Further, the values of the above R1, R2, and R3 increase in sequence, which is not limited in the embodiments of the present invention. It should be noted that the above R1, R2, and R3 may be set by the user or default values given by the system, which is not limited in the embodiments of the present invention. Further, the values of the above R1, R2, and R3 are between [1, 100], which is not limited in the embodiments of the present invention.
[0095] It should be noted that each of the above display priorities corresponds to a display frequency. For example, the display frequency of the first priority is 120 Hz, and the display frequency of the second priority is 60 Hz, which is not limited in the embodiments of the present invention. Further, associating the display frequency corresponding to the display priority with the time information of the dynamic target coordinates to be optimized means that the fast display information of the dynamic target will be displayed at the corresponding display frequency. Further, for dynamic targets, different display frequencies are updated according to the update priority; as the viewpoint roams or the positions of the dynamic targets change, the priorities of all dynamic targets are always dynamically changing, and each update must be executed based on the latest dynamic target priorities. Through the above mechanism, the overall position update is dynamic and progressive. Further, according to the display priority of the dynamic target, the importance of the dynamic target, and the display frequency of the dynamic target, different display update frequencies are adopted, reducing the dynamic target update cost and the occupancy rate of the CPU.
[0096] It can be seen that implementing the data processing method for fast display of dynamic targets described in the embodiments of the present invention is beneficial to improving the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0097] Embodiment 2
[0098] Please refer to Figure 3 , Figure 3 which is a schematic structural diagram of a data processing device for fast display of dynamic targets disclosed in the embodiments of the present invention. Among them, Figure 3 the described device can be applied to a management system, such as a local server or a cloud server for management, etc., which is not limited in the embodiments of the present invention. Such asFigure 3 As shown, the device may include:
[0099] An acquisition module 201, configured to acquire information of a dynamic target to be displayed on a first device; the information of the dynamic target to be displayed includes M pieces of coordinate-time information of the dynamic target to be displayed distributed in sequence; the coordinate-time information of the dynamic target to be displayed includes a dynamic target time and three-dimensional coordinate information corresponding to the dynamic target time;
[0100] A first processing module 202, configured to perform conversion processing on the information of the dynamic target to be displayed to obtain first dynamic target display information; the first dynamic target display information includes N pieces of first dynamic target coordinate-time information; the first dynamic target coordinate-time information includes a dynamic target time and two-dimensional coordinate information corresponding to the dynamic target time; N is a positive integer greater than M;
[0101] A second processing module 203, configured to perform optimization processing on the first dynamic target display information to obtain second dynamic target display information; the second dynamic target display information includes N pieces of dynamic target fast display information.
[0102] It can be seen that implementing Figure 3 The described data processing device for fast display of dynamic targets is conducive to improving the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0103] In another optional embodiment, as Figure 3 shown, the first processing module 202 performs conversion processing on the dynamic target information to obtain the first dynamic target display information, including:
[0104] Sending the information of the dynamic target to be displayed from the first device to the second device to obtain the dynamic target information to be processed; the processor of the second device and the processor of the first device are inconsistent;
[0105] Performing conversion processing on the dynamic target information to be processed to obtain the first dynamic target display information.
[0106] It can be seen that implementing Figure 3 The described data processing device for fast display of dynamic targets is conducive to improving the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0107] In yet another optional embodiment, as Figure 3 shown, the first processing module 202 performs conversion processing on the dynamic target information to be processed to obtain the first dynamic target display information, including:
[0108] Perform conversion processing on the dynamic target information to be processed to obtain dynamic target coordinate information;
[0109] Perform rendering processing on the dynamic target coordinate information to obtain the first dynamic target display information.
[0110] It can be seen that implementing Figure 3 the described data processing device for fast display of dynamic targets is beneficial to improving the drawing efficiency of dynamic targets by optimizing the dynamic target data engine and the dynamic target display logic, and thus solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0111] In another alternative embodiment, as Figure 3 shown, the first processing module 202 performs conversion processing on the dynamic target information to be processed to obtain dynamic target coordinate information, including:
[0112] Perform coordinate conversion processing on the dynamic target information to be processed to obtain initial conversion coordinate information; the initial conversion coordinate information includes M sequentially arranged initial conversion coordinate time information; the initial conversion coordinate time information includes the dynamic target time and the initial two-dimensional coordinate information corresponding to the dynamic target time;
[0113] For any two adjacent initial conversion coordinate time information in the initial conversion coordinate information, the initial conversion coordinate time information with a higher order and the initial conversion coordinate time information with a lower order in the two adjacent initial conversion coordinate time information are sequentially determined as the first sorted conversion coordinate time information and the second sorted conversion coordinate time information;
[0114] Use the conversion difference model to perform calculation processing on the first sorted conversion coordinate time information and the second sorted conversion coordinate time information to obtain an interpolated conversion coordinate time information;
[0115] Among them, the conversion difference model is:
[0116]
[0117] In the formula, T0 is the dynamic target time corresponding to the interpolated conversion coordinate time information; T1 is the dynamic target time corresponding to the first sorted conversion coordinate time information; T2 is the dynamic target time corresponding to the second sorted conversion coordinate time information; (X0, Y0) are the abscissa value and the ordinate value in the interpolated two-dimensional coordinate information corresponding to the interpolated conversion coordinate time information; (X1, Y1) are the abscissa value and the ordinate value in the initial two-dimensional coordinate information corresponding to the first sorted conversion coordinate time information; (X2, Y2) are the abscissa value and the ordinate value in the initial two-dimensional coordinate information corresponding to the second sorted conversion coordinate time information;
[0118] Sort and fuse each initial transformation coordinate time information and each interpolated transformation coordinate time information in the initial transformation coordinate information in the order of the dynamic target time to obtain the dynamic target coordinate information.
[0119] It can be seen that implementing Figure 3 the described data processing device for fast display of dynamic targets is beneficial to improving the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0120] In another optional embodiment, as Figure 3 shown, the first processing module 202 performs rendering processing on the dynamic target coordinate information to obtain the first dynamic target display information, including:
[0121] Performing graphic information drawing processing on the dynamic target coordinate information to obtain dynamic target graphic information;
[0122] Performing coloring processing on the dynamic target graphic information to obtain dynamic target coloring information;
[0123] Performing rendering processing on the dynamic target coloring information to obtain the first dynamic target display information.
[0124] It can be seen that implementing Figure 3 the described data processing device for fast display of dynamic targets is beneficial to improving the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0125] In another optional embodiment, as Figure 3 shown, the second processing module 203 performs optimization processing on the first dynamic target display information to obtain the second dynamic target display information, including:
[0126] Sending the first dynamic target display information from the second device to the first device to obtain the dynamic target display information to be optimized; the dynamic target display information to be optimized includes N pieces of dynamic target coordinate time information to be optimized;
[0127] Performing optimization processing on the dynamic target display information to be optimized to obtain the second dynamic target display information.
[0128] It can be seen that implementing Figure 3 the described data processing device for fast display of dynamic targets is beneficial to improving the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0129] In another optional embodiment, asFigure 3 As shown in Figure 3 , the second processing module 203 performs optimization processing on the dynamic target display information to be optimized, and obtains the second dynamic target display information, including:
[0130] Obtain the origin coordinate information;
[0131] For any dynamic target coordinate time information in the dynamic target display information to be optimized, calculate the distance between the two-dimensional coordinate information corresponding to the dynamic target coordinate time information and the origin coordinate information, and obtain the dynamic target distance value corresponding to the dynamic target coordinate time information;
[0132] Based on the distance priority correspondence and the dynamic target distance value corresponding to the dynamic target coordinate time information, obtain the display priority corresponding to the dynamic target coordinate time information;
[0133] Associate the display frequency corresponding to the display priority with the dynamic target coordinate time information, and obtain the dynamic target fast display information corresponding to the dynamic target coordinate time information.
[0134] It can be seen that implementing Figure 3 The data processing device for fast display of dynamic targets described above is beneficial to improving the dynamic target drawing efficiency by optimizing the dynamic target data engine and the dynamic target display logic, and further solving the problem of unsmooth display of dynamic targets when the number of dynamic targets is large.
[0135] Embodiment III
[0136] Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of another data processing device for fast display of dynamic targets disclosed in the embodiments of the present invention. Among them, Figure 4 The device described above can be applied to a management system, such as a local server or a cloud server for management, etc., and the embodiments of the present invention do not make limitations. As Figure 4 shown, the device may include:
[0137] A memory 301 storing executable program code;
[0138] A processor 302 coupled to the memory 301;
[0139] The processor 302 calls the executable program code stored in the memory 301 to execute the steps in the data processing method for fast display of dynamic targets described in Embodiment I.
[0140] Embodiment IV
[0141] An embodiment of the present invention discloses a computer-readable storage medium that stores a computer program for electronic data exchange. The computer program causes a computer to execute the steps in the data processing method for fast display of dynamic targets described in Embodiment 1.
[0142] Embodiment 5
[0143] An embodiment of the present invention discloses a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the steps in the data processing method for fast display of dynamic targets described in Embodiment 1.
[0144] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative effort.
[0145] Through the specific descriptions of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electrically-erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc memories, a magnetic disc memory, a tape memory, or any other computer-readable medium capable of carrying or storing data.
[0146] Finally, it should be noted that: what is disclosed by a data processing method and device for fast display of dynamic targets disclosed in the embodiments of the present invention is only the preferred embodiments of the present invention, which are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data processing method for fast display of dynamic targets, characterized in that The method includes: Obtaining dynamic target information to be displayed at a first device; the dynamic target information to be displayed includes M sequentially distributed coordinate-time information to be displayed; the coordinate-time information to be displayed includes a dynamic target time and three-dimensional coordinate information corresponding to the dynamic target time; Performing conversion processing on the dynamic target information to be displayed to obtain first dynamic target display information; the first dynamic target display information includes N first dynamic target coordinate-time information; the first dynamic target coordinate-time information includes the dynamic target time and two-dimensional coordinate information corresponding to the dynamic target time; N is a positive integer greater than M; Performing optimization processing on the first dynamic target display information to obtain second dynamic target display information; the second dynamic target display information includes N dynamic target fast display information; Wherein, the performing optimization processing on the first dynamic target display information to obtain second dynamic target display information includes: Sending the first dynamic target display information from a second device to the first device to obtain dynamic target display information to be optimized; the dynamic target display information to be optimized includes the N coordinate-time information of the dynamic target to be optimized; Performing optimization processing on the dynamic target display information to be optimized to obtain second dynamic target display information; Wherein, the performing optimization processing on the dynamic target display information to be optimized to obtain second dynamic target display information includes: Obtaining origin coordinate information; For any one of the coordinate-time information of the dynamic target to be optimized in the dynamic target display information to be optimized, calculating the distance between the two-dimensional coordinate information corresponding to the coordinate-time information of the dynamic target to be optimized and the origin coordinate information to obtain a dynamic target distance value corresponding to the coordinate-time information of the dynamic target to be optimized; Based on the distance priority correspondence and the dynamic target distance value corresponding to the coordinate-time information of the dynamic target to be optimized, obtaining a display priority corresponding to the coordinate-time information of the dynamic target to be optimized; Associating the display frequency corresponding to the display priority with the coordinate-time information of the dynamic target to be optimized to obtain the dynamic target fast display information corresponding to the coordinate-time information of the dynamic target to be optimized; for dynamic targets, update with different display frequencies according to the update priority; as the viewpoint roams or the position of the dynamic target changes, the priorities of all dynamic targets are always dynamically changing, and each update should be executed based on the latest dynamic target priorities. Through the above mechanism, overall dynamic and progressive position updates are achieved.
2. The data processing method for fast display of dynamic targets according to claim 1, wherein, The performing conversion processing on the dynamic target information to be displayed to obtain first dynamic target display information includes: Sending the dynamic target information to be displayed from the first device to the second device to obtain dynamic target information to be processed; the processor of the second device and the processor of the first device are inconsistent; Performing conversion processing on the dynamic target information to be processed to obtain first dynamic target display information.
3. The data processing method for fast display of dynamic targets according to claim 2, wherein The performing conversion processing on the dynamic target information to be processed to obtain first dynamic target display information includes: Perform conversion processing on the to-be-processed dynamic target information to obtain dynamic target coordinate information; Perform rendering processing on the dynamic target coordinate information to obtain first dynamic target display information.
4. The data processing method for fast display of dynamic targets according to claim 3, characterized in that, The performing conversion processing on the to-be-processed dynamic target information to obtain dynamic target coordinate information includes: Perform coordinate conversion processing on the to-be-processed dynamic target information to obtain initial conversion coordinate information; the initial conversion coordinate information includes the M initial conversion coordinate time information arranged in sequence; the initial conversion coordinate time information includes the dynamic target time and the initial two-dimensional coordinate information corresponding to the dynamic target time; For any two adjacent initial conversion coordinate time information in the initial conversion coordinate information, determine the initial conversion coordinate time information with a higher order and the initial conversion coordinate time information with a lower order in the two adjacent initial conversion coordinate time information as the first sorted conversion coordinate time information and the second sorted conversion coordinate time information in sequence; Perform calculation processing on the first sorted conversion coordinate time information and the second sorted conversion coordinate time information by using a conversion difference model to obtain an interpolated conversion coordinate time information; Wherein, the conversion difference model is: In the formula, T0 is the dynamic target time corresponding to the interpolated conversion coordinate time information; T1 is the dynamic target time corresponding to the first sorted conversion coordinate time information; T2 is the dynamic target time corresponding to the second sorted conversion coordinate time information; (X0, Y0) are the abscissa value and the ordinate value in the interpolated two-dimensional coordinate information corresponding to the interpolated conversion coordinate time information; (X1, Y1) are the abscissa value and the ordinate value in the initial two-dimensional coordinate information corresponding to the first sorted conversion coordinate time information; (X2, Y2) are the abscissa value and the ordinate value in the initial two-dimensional coordinate information corresponding to the second sorted conversion coordinate time information; Perform sorting and fusion on each initial conversion coordinate time information and each interpolated conversion coordinate time information in the initial conversion coordinate information in the order of the dynamic target time to obtain dynamic target coordinate information.
5. The data processing method for fast display of dynamic targets according to claim 3, characterized in that The performing rendering processing on the dynamic target coordinate information to obtain first dynamic target display information includes: Perform graphic information drawing processing on the dynamic target coordinate information to obtain dynamic target graphic information; Perform coloring processing on the dynamic target graphic information to obtain dynamic target coloring information; Perform rendering processing on the dynamic target coloring information to obtain first dynamic target display information.
6. A data processing device for fast display of dynamic targets, characterized in that, The device includes: An acquisition module, configured to acquire to-be-displayed dynamic target information on a first device; the to-be-displayed dynamic target information includes M to-be-displayed coordinate time information distributed in sequence; the to-be-displayed coordinate time information includes a dynamic target time and three-dimensional coordinate information corresponding to the dynamic target time; The first processing module is configured to perform conversion processing on the to-be-displayed dynamic target information to obtain first dynamic target display information; the first dynamic target display information includes N pieces of first dynamic target coordinate-time information; the first dynamic target coordinate-time information includes the dynamic target time and two-dimensional coordinate information corresponding to the dynamic target time; N is a positive integer greater than M. The second processing module is configured to perform optimization processing on the first dynamic target display information to obtain second dynamic target display information; the second dynamic target display information includes N pieces of dynamic target fast display information. Wherein, the performing optimization processing on the first dynamic target display information to obtain second dynamic target display information includes: Sending the first dynamic target display information from a second device to a first device to obtain to-be-optimized dynamic target display information; the to-be-optimized dynamic target display information includes the N pieces of to-be-optimized dynamic target coordinate-time information. Performing optimization processing on the to-be-optimized dynamic target display information to obtain second dynamic target display information. Wherein, the performing optimization processing on the to-be-optimized dynamic target display information to obtain second dynamic target display information includes: Obtaining origin coordinate information. For any piece of the to-be-optimized dynamic target coordinate-time information in the to-be-optimized dynamic target display information, calculating the distance between the two-dimensional coordinate information corresponding to the to-be-optimized dynamic target coordinate-time information and the origin coordinate information to obtain a dynamic target distance value corresponding to the to-be-optimized dynamic target coordinate-time information. Based on the distance priority correspondence relationship and the dynamic target distance value corresponding to the to-be-optimized dynamic target coordinate-time information, obtaining a display priority corresponding to the to-be-optimized dynamic target coordinate-time information. Associating the display frequency corresponding to the display priority with the to-be-optimized dynamic target coordinate-time information to obtain the dynamic target fast display information corresponding to the to-be-optimized dynamic target coordinate-time information; for dynamic targets, updating with different display frequencies according to the update priority; as the viewpoint roams or the positions of the dynamic targets change, the priorities of all dynamic targets are always dynamically changing, and each update should be executed based on the latest dynamic target priorities. Through the above mechanism, overall, dynamic and progressive position updates are achieved.
7. A data processing device for fast display of dynamic targets, characterized in that, The device includes: A memory storing executable program code. A processor coupled to the memory. The processor calls the executable program code stored in the memory and executes the data processing method for fast display of dynamic targets as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, which are used to execute the data processing method for fast display of dynamic targets as described in any one of claims 1-5 when the computer instructions are called.