Advertisement

Parallax scrolling SDL2 and opengl

Started by November 19, 2018 07:04 PM
0 comments, last by zoink 6 years, 2 months ago

In a single screen scene (1920x1080 fullscreen for example). What would be a good solution for a background scrolling of clouds if using SDL2. Would opengl textures be a better solution, or use SDL2 itself which implements opengl anyway.

It would be a cityscape view with some animated sprites, like a single level scene in the foreground. My main question is performance as well as how smooth it can be. I would test this at 60Hz, 120Hz and 240Hz, and it would not be too many sprites. Most modern systems can handle this, I know, but is there a definitive solution that is reasonable for a very stable scene where I will want to be able to switch resolutions or scale extremely fast?

In case it's not obvious. The foreground would not move, so it's not a platformer and there is no need for the player to scroll left and right.

This topic is closed to new replies.

Advertisement