waregre.blogg.se

Vector drawing ipad
Vector drawing ipad






Basically every frame we take a sampling of framerate, after a second elapses we move that sample to other array, average and display the results. So instead I am going to sample and average across minutes. Right now our simple frame rate counter is changing far too often to be of much use.

vector drawing ipad

You can easily draw twice that many normal sprites without seeing a noticeable drop in framerate. Here it is running on my iPad Air with drawing 100 vectors:Ħ0 FPS is as good as we can get, so so far so good! Now lets see what happens when we crank the number up to 500.įrom my tests, you can draw about 200 vector images before framerate starts to drop down. random (HEIGHT ) sprite ( "Dropbox:Jet 2" ,x ,y ) end text (outString ,WIDTH -dimensions / 2, 80 ) end floor ( 1 /DeltaTime ) local dimensions = textSize (outString ) strokeWidth ( 5 ) for i = 1, 100 do local x = math.

vector drawing ipad

VectorTest function setup () fontSize ( 160 ) fill ( 255, 0, 25, 255 ) end function draw () background ( 40, 40, 50 ) local outString = "fps:".








Vector drawing ipad