Log In  

When using _update60(), btnp() timing is also 2x faster, which makes it much less useful - the time to let go before the press is repeated is halved to 0.12s, and time between repeats also goes down.

This matches the docs (which say frames), but doesn't feel like it was intended - maybe something to be fixed for 0.1.9?

P#23543 2016-06-24 09:11 ( Edited 2016-07-11 05:10)

I am also seeing an issue here where my checks for button presses are registering twice when on "non-60fps" machines. Is there some other flag I need to check for (or is this indeed a bug)?

(NOTE: I am seeing this using Zep's override code to force my 60fps optimised code to run in 30fps - so dunno if it's a true test?)

P#25021 2016-07-10 04:15 ( Edited 2016-07-10 08:15)

with the override you're calling _update60 twice yourself, so the 'system' does not poll buttons in between. for now this also happens with the html player since it ignores _update60 altogether so you have to use the override trick. no idea about other 'non-60fps-machines'.

there's no documented* way around it short of writing your own version of btnp. as an added benefit you'll have your own (non buggy) repeat delays.

*(edited)

P#25034 2016-07-10 08:22 ( Edited 2016-07-11 07:17)

Thanks for the explanation @ultrabrite, makes sense :)

P#25036 2016-07-10 09:01 ( Edited 2016-07-10 13:01)

If you're calling _update60() twice yourself, I think you also need to call _update_buttons() an extra time between them.

P#25059 2016-07-10 20:43 ( Edited 2016-07-11 02:19)

Thanks @Felice, didn't know you could do that! :D

P#25081 2016-07-11 01:10 ( Edited 2016-07-11 05:10)

[Please log in to post a comment]