Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zbrojny120

Pages: [1]
1
Graphics / Re: Sorting sprite's layers in isometric view
« on: March 30, 2015, 04:06:45 pm »
To me it doesn't sound like a sorting problem. It sounds more like a problem with how many sprites you try to draw individually.
Did you profile to check if the sorting is really your problem?

Yes, with disabled sorting there are no problems.

Take a look here: http://www-cs-students.stanford.edu/~amitp/gameprog.html#tiles and youll find lots of resources on isometric tile based games.
For more general good stuff, check out this link: http://www.redblobgames.com/

Thanks, I will definitely check these

2
Graphics / Re: Sorting sprite's layers in isometric view
« on: March 29, 2015, 12:20:28 pm »
Yes, I did, but there wasn't any tutorial saying how to exactly sort these sprites (I'm fairly new to programming).

3
Graphics / Sorting sprite's layers in isometric view
« on: March 28, 2015, 11:32:40 pm »
I'm making a strategy game with isometric view and I'm having some problems with deciding which sprite should be drawn first (I'm using SFML 2.2 as graphic library). I'm using std::sort to sort sprites in array by their Y position in a window (Floor and walls aren't sorted, they are stored in different arrays). This code works well in an RPG game where there aren't more than 100 sprites on the map at the same time, but this is going to be a strategy game and when there are 13000 or more sprites on the map, FPS is dropping below 30 and game is becoming unplayable. So, is there any faster way to sort these sprites?

Pages: [1]
anything