GLBasic forum

Main forum => Beta Tests => Topic started by: MrTAToad on 2011-Nov-30

Title: Sprite Speed Tester II
Post by: MrTAToad on 2011-Nov-30
I've updated my Sprite Speed Tester program to show how various graphical commands affect the display - for example how the alpha level affects anti-aliasing.

http://www.glbasic.com/showroom.php?site=games&game=spritespeedtesterii&lang=en

On my PC, 1000 sprites anti-aliased averages to around 50FPS with no real effect between SMOOTHSHADING TRUE/FALSE
Title: Re: Sprite Speed Tester II
Post by: Kitty Hello on 2011-Dec-01
I get 5e5 fps. That's 50000 - am I doing anything wrong?
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-01
Yes, thats the initial value - I've actually updated it to use FORMAT$, which I have yet to update the showroom version with.
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-01
The updated program is here (Android version will be updated soon!)



[attachment deleted by admin]
Title: Re: Sprite Speed Tester II
Post by: bigsofty on 2011-Dec-01
When I click on attachment I get a download of "index.php"?
Title: Re: Sprite Speed Tester II
Post by: Ian Price on 2011-Dec-01
Quote from: bigsofty on 2011-Dec-01
When I click on attachment I get a download of "index.php"?

I've reported this issue - it's apparently a FireFox 8 problem. If you aren't using FireFox 8, then it's whatever browser you are using!

Just rename the file-format to .rar and you can unzip it.
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-01
The Showcase also has the correct version now, if that helps...
Title: Re: Sprite Speed Tester II
Post by: Marmor on 2011-Dec-01
Fishy please upload  nor .rar or .zip .
unpacked app can load and install directly.
thx
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-02
If you want the Android version, have a look here : https://market.android.com/details?id=com.unmap.spritespeedtester&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS51bm1hcC5zcHJpdGVzcGVlZHRlc3RlciJd
Title: Re: Sprite Speed Tester II
Post by: Ruidesco on 2011-Dec-02
With 1000 sprites I can't get it over ~43FPS.
I guess it's due to my fairly outdated graphics card (Radeon Mobile 4650, a laptop one) because changing the power plan from economy (931Mhz) to Performance (~2600Mhz) has no impact on the frame rate.
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-02
Its not bad for a Mobile graphics processor!
Title: Re: Sprite Speed Tester II
Post by: kanonet on 2011-Dec-02
My Laptop has two Graphiccards, i can select which one i want to use:
Intel HD integrated in Intel i5 M540: 10FPS @1000 sprites
NVidia NVS 3100M: 15FPS @1000 sprites

Looks like my laptop is getting old...
Title: Re: Sprite Speed Tester II
Post by: fuzzy70 on 2011-Dec-02
Any chance of a version compiled for linux?. Would be interesting for me just to compare the results to the windows version seeing as it is the same machine, hence same hardware etc.

Cheers

Lee
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-02
Yes, I'll get the Linux version done soon (and see if I can package it up too).
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-02
Here is the Linux version (with Virtual Box, I get an FPS 0.1 with 500 sprites :) )

I tried to package it, but I get so many weird errors that I didn't bother with it.



[attachment deleted by admin]
Title: Re: Sprite Speed Tester II
Post by: Crivens on 2011-Dec-02
Nice. You should have an option to set the size of the sprites. If your scale is off then it freezes the size, which is pretty random for each. Would be a better indicator of FPS if could have another slider to set the size when scaling is off. And would be good if when turn off rotation it set angles to zero, so then can see the FPS when the sprites are not rotated at all.

Can't see it in example but it would be nice to also have an option to show the sprites with ROTOZOOMSPRITE (maybe DRAWSPRITE if zoom and rotation are off), with POLYVECTOR, and totally in 3D (flat 3D plain).

Cheers
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-02
ROTOZOOMSPRITE is currently used for the display, and may change to DRAWSPRITE if zoom and rotation is off...
Title: Re: Sprite Speed Tester II
Post by: Wampus on 2011-Dec-02
How about we all collate results for Android? (and other devices)

Could be useful as a rough benchmark.
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-02
Its now been updated (again) - go to the Showroom for the latest version (also has the Linux version).

If rotation and scaling is off, then you can choose between DrawSprite (DS on) or Polyvector (graphics have a yellow tint).  On my Android "machine", I have noticed that Polyvector does slow things down a bit with a lot of objects

To show how poor my Android machine is, these are my average speeds with 16 sprites :

Rotate   Scale   Anti-Alias  DrawSprite   Average
                               X                X              7.4
                                                 X              8.0
                                                                 8.7
    X                                                           8.9
                 X                                              8.6
                               X                                7.8
    X                         X                                7.6
                 X            X                                7.3


All in all, rotation and scaling with small amounts of graphics doesn't really affect fps much



Title: Re: Sprite Speed Tester II
Post by: fuzzy70 on 2011-Dec-03
Interesting set of results.

In windows 60fps with 1k sprites, I lose 3 fps activating rotation then a further 17-18fps activating scaling. In linux the same initial 60fps but activating scaling or rotation (or both) results in a rock steady 30fps.

Also if I run the windows version in linux via wine the 60fps frame limiting does not work & I get 230fps (1k sprites) initial which drops to 53fps with rotate & when I activate scaling it drops 7fps to 46fps total.

Machine is nothing fancy, core2 duo 2.13ghz with Nvidia 240GT gfx card. Hardly cutting edge but plays world of warcraft without a sweat & thats good enough for me  :D


Lee
Title: Re: Sprite Speed Tester II
Post by: Wampus on 2011-Dec-03
I knew the Galaxy S II had decent performance. However, this is the first time I've got a sense of just how decent it really is. With 300 sprites, alphamode -1.0 (or any setting for alphamode:


Rotate      Scale       Anti-Alias      DrawSprite      Average
                                x                   x                      ~59
x                                                                           ~59
                  x                                                         ~44
                                x                                           ~59
x                              x                                            ~59
x                x             x                                           ~43

The only thing that seems to slow it down is scaling. Even still, its inconceivable that a real-world 2D game would ever cause it problems.
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-03
Indeed - no game would have 300 sprite zooming and rotating :)
Title: Re: Sprite Speed Tester II
Post by: Ruidesco on 2011-Dec-03
As there's been stated before, zooming the sprites tolls the framerate heaps more than either rotating, antialiasing or DRAWSPRITE vs. POLYVECTOR.
With everything on but rotation this machine can maintain a healthy and steady 60+ FPS. Check zooming, and even unchecking everything else won't make it go over 44 FPS or so.
Title: Re: Sprite Speed Tester II
Post by: Wampus on 2011-Dec-03
Can I request coloured POLYVECTORS be added to the sprite testing?

I know in some cases using anything but RGB(255,255,255) can reduce framerates quite dramatically. For example, my iPod 3GS can struggle with it, which is why I shy away from using it.
Title: Re: Sprite Speed Tester II
Post by: MrTAToad on 2011-Dec-03
You've got the option when you stop rotation and scaling - untick the DS option and the sprites will be tinted yellow.
Title: Re: Sprite Speed Tester II
Post by: mentalthink on 2011-Dec-19
HI I have this in my PC

59.885 whit AA and DS (what´s it´s DS  :-[)

whit scaling and rotate (all)
between 32 and 44
Moving alpha betwwen all slider, transparency and not, and glow FX the same...

My Graphics card it´s a 460  GTX standard Edition NVIDIA