Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 23 Jan 2012
Offline Last Active Apr 23 2014 01:53 AM

Posts I've Made

In Topic: Drawing 2D shadows with "pure" SDL2

19 April 2014 - 08:38 AM

I take my words back the performance is really good, tried to draw like 60 small objects and get 2000+ draw calls the performance didnt drop below 60fps, it seems the more i draw the less the performence is impacted, if i add even more objects and draw more shadows, then the performence bearly drop.


Tested with 100 small object and I get nearly perfect 60, so if I make good level designe, the performence will be excellent always.

In Topic: Drawing 2D shadows with "pure" SDL2

18 April 2014 - 11:59 AM

Nice. Are you using surfaces for the shadows?

Well no, I use textures, will optimise the code later by drawing on the texture the shadows and only then render them.

In Topic: Drawing 2D shadows with "pure" SDL2

18 April 2014 - 11:20 AM

I don't have a solution for you but I'd love to see how you're currently doing it if you're interested in posting the source code.

Will do it, but its very bruteforce way(found a way to improve it), will post everything and try to add little comments in the code.

In Topic: SDL and android?

22 March 2014 - 03:27 AM

I recently released an android game develped on Android using C/C++ and SDL, what can I say is that the pc code is 99% the same as the android and I think I would use the same code on IOS,Linux and MacOS.

In Topic: [C++/SDL/OpenGL] Wrong mouse information in specific area.

05 April 2012 - 04:03 AM

Normali the coordinates should be from 0 to 64 in that arena, but not from 0 to 1. The are which shows coordinates from 0 to 1 is the same size as the white cube.