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; and FlxG.mouse.useSystemCursor = true; but it still lags.
    Any idea how to solve this?


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.