Input lag on html5 mobile
-
Hello everyone
I'm currently testing the html5 export for a game I'm making and I'm noticing there's almost a second of lag between you touching the screen and the game responding, this is also ocurring with buttons. I'm using this code for sprites:
FlxMouseEventManager.add(_charGroup, function(s:FlxSprite) { _charGroup.x += 50; trace("Mouse Down"); }, function(s:FlxSprite) { trace("MouseUp"); } );
I've tried with
FlxG.fixedTimestep = false;
andFlxG.mouse.useSystemCursor = true;
but it still lags.
Any idea how to solve this?
-
@shanadeshana reminds me of this https://stackoverflow.com/a/387823 and this https://www.sitepoint.com/5-ways-prevent-300ms-click-delay-mobile-devices/
https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away