196
Graphics / CircleShape performance
« on: September 23, 2015, 03:37:45 pm »
I caught some performance issues with CircleShape.
When the total count of circles grows up to 1000 per frame, the performance slows down dramaticaly. When it's count grows up to 2000, I get 5-10 fps...
I run profiler and it shows that SFML consumes for about 80% of time in drawing circles...
Could you please suggest any optimization techniques to improve performance?
I added condition to render rectangles instead of circles when it's physical size is lower than 3-4 pixels. It helps very well (fps increased for 1,5 times), but it's not enough. I need more optimizations. Any ideas are welcome.
Thanks
When the total count of circles grows up to 1000 per frame, the performance slows down dramaticaly. When it's count grows up to 2000, I get 5-10 fps...
I run profiler and it shows that SFML consumes for about 80% of time in drawing circles...
Could you please suggest any optimization techniques to improve performance?
I added condition to render rectangles instead of circles when it's physical size is lower than 3-4 pixels. It helps very well (fps increased for 1,5 times), but it's not enough. I need more optimizations. Any ideas are welcome.
Thanks