• Advertisement
Sign in to follow this  
  • entries
    686
  • comments
    1952
  • views
    386937

Blocky Man...new and improved?

Sign in to follow this  

69 views

New blocky man sprite. Better or worse?:


I also have another question. When I run Blocky Man fullscreen, the game runs smoothly. However, when the water tiles appear onscreen, the game slows to a crawl. Since the water tiles are the only ones to use SDL_SetAlpha, I assume it has to do with that. Does anyone know how to fix this? It only slows down in fullscreen, it works fine in windowed.

And yes, I do set the display format for all bitmaps now.
Sign in to follow this  


5 Comments


Recommended Comments

Are your surfaces hardware surfaces?

SDL does alpha blending in software so it will be slower to use surfaces that have alpha channels and are hardware surfaces.

AFAIK SDL does not be obtain a hardware surface (under windows anyway) while running in windowed mode, possibly the reason why the problem only occurs in fullscreen mode.

Prefer to use all software surfaces while using SDL's alpha blending.

Or switch to opengl. [grin]

Share this comment


Link to comment
Quote:
Are your surfaces hardware surfaces?

SDL does alpha blending in software so it will be slower to use surfaces that have alpha channels and are hardware surfaces.

AFAIK SDL does not be obtain a hardware surface (under windows anyway) while running in windowed mode, possibly the reason why the problem only occurs in fullscreen mode.

Prefer to use all software surfaces while using SDL's alpha blending.

Or switch to opengl.


Ok, I'll give that a try. I believe they are set to hardware surfaces(to be honest, I didn't really understand the difference).

I switched back to the old Blocky man sprite, just so everyone knows.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement