AndreasArvidsson / andreas-talon

User scripts for Talon Voice
MIT License
73 stars 11 forks source link

memory leak for imgui #5

Closed SmikeSix closed 1 year ago

SmikeSix commented 1 year ago

hey i extended this class to add some horizontal panels / toogle buttons and seralization and found that it is quite gpu / cpu heavy since it will be redrawn every frame. and this causes heavy memory leaks. you need to pause / resume the ui on content changes.

on the other side, do you know if there is a way to have text input fields with it?

AndreasArvidsson commented 1 year ago

There is a imgui.freeze() function available that you could use. That it by default always updates is desirable for my use cases and the cpu and memory drain is manageable for me.

I haven't experimented with text input fields.

SmikeSix commented 1 year ago

just to mention, its a windows only bug that is in some framework talon uses, it will be patched out in newer versions