Does not sound that bad since this is a main menu widget, there’s only 1 at a time and does not tick when hidden.
This *can *be improved by object pooling, though. Rather than destroying and creating widgets all the time, hide and show the ones that already exist. Recycle them :rolleyes:. It’s negligible performance gain (in this very instance) vs extra time spent on developing a behind-the-scenes algorithm no one will notice, sadly. On the other hand, it’s useful exercise that makes one sleep better at night.
It’s extremely unlikely that you’ll notice performance difference with 2-3 simple widgets created a second. But if you have 2 million bullets flying everywhere, object pooling comes in handy.