ISInterface:FrameWait

From Lavish Software Wiki
Revision as of 02:04, 29 November 2006 by Lax (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to navigation Jump to search

Syntax

  • void FrameWait(bool bLock)

Purpose

Allows a thread to yield processing time until the following frame (thusly allowing the game to complete the present frame and begin operating on a new frame), optionally retaining a frame lock during the new frame.

Usage

Parameters

  • bool bLock
When set to true, FrameLock is implicitly called upon the new frame.

Return Value

none

Examples

Example code
pISInterface->FrameWait(true);
/* Safe to assume all game objects still exist until FrameUnlock is called */
... do stuff here
pISInterface->FrameUnlock();

See Also