Search code examples
androidddms

DDMS screenshot not in sync with vsync


I'm currently developing a game for Android and I want to take screenshots of it. I did so using the DDMS tool in eclipse. However, most of the screenshots are a mix of two frames:

___________
|new frame|
|         |
|         |
|_________|
|old frame|
|         |
|_________|

The separating line is in different positions.

This leads me to the conclusion that the screenshot is being made while the current frame is still being drawn.

Is there a way to get the screencap in sync with the hardware?

Are there other methods of making screenshots where this doesn't happen?

Thanks in advance for any hints!

Update: See my last comment on accepted answer for my solution.


Solution

  • I know this might be a crappy solution, but it would be a quick one. Can you (temporarily, debug only, etc.) have the game paused such that you can take the screenshots? Aka, "freeze" a single frame of time?