Request graphical capabilities to decide whether to apply GPU-intensive effects (via SpriteKit)

I have a game written using SpriteKit that uses a blur effect SKEffectNode to blur a set of sprites, one of which has a fairly large texture and which together cover a fairly large area of ​​the screen. Both iMac and Mac Book Pro do pretty well, but the more modest Mac Book shows a noticeable drop in frame rate when adding the node effect. Since the effect is not critical to the functionality of the game, I may just not add SKEffectNode for machines with less powerful graphics capabilities.

So the question is: what would be a good software check that I could do to determine "GPU power" or "performance when applying texture effects" or [suggest a better metric here] and through which API? Thanks for your suggestions!

+4
source share
1 answer

You will need to create a performance test using actual blurring processes and some sample content to get an accurate idea of ​​the cost of time on each generation of hardware.

- , . Blur , . ( ) , .

"" . , , .

Apple, , - , , :

  • .
  • ,
  • , .

( )

:

enter image description here

, 16- , , . , - , :

enter image description here

+6

Source: https://habr.com/ru/post/1666773/


All Articles