SetUpdateRate not working?

Monkey Targets Forums/Windows 8/SetUpdateRate not working?

SLotman(Posted 2016) [#1]
I don't actually have a "proof" per se... but apparently on my Lumia 620 SetUpdateRate has no effect?!

I'm running my latest game (Run Ryan Run) - @ 30 fps. But the game on WP8.1 is moving WAY too fast, and I have no idea why.

I'm not doing anything "fancy" - so it should behave the same way across multiple targets.

I just have a class Player, with a "speed" float. I use that speed var to update enemies on screen (Enemy.x-=Player.speed) and thats it.

On Desktop and Android, it starts really slow, and the speed picks up after a while. But on WP8 it already starts fast as hell! O_o

Is there anything wrong I should know about??


skid(Posted 2016) [#2]
Stupid question but you are updating your game on OnUpdate and not OnRender yes?


SLotman(Posted 2016) [#3]
Yes, of course. And yet, game is running stupidly fast on WP8 :(

I'm even handling the speed increase in the game with Millisecs, and it still updates waaaaay too fast. I really can't think of anything else besides setupdaterate not working :/
				If Millisecs()-speedIncreaseTimer>500 Then
					speedIncreaseTimer = Millisecs()
					speed+=0.1
					If speed>10 Then speed=10
					Enemy.lowerInterval()
				End If



SLotman(Posted 2016) [#4]
Definitively something wrong going on with SetUpdateRate.

I just forced 30 FPS by hand, and now its on proper speed.

(Yes my whole update routine goes from this ScreenManager class)


Xaron(Posted 2016) [#5]
I had the same issue with one of my games. This bug must be in for ages now.