About Store Forum Documentation Contact



Post Reply 
Render
Author Message
djpercy Offline
Member

Post: #1
Render
Hallo,

how can I do that only once every 20 frames to be rendered?


Greetings Denis
12-11-2011 05:58 PM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #2
RE: Render
Code:
static Flt renderTimer = 0.0f;
if(renderTimer+=Time.d() >= 0.05f)
{
   // Render frame...
   renderTimer -= 0.05f;
}
(This post was last modified: 12-12-2011 02:18 AM by fatcoder.)
12-12-2011 02:17 AM
Find all posts by this user Quote this message in a reply
djpercy Offline
Member

Post: #3
RE: Render
Hello,

many thanks :-)

Greetings Denis
12-12-2011 11:08 AM
Find all posts by this user Quote this message in a reply
Post Reply