Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Render loop -- how does CopperLicht invoke it?

roxor
Registered User
Quote
2011-07-18 18:28:52

Quick question: we give CopperLicht the "desired" fps ie. 30 and then Copper does its magic. What I'm curious about is this, are you using JavaScript's setInterval to redraw, the "best practice" recommended "requestAnimationFrame" function provided by the modern browsers (WebKit, Mozilla, I think Opera too) or simply an infinite loop in a web worker?


niko
Moderator
Quote
2011-07-18 19:21:06

No, currently setInterval, unfortunately. Planning to move to requestAnimationFrame later. (This was added to the browsers when copperLicht was already several months old.)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact