Allow for Widgets to be set
within an applications update
stage (and allow for arbitrary update rates).
#509
Labels
Milestone
I've had a few people raise the concern that it feels strange and non-idiomatic to update all widgets every
draw
akarender
stage, which I totally understand.Following all of the recent changes within conrod, i'm realising that it should be very easy to allow a user to instead call all of the widgets within the
update
stage, and then only callui.draw
in the draw stage. This feels a lot more idiomatic while still retaining the current immediate-mode ease of use. It will allow users to set arbitrary update rates etc. It will also allow us to add methods along the lines ofonly_update/redraw_on_input
, which would allow a user to say that they only want the UI to update/redraw if being interacted with. Atm we're redrawing every frame which is hands down conrod's biggest bottleneck right now, but with this change conrod would be almost free unless being interacted with.handle_event
(might need to move some stuff from render event to update).Ui::only_update/redraw_on_input
.Ui
's drawableElement
. This could be an alternative toUi::draw
and would allow for conrod to run on a separate thread, etc.The text was updated successfully, but these errors were encountered: