Image Scrolling with Fixed FPS 60hz

I am working image scrolling application using SDL 2.0.9. Its works fine as of now.

I need to do 2 things in my application.

  1. How to scroll the image with Fixed FPS 60hz?
  2. Does it need external graphics card for very smooth scrolling?

Attached my source code. main_4June2019.cpp (28.4 KB)

Kindly do the needful.

Many Thanks.

It is very useful way to push your source code to github and put link here, not to attach cpp files.

Okay. will do that.

Can you help me to fix those 2 points? Looking forward your reply.