Slowness Discouragement

Started by
2 comments, last by GaMe wIg 21 years, 4 months ago
Why is it that as soon as my engine looks more and more like an engine, the speed gets slower and slower? I don''t mean like a few frames, I mean unplayable slowness. I''m using SDL, and I''ve seen pleanty of other fast games made with it. What should I do? Give up, start over, read a bunch of tutorals, or what?
Advertisement
Use a profiler. Find which code is costing the most and why. If your seeing extremely drastic slowdowns, your architecture may not be appropriate (poor choice of containers, etc.)
Make sure you''re using SDL_DisplayFormat properly. And use software surfaces everywhere unless you know exactly why I''m suggesting that, and that it won''t be a problem for you.

[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost | Asking Questions | Organising code files | My stuff ]
Wow! After checking all my surfaces, and makeing the map SDL_SWSURFACE, it improoved the speed considerably THANKYOU!

This topic is closed to new replies.

Advertisement