IMG
When I point the cursor at it the game freezes for 2 seconds. Maybe it's worth it to revise the display option tooltip for choose-elem-button.[0.16.50] Game hanging when calculating Total row in recipe
[0.16.50] Game hanging when calculating Total row in recipe
I play the factorio modpak seablock pack 0.2.11. I'm also developing a mod. When developing, I ran into the following problem: when I use the "choose-elem-button" for recipes (elem_type = "recipe"), the game freezes for 1-2 seconds when you hover over the "choose-elem-button" when the recipe is complex. For example a rocket silo recipe.
Last edited by _npo6ka_ on Wed Jul 04, 2018 7:32 pm, edited 1 time in total.
Re: Game hanging when calculating Total row in recipe tooltip
To reproduce the error, you can use the old version of FNEI installed in the seablock pack.
Steps:
1) Open FNEI (ctrl + E)
2) Choose rocket silo
Steps:
1) Open FNEI (ctrl + E)
2) Choose rocket silo
img
3) Click the "craft" button
img
4) Hover the "elem-choose-button" with the rocket silo recipe in the upper left corner
img
Re: [0.16.50] Game hanging when calculating Total row in recipe
Thanks for the report however that's working correctly. Simply you've got a set of mods that produces a "total" of crazy amounts of items/fluids and it takes quite some time to do the calculation of "how much of what does it take".
You've gone beyond what can the current system can reasonably handle and will have to cut back on some of the recipes if you want it to perform better.
You've gone beyond what can the current system can reasonably handle and will have to cut back on some of the recipes if you want it to perform better.
If you want to get ahold of me I'm almost always on Discord.
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: [0.16.50] Game hanging when calculating Total row in recipe
Can't you memoize the function that calculates the "total raw" numbers? You'd have to (at least partially) throw away the cached data when new recipies are unlocked...meh. But given how often these numbers are shown during gameplay it seems like they shouldn't be recalculated every single time the mouse is moved.Rseding91 wrote:Thanks for the report however that's working correctly. Simply you've got a set of mods that produces a "total" of crazy amounts of items/fluids and it takes quite some time to do the calculation of "how much of what does it take".
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.