OnRenderFrame() vs OnRender



Users browsing this forum: No registered users and 1 guest

Next topic
Previous topic
Post new topic Reply to topic  NeoAxis Forum Index » General » General Discussion
Search for:
Author Message
User avatar

Joined: Thu Feb 03, 2011
Posts: 685
Country: France (fr)
PostPosted: Thu Sep 15, 2011 8:11 am Post subject: OnRenderFrame() vs OnRender
Bottom of Page Back to top
Hi ! my question today is about OnRenderFrame(), i've never used it and always OnRender instead.

OnRender is more like an OnTick but when it's rendered and OnRenderFrame is for each frames ? am i right ?

Thank !
Firefly :work:

 
 Profile  
Administrator
Administrator
User avatar

Joined: Wed Oct 11, 2006
Posts: 5064
Location: Kazan
Country: Russia (ru)
PostPosted: Thu Sep 15, 2011 11:19 am 
Bottom of Page Back to top
Hi,

OnRenderFrame occurs when new frame begins render.
OnRender occurs during frame rendering before each camera rendering.

As example if you have enabled shadows, you will get OnRender twice every frame (one for shadow generation camera, second for screen camera).

_________________
Founder, lead developer of NeoAxis Group Ltd.
News on Twitter, Google+, Facebook, VK
 
 Profile  

Joined: Mon Feb 21, 2011
Posts: 40
Country: Austria (at)
PostPosted: Thu Sep 15, 2011 11:25 am 
Bottom of Page Back to top
so performance wise it would be better to use OnRenderFrame?

 
 Profile  
Administrator
Administrator
User avatar

Joined: Wed Oct 11, 2006
Posts: 5064
Location: Kazan
Country: Russia (ru)
PostPosted: Thu Sep 15, 2011 11:29 am 
Bottom of Page Back to top
yes

_________________
Founder, lead developer of NeoAxis Group Ltd.
News on Twitter, Google+, Facebook, VK
 
 Profile  

Joined: Mon Feb 21, 2011
Posts: 40
Country: Austria (at)
PostPosted: Thu Sep 15, 2011 11:34 am 
Bottom of Page Back to top
good to know :)

maybe it would be nice to put that in the demo?

 
 Profile  
User avatar

Joined: Thu Feb 03, 2011
Posts: 685
Country: France (fr)
PostPosted: Tue Sep 20, 2011 8:06 am 
Bottom of Page Back to top
Oh god damn ! I've read your answers the same day, and i did't thank you :o

So thank's a lot Ivan !

 
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  NeoAxis Forum Index » General » General Discussion

Jump to:  

Next topic
Previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


All times are UTC




Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group