FNEI

by npo6ka

FNEI mod. All recipes for items and usage for them.

Utilities
2 months ago
0.15 - 1.1
261K

g CPU usage

6 years ago

FNEI is consuming a quite significant amount of time in it's on_tick callback if we consider that it is "only" a button with a dialog.

A quick fix is to have a "if event.tick % 30 == 0" around the body of the event. I would very much appreciate if you could add this.

What you could also do is have a counter that counts the open dialogs. And register the on_tick if the counter gets >0 and unregister it if it is back to zero.

6 years ago

I'm sorry I did not really understand the problem and its solution.
You can add your changes to my githab repository and suggest the pull requests.
https://github.com/npo6ka/FNEI

6 years ago

Ok

New response