Jump to content
  • Advertisement
Sign in to follow this  
silverphyre673

SDL is going slooooow....

This topic is 4819 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I keep having this problem when I develop applications using SDL. They work just dandy on my development computer (which is nothing special), but when I put them on another computer, they go really slowly, like to the point of the games being unplayable. I put SDL.dll in the executable's directory. They don't even need to install anything to play. Also, the game is an Othello/Reversi clone, so it isn't like a realtime game that needs a high-performance machine. This happens on ANY computer that I haven't developed on with SDL. Has anyone had a problem like this? If so, how did you solve it? Thanks a million!

Share this post


Link to post
Share on other sites
Advertisement
OK. I keep seeing this release build stuff, and I really don't have any idea what the difference is between a release version and a development version, or whatever. I don't know how to choose which version to build, so I would have to say: I don't know, but probably not =)

Share this post


Link to post
Share on other sites
The debug build has all the debugging symbols built into the .exe file, so it is noticably larger then the release one. However, the kicker is, that no optimizations are done in a debug build. Now, there might be the odd exception to that, but the bottom line is, a debug build should never be used as basis for a speed test, because there is a load of extra baggage that will be optimized away in a release build.

Share this post


Link to post
Share on other sites
Look at the top bar in your IDE, you should see either Debug or Release somehwere up there. When you get ready to distribute, you use the Release configuration. When you develop you use the Debug configuration. Here's a quick read on this matter.

Share this post


Link to post
Share on other sites
Quote:
Original post by Drew_Benton
Look at the top bar in your IDE, you should see either Debug or Release somehwere up there. When you get ready to distribute, you use the Release configuration. When you develop you use the Debug configuration. Here's a quick read on this matter.

At least in my MSVC 6, the bar isn't there automatically, you have to put it there yourself. Just a small heads-up.

Share this post


Link to post
Share on other sites
Quote:
Original post by SirLuthor
At least in my MSVC 6, the bar isn't there automatically, you have to put it there yourself. Just a small heads-up.


Ahh, yea, that's right thanks. I haven't bothered to reinstall my VS6 [wink].

Share this post


Link to post
Share on other sites
OK. So just enable all the optimization options? That's fine - I know how to do that. I'm just wondering why it's been running so much faster on my comp than anyone else's. If you think this'll solve the problem, great. I'll let you know.

Share this post


Link to post
Share on other sites
One thing to remember is that by default, SDL doesn't use hardware accelerated features. Unless you're using OpenGL or using certain flags to enable Hardware acceleration, SDL will utilize it's own code to manage things like surfaces and whatnot.

If the other user's computer has a crappy 2D graphics card, that can slow things down. You also might want to check the DirectX versions and make sure they're comparable.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!