Search found 3 matches

by opex
Fri Apr 28, 2017 4:07 pm
Forum: Support and Development
Topic: [solved] SpriteBatch vs multiple love.graphics.draw(). Why I got identical FPS?
Replies: 7
Views: 5306

Re: SpriteBatch vs multiple love.graphics.draw(). Why I got identical FPS?

I wrote another test, where I compare speed 400 different pngs vs 1 sprite atlas.
I saw that SpriteBatch works about 40 percent faster even on 1000 draws.
The question is resolved.

Interesting fact: there is no difference in speed when using 'stream','dynamic' or 'static' SpriteBatch
by opex
Fri Apr 28, 2017 10:41 am
Forum: Support and Development
Topic: [solved] SpriteBatch vs multiple love.graphics.draw(). Why I got identical FPS?
Replies: 7
Views: 5306

Re: SpriteBatch vs multiple love.graphics.draw(). Why I got identical FPS?

I turned off vsync and nothing changed. In my test love.graphics.draw() is called 2000 times every frame, but SpriteBatch draws only one time. Why FPS identical? Probably LOVE have internal optimisation mechanism in love.graphics.draw()? What test should I write to see that the SpriteBatch really wo...
by opex
Fri Apr 28, 2017 9:40 am
Forum: Support and Development
Topic: [solved] SpriteBatch vs multiple love.graphics.draw(). Why I got identical FPS?
Replies: 7
Views: 5306

[solved] SpriteBatch vs multiple love.graphics.draw(). Why I got identical FPS?

Please explain why fps is the same? I wrote a small test, and I don't understand what happens... I always thought that rendering through SpriteBatch should work faster than multiples love.graphics.draw(). Where is my mistake? local a,b,c local q1,q2 local batch1,batch2,batch3 local mode=1 local yPos...