Page 1 of 1

FrameListener priority queue

Posted: Mon Sep 05, 2011 6:43 pm
by Shtuka
Wouldn't it be nice to have a priority queue for the registered FrameListeners?

Re: FrameListener priority queue

Posted: Mon Sep 05, 2011 7:12 pm
by jacmoe
I rarely use a frame listener because it's so easy to create whatever listener/scheduler/taskmanager you want. Including a priority queue based scheduler.
I do use framelisteners, but that's not really the main hook into Ogre I have. They are convenient when you want to perform certain tasks at specific times in the render loop, of course.
Just render one frame instead of using startRendering.
A priority queue is far beyond the scope of an Ogre FrameListener. :)