Hi,
I like to use progress bars for a lot of stuff (hp bars, skill cooldown bars)
Inspired by a solution from someone in this forum, I wrote my own class for a progressBar.
I have experimented with
a) drawing a rectangle (using Shape()) everytime the progress changes or
b) scaling the rectangle everytime the progress changes.
Assuming a scenario, where I have a lot of bars and each one has to be checked every frame.
Which of the two implementations will be more performant? Or are both so quick that it won't matter?
Thanks in advance!
Comments
but you may want to test this.
also, i think even if you even have like 10-20 bars it should not matter much which solution you choose. but to be safe, choose scaling.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Niclas