Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualTolito

Posted 27 January 2013 - 12:00 PM

I am using a sprite sheet and have the proper coordinates, yes. As I have stated, it is not a constant issue that happens on every frame nor a certain frame, so I don't think it is in the code itself. It is barely noticeable and easiest to catch when the game is running and you take a screenshot of it with the keyboard key for that. Is this because SDL_Flip does not replace the whole screen area all at once but instead starts at the bottom and goes up in blocks? Or starts at the top and goes down? I can see how this could cause the rendering issue in screenshots taken. The top half of the player is from the old position and the bottom half is from the new position... so everything below a certain line is new and everything above it is the previously flipped screen. I'm wondering what I can do so I can take a screenshot of the game without the refresh issue being involved.

 

So I think I have found the problem. It isn't anything to do with my code (which I already figured), but instead has to do with the way SDL is refreshing the graphics. Is there anything whatsoever I can do about this? Thank you!

 

EDIT: It rarely ever happens. Is it really anything to be concerned about? I may be over-thinking everything...


#2Tolito

Posted 27 January 2013 - 11:58 AM

I am using a sprite sheet and have the proper coordinates, yes. As I have stated, it is not a constant issue that happens on every frame nor a certain frame, so I don't think it is in the code itself. It is barely noticeable and easiest to catch when the game is running and you take a screenshot of it with the keyboard key for that. Is this because SDL_Flip does not replace the whole screen area all at once but instead starts at the bottom and goes up in blocks? Or starts at the top and goes down? I can see how this could cause the rendering issue in screenshots taken. The top half of the player is from the old position and the bottom half is from the new position... so everything below a certain line is new and everything above it is the previously flipped screen. I'm wondering what I can do so I can take a screenshot of the game without the refresh issue being involved.

 

So I think I have found the problem. It isn't anything to do with my code (which I already figured), but instead has to do with the way SDL is refreshing the graphics. Is there anything whatsoever I can do about this? Thank you!

 

EDIT: It rarely ever happens.


#1Tolito

Posted 27 January 2013 - 11:49 AM

I am using a sprite sheet and have the proper coordinates, yes. As I have stated, it is not a constant issue that happens on every frame nor a certain frame, so I don't think it is in the code itself. It is barely noticeable and easiest to catch when the game is running and you take a screenshot of it with the keyboard key for that. Is this because SDL_Flip does not replace the whole screen area all at once but instead starts at the bottom and goes up in blocks? Or starts at the top and goes down? I can see how this could cause the rendering issue in screenshots taken. The top half of the player is from the old position and the bottom half is from the new position... so everything below a certain line is new and everything above it is the previously flipped screen. I'm wondering what I can do so I can take a screenshot of the game without the refresh issue being involved.

 

So I think I have found the problem. It isn't anything to do with my code (which I already figured), but instead has to do with the way SDL is refreshing the graphics. Is there anything whatsoever I can do about this? Thank you!


PARTNERS