# False speed parameter/ Possible infinte speed

**URL:** https://community.revolutionarygamesstudio.com/t/false-speed-parameter-possible-infinte-speed/5882
**Category:** Bug Reports
**Created:** [January 13, 2023, 2:21am UTC](https://community.revolutionarygamesstudio.com/t/false-speed-parameter-possible-infinte-speed/5882 "2023-01-13T02:21:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nightvampalihan](https://thrivecommunity-cdn.b-cdn.net/user_avatar/community.revolutionarygamesstudio.com/nightvampalihan/32/10285_2.png) [@nightvampalihan](https://community.revolutionarygamesstudio.com/u/nightvampalihan)
#### Post date: [January 13, 2023, 2:21am UTC](https://community.revolutionarygamesstudio.com/t/false-speed-parameter-possible-infinte-speed/5882/1 "2023-01-13T02:21:30Z")

</div>

There is a bug in cell creating interface lets say u have 3 united cell and in this cell u put tail on not the middle but the near to middle unit. End then in the next evolotion step u move to tail middle section and speed will be incrices but in the same evolution step if you click return back button tail will go back his previous location without chaning new speed rate. I didnt tested yet but it can also mean infinte speed incrise.

I will update this topic tomorrow just remind me with video you will understand better or im beliving u can understand the sitiuation.

---

<div class="post-metadata">

### Author: ![84634E1A607A](https://thrivecommunity-cdn.b-cdn.net/user_avatar/community.revolutionarygamesstudio.com/84634e1a607a/32/6730_2.png) [@84634E1A607A](https://community.revolutionarygamesstudio.com/u/84634E1A607A)
#### Post date: [January 13, 2023, 5:38am UTC](https://community.revolutionarygamesstudio.com/t/false-speed-parameter-possible-infinte-speed/5882/2 "2023-01-13T05:38:50Z")

</div>

It looks more like the speed isn’t updated properly.

---

<div class="post-metadata">

### Author: ![hhyyrylainen](https://thrivecommunity-cdn.b-cdn.net/user_avatar/community.revolutionarygamesstudio.com/hhyyrylainen/32/32_2.png) [@hhyyrylainen](https://community.revolutionarygamesstudio.com/u/hhyyrylainen)
#### Post date: [January 13, 2023, 7:39am UTC](https://community.revolutionarygamesstudio.com/t/false-speed-parameter-possible-infinte-speed/5882/3 "2023-01-13T07:39:16Z")

</div>

This could be this known issue:

> <https://github.com/Revolutionary-Games/Thrive/issues/2094>
>
> When placed normally speed is correct:
> !\[img\](https://cdn.discordapp.com/attach…ments/464847028539752471/810228661071642644/unknown.png)
> 
> When offset (which works as the hexes are repositioned when exiting the editor):
> !\[img\](https://cdn.discordapp.com/attachments/464847028539752471/810228795356610610/unknown.png)
> 
> So the speed calculation algorithm needs to be updated to take offset into account. In case it turns out to be too slow now, it'll need to be moved to run in a background task.
> 
> For reference the code the editor uses to calculate the speed is here: https://github.com/Revolutionary-Games/Thrive/blob/68f6dc2ae6cb8185241ce44335b8be3b0f43d97c/src/microbe\_stage/editor/MicrobeEditor.cs#L764

or related to:

> <https://github.com/Revolutionary-Games/Thrive/issues/3432>
>
> Discovered this while testing another PR. If I add flagella to my cell, the ATP …cost displayed is different to the ATP cost displayed the next time I enter the editor, even with no changes. Even weirder, this only appears to happen with certain cell builds.
> 
> Steps to reproduce:
> 
> \* Start a new game and enter the editor.
> \* Replace the starting cytoplasm with a metabolosome and add a flagellum. ATP balance should be 8/8 and give an ATP too low warning.
> \* Return to the environment, then enter the editor again.
> \* ATP balance is now 8/4 with no ATP too low warning, and the flagellum cost is gone from the balance bars.
> 
> !\[image\](https://user-images.githubusercontent.com/7430433/174436628-6d37d327-fe52-4ab9-a302-c20e63c2ab25.png)
> 
> !\[image\](https://user-images.githubusercontent.com/7430433/174436635-7248282c-4452-4e8b-988a-fe8621f49577.png)

---

<div class="post-metadata">

### Author: ![nightvampalihan](https://thrivecommunity-cdn.b-cdn.net/user_avatar/community.revolutionarygamesstudio.com/nightvampalihan/32/10285_2.png) [@nightvampalihan](https://community.revolutionarygamesstudio.com/u/nightvampalihan)
#### Post date: [January 13, 2023, 11:47am UTC](https://community.revolutionarygamesstudio.com/t/false-speed-parameter-possible-infinte-speed/5882/4 "2023-01-13T11:47:30Z")

</div>

No @hhyyrylainen my bug is diffrent, probably have the same origin with first but diffrent one.  
There is the bug video i didnt tested if its stackble think if you want to i can test it ?

[![](https://img.youtube.com/vi/iFjsM8Ov1mM/maxresdefault.jpg "2023 01 13 13 51 20") ](https://www.youtube.com/watch?v=iFjsM8Ov1mM)

---

<div class="post-metadata">

### Author: ![hhyyrylainen](https://thrivecommunity-cdn.b-cdn.net/user_avatar/community.revolutionarygamesstudio.com/hhyyrylainen/32/32_2.png) [@hhyyrylainen](https://community.revolutionarygamesstudio.com/u/hhyyrylainen)
#### Post date: [January 13, 2023, 12:13pm UTC](https://community.revolutionarygamesstudio.com/t/false-speed-parameter-possible-infinte-speed/5882/5 "2023-01-13T12:13:16Z")

</div>

Opened a new issue for that:

> <https://github.com/Revolutionary-Games/Thrive/issues/4022>
>
> https://community.revolutionarygamesstudio.com/t/false-speed-parameter-possible-…infinte-speed/5882/4?u=hhyyrylainen
> 
> seems like maybe undoing a move action doesn't properly trigger the refresh of microbe statistics, or maybe something more complicated went wrong in that video (see link above).

Seems likely that the organism statistics don’t get recomputed when a move action is undone.
