Fastest method to scroll the screen?
WTF?! You mean the camera?!
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
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.
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?
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?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement