newspeoplefor developersdocumentationdownloads

Watched Variables
[Miscellaneous Subsystems]


Detailed Description

Watched variables are an easy way to view data from the inner workings of the engine.

There are many simple examples of the use of nWatchedVar in the nD3D9Server class.

To create one, simply define one in an appropriate scope, such as on one a server object:

    nWatched dbgQueryNumRenderStateChanges;

Then, initialize it with the name that it should use within the /sys/var directory in the NamedObjectHierarchy, as well as the type of the variable:

    dbgQueryNumRenderStateChanges("gfxNumRenderStateChanges", nArg::Int)

Finally, update it as you need to:

    this->dbgQueryNumRenderStateChanges->SetI(this->statsNumRenderStateChanges);


Classes

class  nWatched
 Creates a nEnv variable under /sys/var which can be "watched" through nConServer::Watch() method and through the nGuiWatcherWindow. This should only be used for debugging! More...

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.