Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8151619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:26:40+00:00 2026-06-06T15:26:40+00:00

I am a beginner to C++ and SDL, but I have been developing games

  • 0

I am a beginner to C++ and SDL, but I have been developing games for several years.

I chose SDL for its simplicity since all I wanted was a 2D game, but I am not satisfied. The functions working with surfaces eat a lot of power, way too much to be honest.

When I first started using SDL I got like 30 FPS. Then I found out about optimizing surfaces, framerate jumped to 60. Also switching pixel format from 24-bit to 32-bit improved it to 100.

In my opinion this performance compared to other libraries for game development and programming languages is weak. I kept thinking it was still my fault and my FPS could skyrocket if I had everything set correctly.

So I kept testing to find that having no code running (excluding my FPS indicator) yields me 400 FPS. However clearing the screen with SDL_FillRect() function drops it to 100. Then for every sprite drawn the framerate gets even lower and lower.

Is it really supposed to be this slow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:26:41+00:00Added an answer on June 6, 2026 at 3:26 pm

    First off, 100 FPS is not slow. Anything about 60 is irrelevant in most cases due to monitor refresh rates anyway.

    Second, what kinds of surfaces are you blitting? I remember when I made a big SDL game, I was really surprised to discover that a particular image I had was taking forever to blit. But fiddling with the quality a bit to remove dithering caused it to start blitting almost instantly again. I think SDL using run length encoding internally, so images that contain runs will blit faster.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Beginner in python, but been programming for about 5 years now. I suspect I
Am Beginner to java.I have a small doubt while i am developing an application
A beginner question I am sure, but I have just started working with a
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
Beginner question: I have a dictionary where the values are lists of (a variable
Absolute beginner question: I have a template file index.html that looks like this: ...
Iam beginner to windows services , i have a console application to transfer files
Rails beginner here.. I have a users resource where I implemented a callback that's
Beginner programmer here....hope it makes sense :) I have created a console app that
Beginner here, I have a simple question. In Android what would be the best

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.