Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Damocles

Fastest method to scroll the screen?

This topic is 5476 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
you mean scrolling a sub section of the screen? you could render your scene to an off sceen buffer (texture) and then create a subImage with the section you want to offset and then blend i back on to the original image at an offset position.

Share this post


Link to post
Share on other sites
That''s one approach. The reason I need it is becasue I''m making a 2D game with scrolling and would like to be able to shift the screen contents in a given direction and then simply render the new area, saving the need to re-render the entire screen.

I want to optimise it to high heaven so it runs on older systems, and they don''t like rendering the entire game scene every frame :/ They probably also won''t like rendering to an buffer then copying them into the screen at an offset.

So is there no way at all to offset the screen contents quickly?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!