PDA

View Full Version : [AS3] Flash rendering slows on Win 7 <= 2GB RAM


AndreOM
08-12-2011, 03:58 AM
Our running platformer game has some issues with Flash rendering, I guess.
It is a run and jump game with fully animated character and 4 layers of parallax background.

The background consists of 4 layers:
1) one 700 x 400 JPG Background (most bottom layer, not moving)
2) two (at least) 700 x 400 PNG for second depth (parallax background, that's why there's we use two bitmaps)
3) another two (at least) 700 x 400 PNG for third depth (also a parallax background)
4) another two (at least) 700 x 400 PNG for fourth depth (also a parallax background)

Each bitmap is told to move, so we have a total of 6 bitmaps moving at the same time on each EnterFrame.

I used SWFProfiler to check out the stats and they're very good. Running the game at 30 FPS will get a stable 29.xx - 30.xx FPS gameplay, but there seems to be a lag when rendering.

This does not happen on 2GB Win XP machine or Win 7 machines with memory >= 3 GB.
However running the game on Win 7 machines with memory <= 2 GB would result a laggy background update (clogged / jitter).

The minimum requirement to run Win 7 properly by itself is 2GB so I'm guessing this issue is due to lack of memory.
We have created like 10 games now but no case like this happens before. Well, mainly that's because we have not created anything like this before. What do you guys think? Is there a solution to this except adding more RAM?

henke37
08-12-2011, 10:30 AM
Don't guess, get real numbers. Find the real bottleneck and address it.

AndreOM
08-12-2011, 04:18 PM
Don't guess, get real numbers. Find the real bottleneck and address it.

That's exactly the problem. My memory usage is stable, there's no memory leak. This jittering happens even at earlier stage 1.

Could you please advise a way to find the problem? My conclusion so far is that flash requires more RAM.