SamsTheNerd / HexGloop

A very gloopy hex casting addon
GNU Lesser General Public License v3.0
4 stars 8 forks source link

[request] Option to disable pattern rendering #15

Open penguinencounter opened 1 year ago

penguinencounter commented 1 year ago

While useful in most scenarios, rendering large numbers of patterns at once (for example, a long spell stored in a Focus) causes major performance degradation: (Red area was while hovering a Focus with 53 patterns inside.) FPS graph. A large red spike is clearly visible. This can entirely lock up the game for seconds or minutes at a time with more patterns.

An option to turn off pattern rendering would be greatly appreciated. This could either be in a config file, triggered by a keybind, or perhaps automatically disabled when more than some number of patterns need to be rendered at the same time.

More options:

SamsTheNerd commented 1 year ago

Optimizing the pattern rendering is on the todolist (which might just be yoinking the cache system from hex 1.20 when I port up), and that should help with this.

As for config, I don't particularly want to have to hard depend on something like cloth config. Having just JSON based config might work well given Hex's more tech literate audience ? I'll have to think about how I want to handle it, open to feedback though.