Ambiera Forum

Discussions, Help and Support.

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

Registered User
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?

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)




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



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