-
Notifications
You must be signed in to change notification settings - Fork 117
CPU close to 100% when scene is idle #19
Comments
Hey Kostas, maybe director.setClear(false) will do it for you. -i 2011/11/23 Kostas Karolemeas <
|
Hi Ibon, I am afraid setClear(false) creates some artifacts and I think the scene is not clearing the screen, at least I have not added any code to do that. I will give a try to the CSS renderer and let you know! Kostas |
ok. -i 2011/11/23 Kostas Karolemeas <
|
Look what I did:
Now it works! Is this the recommended way to do it? In parallel, I have started reading the Sumon code :-) |
hey Kostas, -ibon 2011/11/23 Kostas Karolemeas <
|
In
Director.render
, the initialization code (canvas clear, etc) is ran even if all calls toScene.isInAnimationFrame
return false. A proposed solution:(I am working on a project that will also target mobile devices where CPU consumption results to battery consumption :-))
The text was updated successfully, but these errors were encountered: