osx - Why does setting frameInterval on a SKView not work? -


i'm trying reduce framerate maximum of 30 fps. official documentation says use:

skview.frameinterval = 2; 

i read through available documentations every similar question asked here on stackoverflow or in other pages/blogs/etc. tried in many ways ever tried set property did not affect fps.

i not using other timing mechanisms spritekit. setting accordingly documentation , answers here on stackoverflow.

i started basic spritekit template provided xcode , tried set frame rate property did not work out.

does experience similarities? there alternative way reduce max fps? else can try reduce fps?

btw.: working on os x , have first-gen retina macbook pro - maybe it's hardware issue?

edit:

i not overriding -(void)update: method - -(void)didsimulatephysics

this in nsviewcontroller subclass set in interface builder. self.spritekitview outlet nsview of nsviewcontroller-subclass

-(void)setupspritekitview {      self.spritekitview.frameinterval = 2;     self.spritekitview.ignoressiblingorder = yes;     self.spritekitview.showsfps = yes;     self.spritekitview.showsdrawcount = yes;     self.spritekitview.showsnodecount = yes; }  -(void)viewdidload {      [super viewdidload];     [self setupspritekitview];     [self loadstartupscene]; } 

i tried put skscene-subclass, attach user-property inside interface builder skview.

how it's not working? both in game , xcode template debug output says 60 fps. , when reducing skview.frameinterval = 4 animations stay smooth.

ok! since working hours on figuring out doing wrong tested xcode spritekit template. surprisingly apple provided sample code not react on skview.frameinterval property.

so thinking of hardware bug , searched apple forums that. found few people complaining same problem , surprisingly apple know fps-bug , fix in el capitan ... ... i'm going test dev prerelease!

however, there quite more bugs in spritekit on os x! example when switching window fullscreen fps drop sporadically undefined amount. it's bit messed up!

edit:

thanks @epicbyte found reasons , answers. see explanation in comments above!


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -