×
Namespaces

Variants
Actions

How to avoid ViewSrv 11 problems in game

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: huwell (03 Jul 2007)
Last edited: hamishwillee (26 Jul 2012)

You may encounter ViewSrv 11 problems when you design an "game loop". Because if you have long running synchronous operations, the active scheduler may not be able to run the Viewsrv active object.


In this case, you should leave the response time for the Viewsrv active object.


The below code is meant to be implemented in an main game loop, that is, a class derived from CActive.


// Drop 1 render frame in every 128, to avoid ViewSrv 11 problems:
if ((iFrameCounter & 0x007f) != 0x007f)
{
//render handle
}
iFrameCounter++;
This page was last modified on 26 July 2012, at 03:44.
24 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×