Unlock instant, AI-driven research and patent intelligence for your innovation.

A multi-thread update method for pathfinding grid

An update method and multi-threaded technology, applied in the field of pathfinding, can solve the problem of high delay and achieve the effect of improving efficiency

Active Publication Date: 2021-08-10
不鸣科技(杭州)有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The invention provides a multi-thread update method for a pathfinding grid, aiming to solve the problem of excessive delay caused by using a single thread to update the pathfinding grid in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A multi-thread update method for pathfinding grid
  • A multi-thread update method for pathfinding grid
  • A multi-thread update method for pathfinding grid

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] like figure 1 As shown, a multi-thread update method for the pathfinding grid, including:

[0048] S110: Obtain pathfinding grid block information, where the pathfinding grid block information includes pathfinding grid block coordinates;

[0049] S120: Initiate an update task process to N sub-threads based on the coordinates of the pathfinding grid block, where N is an integer greater than 1.

[0050]Obtaining pathfinding grid block information, said pathfinding grid block information including: pathfinding grid block coordinates, height field data, success signal; assigning corresponding pathfinding grid block information in advance according to the number of threads in the multi-threaded computing architecture; The main thread collects the pathfinding grid block coordinates affected by obstacles into the corresponding pathfinding grid block information; initiates the pathfinding grid update task process on each sub-thread, and waits for the sub-thread to generate the...

Embodiment 2

[0052] like figure 2 As shown, a multi-thread update method for the pathfinding grid, including:

[0053] S210. Acquire pathfinding grid block information, where the pathfinding grid block information includes pathfinding grid block coordinates;

[0054] S220. Obtain obstacle information, where the obstacle information includes obstacle position and geometric information;

[0055] S230. According to the obstacle information, acquire the pathfinding grid block information that overlaps with the obstacle information, and the pathfinding grid block information also includes height field data and a completion signal, wherein the height The field data is composed of multiple voxels;

[0056] S240. Initiate an update task process to N sub-threads based on the pathfinding grid block coordinates, where N is an integer greater than 1.

[0057] It can be known from Embodiment 2 that when an obstacle is input into the map, the specific steps of obtaining the pathfinding grid block in...

Embodiment 3

[0059] like image 3 As shown, a multi-thread update method for the pathfinding grid, including:

[0060] S310. Acquire pathfinding grid block information, where the pathfinding grid block information includes pathfinding grid block coordinates;

[0061] S320. Based on the height field data, mark an obstacle coverage area, where the obstacle coverage area is used to represent impassable voxels;

[0062] S330. In the sub-thread, calculate and generate a new pathfinding grid block according to the obstacle coverage area, and send a completion signal to the main thread;

[0063] S340. After receiving the completion signals of the N sub-threads, the main thread sequentially integrates the new pathfinding grid block into the pathfinding grid block information.

[0064] In Embodiment 3, the pathfinding grid block information affected by obstacles is obtained; the pathfinding grid block information also includes the memory address of the newly generated pathfinding grid block, the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a multi-thread update method for a pathfinding grid, which includes acquiring pathfinding grid block information, the pathfinding grid block information including pathfinding grid block coordinates and height field data; based on the pathfinding The grid block coordinates initiate an update task process to N sub-threads, where N is an integer greater than 1. The present invention makes up for the fact that in a single thread, the next path-finding grid starts only after the previous path-finding grid block is integrated into the path-finding grid. The calculation of blocks, in the current situation that the computer multi-threaded computing architecture has become popular, adopts the multi-threaded update method to greatly improve the efficiency, so as to effectively alleviate the problem of excessive single-threaded delay.

Description

technical field [0001] The invention relates to the technical field of pathfinding, in particular to a multi-thread update method of a pathfinding grid. Background technique [0002] With the development of electronic games, in order to enable users to have a better game experience, the content is becoming more and more abundant, and the game map is getting bigger and bigger. Therefore, the delay of each frame change in the game is becoming more and more important. Due to the increase of the map area, the real-time pathfinding service needs to put forward a high requirement on its delay. [0003] A navigation grid is composed of multiple convex polygons, with the grid as the unit, two points on the map can be reached in a straight line regardless of the height of the map; but if the two are located in different height spaces, then The navigation network and pathfinding algorithm will be used to calculate the grids that need to be passed, and then calculate the specific path...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): A63F13/5378A63F13/35
CPCA63F2300/53A63F2300/5526A63F13/35A63F13/5378
Inventor 刘沐寒
Owner 不鸣科技(杭州)有限公司