Namespaces
Variants
Actions

How to avoid ViewSrv 11 problems in game

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.
72 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved