Recent changes Random page
GAMING
Technology
 
Gaming
Entertainment
Science Fiction
Biggest wikis
Hobbies
Music
See more...

Forum:Background model update

From Planet JFX

Jump to: navigation, search
 
Forums: Index > Help desk > Background model update


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)