Using UIView and Quartz has proven to be too slow for my 2D game
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In general in OpenGL, there are basically two ways to do ‘scrolling’, i.e. shifting the displayed contents perpendicularly to the viewing direction:
These are of course totally equivalent, and the inverse of each other.
These both assume that you do complete re-draws of your scene for each frame. Scrolling in the more ‘classical’ sense, by copying the contents of the frame buffer while offsetting by a (dx,dy) amount, is not a technique that is very suitable for OpenGL.
Basically, creating a scrolling image could be as easy as drawing a single textured quad, and then shifting the position of it for each new frame.