Can I prevent Flash's Input Events from stacking up when my framerate low?

Posted by Matt W on Stack Overflow See other posts from Stack Overflow or by Matt W
Published on 2010-05-07T01:29:35Z Indexed on 2010/05/07 1:38 UTC
Read the original article Hit count: 276

My Flash game targets 24 fps, but slows to 10 on slower machines. This is fine, except Flash decides to throttle the queue of incoming MouseEvent and KeyboardEvents, and they stack up and the Events fall behind. Way behind. It's so bad that, at 10 fps, if I spam the Mouse and Keyboard for a few seconds not much happens, then, after I stop, the game seems to play itself for the next 5 seconds as the Events trickle in. Spooky, I know.

Does anyone know a way around this? I basically need to say to Flash, "I know you think we're falling behind, but throttling the input events won't help. Give them to me as soon as you get them, please."

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flash