renderOneFrame never returns

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
petrotheos
Gnoblar
Posts: 11
Joined: Mon Sep 18, 2017 5:37 pm

renderOneFrame never returns

Post 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]
	}
}
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: renderOneFrame never returns

Post 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
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
petrotheos
Gnoblar
Posts: 11
Joined: Mon Sep 18, 2017 5:37 pm

Re: renderOneFrame never returns

Post 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";
petrotheos
Gnoblar
Posts: 11
Joined: Mon Sep 18, 2017 5:37 pm

Re: renderOneFrame never returns

Post 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();
}));
User avatar
ptp
Gnoblar
Posts: 2
Joined: Tue Feb 05, 2019 2:56 am

Re: renderOneFrame never returns

Post 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.
Post Reply