# Friday Dev News #119 - Pathfinding Performance, Update on May 12th!

**URL:** <https://forum.dionicsoftware.com/t/friday-dev-news-119-pathfinding-performance-update-on-may-12th/3769>\
**Category:** IS General Discussion\
**Created:** [April 28, 2023, 6:39pm UTC](https://forum.dionicsoftware.com/t/friday-dev-news-119-pathfinding-performance-update-on-may-12th/3769 "2023-04-28T18:39:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel](https://forum.dionicsoftware.com/user_avatar/forum.dionicsoftware.com/daniel/32/667_2.png) [@Daniel](https://forum.dionicsoftware.com/u/Daniel)\
**Post date:** [April 28, 2023, 6:39pm UTC](https://forum.dionicsoftware.com/t/friday-dev-news-119-pathfinding-performance-update-on-may-12th/3769/1 "2023-04-28T18:39:26Z")

</div>

Hello everyone!

First of all: The Decoration & Polishing Update releases in 2 weeks, on May 12th!  
We are trying to get InfraSpace ready for its 1.0 release in a couple months.

# Pathfinding Performance

We have posted about pathfinding performance before (see Friday Dev News #29 and #84 for example), but this week I think we’ve implemented a solution that is gonna handle any city you can throw at it!

Instead of our C# implementation of an optimization algorithm called contraction hierarchies, we are now running a highly optimized C++ library called RoutingKit, which is a research project from the Karlsruher Institute of Technology. Well, and this version is much faster.

For example, a city with 8,500 bidrectional roads is represented as a graph structure with. 17,000 edges (two edges per road). Our old version used to take 15.6 seconds to calculate the acceleration structure in the background, while the new optimized version is way faster at 0.051 seconds. Finding the actual path is also significantly faster.

We were looking into pathfinding performance, because it turned out that it has become one of the major performance bottlenecks in bigger saves. I’m looking forward to seeing your experiences once the update is out!

# New Parks and Fences

While Sepehr worked on the pathfinding performance, Lasse added some new buildings to the game, the first being a new park with a nice little animation:

![DecoPark_GIF](https://forum.dionicsoftware.com/uploads/default/original/2X/e/e2e6dcc4f30425a8609bef2c7305a8cdd239b606.gif)

Second, we now have small fences you can use to visually separate parks of your city:

 ![DecoFences_Screen2](https://forum.dionicsoftware.com/uploads/default/original/2X/a/ad475e09a7c6ea3b35491f38150209beefeea9ad.jpeg)

Update releases May 12th, we hope you’ll like it!  
Happy playing!

---

<div class="post-metadata">

**Author:** ![LadyZowy](https://havencraft.dionicsoftware.com/assets/forumavatars/havencraft_avatar_04.jpg) [@LadyZowy](https://forum.dionicsoftware.com/u/LadyZowy)\
**Post date:** [April 28, 2023, 9:14pm UTC](https://forum.dionicsoftware.com/t/friday-dev-news-119-pathfinding-performance-update-on-may-12th/3769/2 "2023-04-28T21:14:53Z")

</div>

Traffic fix!!! Finally!!!

---

<div class="post-metadata">

**Author:** ![Daniel](https://forum.dionicsoftware.com/user_avatar/forum.dionicsoftware.com/daniel/32/667_2.png) [@Daniel](https://forum.dionicsoftware.com/u/Daniel)\
**Post date:** [April 29, 2023, 5:39pm UTC](https://forum.dionicsoftware.com/t/friday-dev-news-119-pathfinding-performance-update-on-may-12th/3769/3 "2023-04-29T17:39:07Z")

</div>

to be precise, this change increases pathfinding performance, i.e. reduces game lag. But it enables us to do different traffic algorithms in the future, maybe. We’ll see and weigh it with other fixing and improving tasks.

---

<div class="post-metadata">

**Author:** ![system](https://forum.dionicsoftware.com/uploads/default/original/2X/0/0d9c9e08c9000ab1f77ef2725aedca131bca5d47.png) [@system](https://forum.dionicsoftware.com/u/system)\
**Post date:** [May 29, 2023, 5:39pm UTC](https://forum.dionicsoftware.com/t/friday-dev-news-119-pathfinding-performance-update-on-may-12th/3769/4 "2023-05-29T17:39:59Z")

</div>

Closed on May 29, 2023, 5:39pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
