Page 1 of 1

renderOneFrame never returns

Posted: Fri Sep 22, 2017 5:32 pm
by petrotheos
I used breakpoints it blocks in this line.

Code: Select all

void RenderSystem::_updateAllRenderTargets(bool swapBuffers)
{
	// Update all in order of priority
	// This ensures render-to-texture targets get updated before render windows
	RenderTargetPriorityMap::iterator itarg, itargend;
	itargend = mPrioritisedRenderTargets.end();
	for(itarg = mPrioritisedRenderTargets.begin(); itarg != itargend; ++itarg)
	{
		[color=#FF0000]if(itarg->second->isActive() && itarg->second->isAutoUpdated())
			itarg->second->update(swapBuffers);[/color]
	}
}

Re: renderOneFrame never returns

Posted: Fri Sep 22, 2017 8:53 pm
by frostbyte
afaik, ogre does'nt suffer from this sort of alpha problems/bugs( it's mostly the users fault )
my wild guess is that you may have an endless loop cycle in a renderQueue/renderTarget Listener that you've implemented
other than that it can be faulty compilation which may result in memory leaks leading to this, but usually ogre will just crash in this sort of situation, always check ogre.log for hints, good luck

Re: renderOneFrame never returns

Posted: Sat Sep 23, 2017 10:35 am
by petrotheos
I haven't implemented any.
I use UWP app with SwapChainPanel not CoreWindow to use XAML UI. Maybe there is problem with that?

Code: Select all

miscParams["externalWindowHandle"] = Ogre::StringConverter::toString((uintptr_t)(void *)swapChainPanel);
miscParams["windowType"] = "SwapChainPanel";

Re: renderOneFrame never returns

Posted: Sun Jan 21, 2018 10:22 am
by petrotheos
I placed the render inside this and runs it on the UI thread and it works.

Code: Select all

Windows::ApplicationModel::Core::CoreApplication::MainView->CoreWindow->Dispatcher->RunAsync(CoreDispatcherPriority::High, ref new DispatchedHandler([=]()
{
	mCriticalSection.Lock();
	mRoot->renderOneFrame();
	mCriticalSection.Unlock();
}));

Re: renderOneFrame never returns

Posted: Wed Feb 06, 2019 11:16 pm
by ptp
Hello everyone!

Ogre version = 1.11.5
VS 2017

I'm struggling to setup a minimal Ogre Universal Windows Application (UWP/windows 10).
I'm using a Xaml SwapChainPanel with WindowType & extenalWindowHandle and I've followed most of the steps from this tutorial:
http://michaelcummings.net/mathoms/gett ... -projects/

Unfortunately i can't get success with RenderOne method.

Can some post some tips, code fragments or demo project ?

Any help will be appreciated!

Thanks for reading this.