Page 1 of 1

Order

Posted: Sun Nov 02, 2008 9:49 pm
by Kjell
:?:

Some order weirdness .. Right now when you have a App, a AppState and a Model spawned in each ( AppState launched after SpawnModel ), the OnRender order is; App.Model -> AppState.Model -> App -> AppState. The OnUpdate order however is; AppState -> App -> App.Model -> AppState.Model.

I'm aware that when you swap SetAppState in App.OnLoad to be before SpawnModel, you get; AppState.Model -> App.Model -> App -> AppState for OnRender, and; AppState -> App -> AppState.Model -> App.Model for OnUpdate.

Personally I'd rather see; App -> App.Model -> AppState -> AppState.Model for both events, but a consistent order between OnUpdate and OnRender would be a good start.

Please do share your thoughts and idea's.

K

Posted: Mon Nov 03, 2008 8:11 pm
by kattle87
Having a good order is somewhat important ;)

Plus, I was thinking about a queue with priority to kill two birds with one stone :) getting the right order in the easy way and assign priorities to the objects spawned and other stuff.