Page 2 of 2

Re: A background disproportionately consumes CPU

Posted: Sat Apr 16, 2011 8:06 pm
by TechnoCat
When I take out the 3 image calls you have. I get 155FPS. Cool landscape generation.

Re: A background disproportionately consumes CPU

Posted: Mon Apr 18, 2011 9:39 am
by miko
Batrachus wrote:Without background image the FPS stabilized on 61. With background image it was less than 1.
Are you sure? I think the problem is that you draw 1000 polygons every frame (and recompute their coordinates).
I am attaching a version which uses a framebuffer, and while not moving, it uses almost no CPU.