PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Manual (untimed) calling of ProcessNextFrame

Hi,

I've come to the conclusion that my application isn't suitable for a sustained framerate due to the unpredictable and highly variable amount of work that needs to be performed on every frame.

Is there a clean and easy way to modify CGapiApplication so that I can call ProcessNextFrame manually rather than it being called automatically by a timer?

Cheers

Jon
I don't know the answer to your question, but I do have another suggestion... Why not just set a flag that tells ProcessNextFrame whether to render or not? Then allow your own code to run as a separate thread and just set that flag when it's time to render.

Wouldn't that have about the same effect?
I have a similar problem.
As mentioned in another thread, I'd like to display video clips within a GapiDraw Application.
Now I have a decoding routine for Video, but there the processing of the video frames is controlled by the audio playing thread (via messaging).
So again the question: Is it possible to control the processing of the output frames without GapiTimer?
Could I for example set the Timer to 0 (m_timer.StartTimer(0)) and call ProcessNextFrame or a similar function using my own events?

If you wonder, my application shall become a (most probably demonstrational) mobile museum/exhibition guide (controlled by RFID technology), that I write about in my diploma thesis. I can already display pictures, play audio files, but Video Clips are still missing. I'd like to use GapiDraw, because implementing an interactive map will likely be no big problem with it and I can design my own user interface by ease.

Perhaps it is even possible to turn off the Timer completely (in GapiApplication.cpp) and control all the graphical output by my own event handling routines?
It would be really great if you could help me with that question :)