COnstruct 2 uses requestAnimationFrame or?

Discussion and feedback on Construct 2

Post » Mon Apr 22, 2013 11:24 pm

Hello, I would like to know if construct uses requestAnimationFrame or setInterval, this is because Windows 8 html5 Apps run slower whith set interval.

I just exported my game to Windows 8 and it runs at 40fps, sometimes it skips frames.

I apreciate your help. Thank you.hazneliel2013-04-22 23:26:32
Image
B
13
S
4
G
4
Posts: 131
Reputation: 3,121

Post » Tue Apr 23, 2013 1:10 am

I believe it uses requestAnimation frame. As the scirramark test queries for support for it when you run the test. I believe I also saw it somewhere I the documentation. The thing you need to watch out for in some isntances is that IE does not support webGL and IE is the underlying rendering engine for Native windows 8 apps. A good resource for Windows 8 specific questions as well is @thehen as he has already published to the Windows store and done work on optimization around it as well as written the Windows 8 Plugin.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Tue Apr 23, 2013 12:29 pm

It uses requestAnimationFrame with a fallback to setInterval if not supported. Windows 8 apps should be using requestAnimationFrame since IE10 supports it.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to Construct 2 General

Who is online

Users browsing this forum: NetOne, saiyadjin and 4 guests