2021-06-03 07:18 AM
In terms of memory, performance, etc., is it preferable to implement a button or clickable icon?
I assume that since a button is made of two images that a clickable icon is marginally more efficient.
In my specific application, due to some constraints, I am using something other than a clicked image to indicate a clicked state, so storing two different images in memory is not a concern.
All of the action would happen when the clicked widget was released.
Thanks.
2021-06-04 12:34 AM
Hi,
To be fair there definitely wouldn't be a huge difference between the two, as like you said the button is made of two images when the clickable icon is made of one. If you used a box widget instead of an icon then there would be a small difference (negligible).
If you are trying to optimize your project I would maybe look elsewhere 😅.
/Romain
2021-06-04 10:05 AM
Thanks for the confirmation @Romain DIELEMAN . That makes sense.