Forum:Background model update
From Planet JFX
I want to update a model using a refresh rate. Monitor is a CompositeNode(). What's the best way to do it?
pseudo code
operation backGroundUpdate(monitor:Monitor)
{
do {
while(true)
{
monitor.update();
//sleep(rate)
}
}
}
backGroundUpdate(monitor);
- One way periodic updates are done can be found in the Clock Example. The syntax is a bit weird, but you can get it to work. Pforhan 14:01, 27 November 2007 (UTC)