Providers GameComponent.Update is not called

Nov 16, 2012 at 7:50 PM


I have updated my XNA game to Ad Rotator XNA 0.4 and noticed that the providers Update method is not called. After some research it seems the root of the issue is that the GameComponents are added to the Game after the Initialize and in this cases the Update should be called explicitly for all late added GameComponents. Still I am not sure why this issue is not reproducable in the Examples. :( I wiill appreciate any ideas or suggestion to better handle this issue.


Peter RR

Nov 17, 2012 at 12:50 AM


Components in XNA are run by the core Game class, the only place I am aware of where they don't work is in the SilverXNA (Silverlight / XNA integration) because components are not implemented there, in which case you should use the Silverlight version of this control.

The game component system XNA is updated (and in the case of drawable components) draw with the base Game Update and Draw loops, no effort is needed on a dev part to make this happen.


Hope this helps