Almost there...

Jun 23, 2012 at 5:50 PM
Edited Jun 23, 2012 at 5:52 PM

First of all thank you for this amazing framework.

I'm currently trying to port my WP7 game using Monogame and it was a piece of cake to have something running on Mac and IOS.

But I encountered 2 issues I was not able to solve by myself :

  • Regarding threaded load of resources, I tried to use the NsAutoReleasePool but the loading screen is still frozen while the resources are being loaded (game is running fine after everything was loaded), any hint ? (here is my current code)
public override void LoadContent ()
	{
		using (var pool = new NSAutoreleasePool()) {
			//Do my resources loading for ingame state
			InGame.InitRes ();
			m_resLoaded = true;
		};
        }

        public override void Update(FTime gameTime)
        {
            if (m_resLoaded)
            {
                XGameStateManager.ChangeState(new InGame());
            }
        }
  • On IOS now I have the same issue, but once the resources are loaded the display seems to not be refreshed, the game is running properly as far as I can see from the output console but the display is frozen and still display the loading screen. Any hint ?

Thanks for your time